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 #include "extensions/shell/browser/shell_native_app_window.h" | 11 #include "extensions/shell/browser/shell_native_app_window.h" |
12 | 12 |
13 namespace extensions { | 13 namespace extensions { |
14 | 14 |
15 ShellAppWindowClient::ShellAppWindowClient() { | 15 ShellAppWindowClient::ShellAppWindowClient() { |
16 } | 16 } |
17 | 17 |
18 ShellAppWindowClient::~ShellAppWindowClient() { | 18 ShellAppWindowClient::~ShellAppWindowClient() { |
19 } | 19 } |
20 | 20 |
21 AppWindow* ShellAppWindowClient::CreateAppWindow( | 21 AppWindow* ShellAppWindowClient::CreateAppWindow( |
22 content::BrowserContext* context, | 22 content::BrowserContext* context, |
23 const Extension* extension) { | 23 const Extension* extension) { |
24 return DesktopController::instance()->CreateAppWindow(context, extension); | 24 return DesktopController::instance()->CreateAppWindow(context, extension); |
25 } | 25 } |
26 | 26 |
27 NativeAppWindow* ShellAppWindowClient::CreateNativeAppWindow( | 27 NativeAppWindow* ShellAppWindowClient::CreateNativeAppWindow( |
28 AppWindow* window, | 28 AppWindow* window, |
29 const AppWindow::CreateParams& params) { | 29 AppWindow::CreateParams* params) { |
30 ShellNativeAppWindow* native_app_window = | 30 ShellNativeAppWindow* native_app_window = |
31 new ShellNativeAppWindow(window, params); | 31 new ShellNativeAppWindow(window, *params); |
32 DesktopController::instance()->AddAppWindow( | 32 DesktopController::instance()->AddAppWindow( |
33 native_app_window->GetNativeWindow()); | 33 native_app_window->GetNativeWindow()); |
34 return native_app_window; | 34 return native_app_window; |
35 } | 35 } |
36 | 36 |
37 void ShellAppWindowClient::OpenDevToolsWindow( | 37 void ShellAppWindowClient::OpenDevToolsWindow( |
38 content::WebContents* web_contents, | 38 content::WebContents* web_contents, |
39 const base::Closure& callback) { | 39 const base::Closure& callback) { |
40 NOTIMPLEMENTED(); | 40 NOTIMPLEMENTED(); |
41 } | 41 } |
42 | 42 |
43 bool ShellAppWindowClient::IsCurrentChannelOlderThanDev() { | 43 bool ShellAppWindowClient::IsCurrentChannelOlderThanDev() { |
44 return false; | 44 return false; |
45 } | 45 } |
46 | 46 |
47 } // namespace extensions | 47 } // namespace extensions |
OLD | NEW |