1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef EXTENSIONS_SHELL_BROWSER_API_SHELL_SHELL_API_H_
6 #define EXTENSIONS_SHELL_BROWSER_API_SHELL_SHELL_API_H_
8 #include "base/compiler_specific.h"
9 #include "base/macros.h"
10 #include "extensions/browser/extension_function.h"
11 #include "extensions/browser/extension_function_histogram_value.h"
13 namespace extensions {
15 // Implementation of the chrome.shell.createWindow() function for app_shell.
16 // Opens a fullscreen window and invokes the window callback to allow access to
17 // the JS contentWindow.
18 class ShellCreateWindowFunction : public UIThreadExtensionFunction {
20 ShellCreateWindowFunction();
22 DECLARE_EXTENSION_FUNCTION("shell.createWindow", SHELL_CREATEWINDOW);
25 virtual ~ShellCreateWindowFunction();
26 virtual ResponseAction Run() OVERRIDE;
28 DISALLOW_COPY_AND_ASSIGN(ShellCreateWindowFunction);
31 } // namespace extensions
33 #endif // EXTENSIONS_SHELL_BROWSER_API_SHELL_SHELL_API_H_