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 #include "extensions/shell/browser/shell_app_window_client.h" | 5 #include "extensions/shell/browser/shell_app_window_client.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "extensions/browser/app_window/app_window.h" | 9 #include "extensions/browser/app_window/app_window.h" |
10 #include "extensions/shell/browser/desktop_controller.h" | 10 #include "extensions/shell/browser/desktop_controller.h" |
11 | 11 |
12 namespace extensions { | 12 namespace extensions { |
13 | 13 |
14 ShellAppWindowClient::ShellAppWindowClient() { | 14 ShellAppWindowClient::ShellAppWindowClient() { |
15 } | 15 } |
16 | 16 |
17 ShellAppWindowClient::~ShellAppWindowClient() { | 17 ShellAppWindowClient::~ShellAppWindowClient() { |
18 } | 18 } |
19 | 19 |
20 AppWindow* ShellAppWindowClient::CreateAppWindow( | 20 AppWindow* ShellAppWindowClient::CreateAppWindow( |
21 content::BrowserContext* context, | 21 content::BrowserContext* context, |
22 const Extension* extension) { | 22 const Extension* extension) { |
23 return DesktopController::instance()->CreateAppWindow(context, extension); | 23 return DesktopController::instance()->CreateAppWindow(context, extension); |
24 } | 24 } |
25 | 25 |
| 26 AppWindow* ShellAppWindowClient::CreateAppWindowForLockScreenAction( |
| 27 content::BrowserContext* context, |
| 28 const Extension* extension, |
| 29 api::app_runtime::ActionType action) { |
| 30 return nullptr; |
| 31 } |
| 32 |
26 void ShellAppWindowClient::OpenDevToolsWindow( | 33 void ShellAppWindowClient::OpenDevToolsWindow( |
27 content::WebContents* web_contents, | 34 content::WebContents* web_contents, |
28 const base::Closure& callback) { | 35 const base::Closure& callback) { |
29 NOTIMPLEMENTED(); | 36 NOTIMPLEMENTED(); |
30 } | 37 } |
31 | 38 |
32 bool ShellAppWindowClient::IsCurrentChannelOlderThanDev() { | 39 bool ShellAppWindowClient::IsCurrentChannelOlderThanDev() { |
33 return false; | 40 return false; |
34 } | 41 } |
35 | 42 |
36 } // namespace extensions | 43 } // namespace extensions |
OLD | NEW |