| 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_apps_client.h" | 5 #include "extensions/shell/browser/shell_apps_client.h" |
| 6 | 6 |
| 7 #include "extensions/browser/app_window/app_window.h" | 7 #include "extensions/browser/app_window/app_window.h" |
| 8 #include "extensions/shell/browser/desktop_controller.h" | 8 #include "extensions/shell/browser/desktop_controller.h" |
| 9 #include "extensions/shell/browser/shell_native_app_window.h" | 9 #include "extensions/shell/browser/shell_native_app_window.h" |
| 10 | 10 |
| 11 namespace extensions { | 11 namespace extensions { |
| 12 | 12 |
| 13 ShellAppsClient::ShellAppsClient() { | 13 ShellAppsClient::ShellAppsClient() { |
| 14 } | 14 } |
| 15 | 15 |
| 16 ShellAppsClient::~ShellAppsClient() { | 16 ShellAppsClient::~ShellAppsClient() { |
| 17 } | 17 } |
| 18 | 18 |
| 19 std::vector<content::BrowserContext*> | |
| 20 ShellAppsClient::GetLoadedBrowserContexts() { | |
| 21 NOTIMPLEMENTED(); | |
| 22 return std::vector<content::BrowserContext*>(); | |
| 23 } | |
| 24 | |
| 25 AppWindow* ShellAppsClient::CreateAppWindow(content::BrowserContext* context, | 19 AppWindow* ShellAppsClient::CreateAppWindow(content::BrowserContext* context, |
| 26 const Extension* extension) { | 20 const Extension* extension) { |
| 27 return DesktopController::instance()->CreateAppWindow(context, extension); | 21 return DesktopController::instance()->CreateAppWindow(context, extension); |
| 28 } | 22 } |
| 29 | 23 |
| 30 NativeAppWindow* ShellAppsClient::CreateNativeAppWindow( | 24 NativeAppWindow* ShellAppsClient::CreateNativeAppWindow( |
| 31 AppWindow* window, | 25 AppWindow* window, |
| 32 const AppWindow::CreateParams& params) { | 26 const AppWindow::CreateParams& params) { |
| 33 ShellNativeAppWindow* native_app_window = | 27 ShellNativeAppWindow* native_app_window = |
| 34 new ShellNativeAppWindow(window, params); | 28 new ShellNativeAppWindow(window, params); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 48 void ShellAppsClient::OpenDevToolsWindow(content::WebContents* web_contents, | 42 void ShellAppsClient::OpenDevToolsWindow(content::WebContents* web_contents, |
| 49 const base::Closure& callback) { | 43 const base::Closure& callback) { |
| 50 NOTIMPLEMENTED(); | 44 NOTIMPLEMENTED(); |
| 51 } | 45 } |
| 52 | 46 |
| 53 bool ShellAppsClient::IsCurrentChannelOlderThanDev() { | 47 bool ShellAppsClient::IsCurrentChannelOlderThanDev() { |
| 54 return false; | 48 return false; |
| 55 } | 49 } |
| 56 | 50 |
| 57 } // namespace extensions | 51 } // namespace extensions |
| OLD | NEW |