Index: apps/shell/browser/api/shell/shell_api.h |
diff --git a/apps/shell/browser/api/shell/shell_api.h b/apps/shell/browser/api/shell/shell_api.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d7f02ebbe475f09476292212bd8bf56854e50e0e |
--- /dev/null |
+++ b/apps/shell/browser/api/shell/shell_api.h |
@@ -0,0 +1,33 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef APPS_SHELL_BROWSER_API_SHELL_SHELL_API_H_ |
+#define APPS_SHELL_BROWSER_API_SHELL_SHELL_API_H_ |
+ |
+#include "base/compiler_specific.h" |
+#include "base/macros.h" |
+#include "extensions/browser/extension_function.h" |
+#include "extensions/browser/extension_function_histogram_value.h" |
+ |
+namespace apps { |
+ |
+// Implementation of the chrome.shell.createWindow() function for app_shell. |
+// Opens a fullscreen window and invokes the window callback to allow access to |
+// the JS contentWindow. |
+class ShellCreateWindowFunction : public UIThreadExtensionFunction { |
+ public: |
+ ShellCreateWindowFunction(); |
+ |
+ DECLARE_EXTENSION_FUNCTION("shell.createWindow", SHELL_CREATEWINDOW); |
+ |
+ private: |
+ virtual ~ShellCreateWindowFunction(); |
+ virtual bool RunImpl() OVERRIDE; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(ShellCreateWindowFunction); |
+}; |
+ |
+} // namespace apps |
+ |
+#endif // APPS_SHELL_BROWSER_API_SHELL_SHELL_API_H_ |