Chromium Code Reviews| 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..70ea875f014b2cd5ce257203ee9ba4f80ec0410c |
| --- /dev/null |
| +++ b/apps/shell/browser/api/shell/shell_api.h |
| @@ -0,0 +1,34 @@ |
| +// 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" |
| + |
| +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(); |
| + |
| + // Don't use the APP_WINDOW_CREATE histogram so we don't pollute the |
| + // statistics for the real Chrome implementation. |
| + DECLARE_EXTENSION_FUNCTION("shell.createWindow", UNKNOWN); |
|
Yoyo Zhou
2014/04/29 22:10:00
Are we ok with not having histograms for this func
James Cook
2014/04/29 22:53:52
Added one.
|
| + |
| + private: |
| + virtual ~ShellCreateWindowFunction(); |
| + virtual bool RunImpl() OVERRIDE; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(ShellCreateWindowFunction); |
| +}; |
| + |
| +} // namespace apps |
| + |
| +#endif // APPS_SHELL_BROWSER_API_SHELL_SHELL_API_H_ |