Upstream version 10.38.222.0
[platform/framework/web/crosswalk.git] / src / extensions / shell / browser / api / shell / shell_api.h
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.
4
5 #ifndef EXTENSIONS_SHELL_BROWSER_API_SHELL_SHELL_API_H_
6 #define EXTENSIONS_SHELL_BROWSER_API_SHELL_SHELL_API_H_
7
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"
12
13 namespace extensions {
14
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 {
19  public:
20   ShellCreateWindowFunction();
21
22   DECLARE_EXTENSION_FUNCTION("shell.createWindow", SHELL_CREATEWINDOW);
23
24  private:
25   virtual ~ShellCreateWindowFunction();
26   virtual ResponseAction Run() OVERRIDE;
27
28   DISALLOW_COPY_AND_ASSIGN(ShellCreateWindowFunction);
29 };
30
31 }  // namespace extensions
32
33 #endif  // EXTENSIONS_SHELL_BROWSER_API_SHELL_SHELL_API_H_