OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_CLIENT_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_CLIENT_H_ |
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_CLIENT_H_ | 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_CLIENT_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "extensions/browser/app_window/app_window_client.h" | 10 #include "extensions/browser/app_window/app_window_client.h" |
11 | 11 |
12 namespace extensions { | 12 namespace extensions { |
13 | 13 |
14 // app_shell's AppWindowClient implementation. | 14 // app_shell's AppWindowClient implementation. |
15 class ShellAppWindowClient : public AppWindowClient { | 15 class ShellAppWindowClient : public AppWindowClient { |
16 public: | 16 public: |
17 ShellAppWindowClient(); | 17 ShellAppWindowClient(); |
18 ~ShellAppWindowClient() override; | 18 ~ShellAppWindowClient() override; |
19 | 19 |
20 // AppWindowClient overrides: | 20 // AppWindowClient overrides: |
21 AppWindow* CreateAppWindow(content::BrowserContext* context, | 21 AppWindow* CreateAppWindow(content::BrowserContext* context, |
22 const Extension* extension) override; | 22 const Extension* extension) override; |
| 23 AppWindow* CreateAppWindowForLockScreenAction( |
| 24 content::BrowserContext* context, |
| 25 const Extension* extension, |
| 26 api::app_runtime::ActionType action) override; |
23 // Note that CreateNativeAppWindow is defined in separate (per-framework) | 27 // Note that CreateNativeAppWindow is defined in separate (per-framework) |
24 // implementation files. | 28 // implementation files. |
25 NativeAppWindow* CreateNativeAppWindow( | 29 NativeAppWindow* CreateNativeAppWindow( |
26 AppWindow* window, | 30 AppWindow* window, |
27 AppWindow::CreateParams* params) override; | 31 AppWindow::CreateParams* params) override; |
28 void OpenDevToolsWindow(content::WebContents* web_contents, | 32 void OpenDevToolsWindow(content::WebContents* web_contents, |
29 const base::Closure& callback) override; | 33 const base::Closure& callback) override; |
30 bool IsCurrentChannelOlderThanDev() override; | 34 bool IsCurrentChannelOlderThanDev() override; |
31 | 35 |
32 private: | 36 private: |
33 DISALLOW_COPY_AND_ASSIGN(ShellAppWindowClient); | 37 DISALLOW_COPY_AND_ASSIGN(ShellAppWindowClient); |
34 }; | 38 }; |
35 | 39 |
36 } // namespace extensions | 40 } // namespace extensions |
37 | 41 |
38 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_CLIENT_H_ | 42 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_CLIENT_H_ |
OLD | NEW |