OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "extensions/shell/browser/shell_apps_client.h" |
| 6 |
| 7 #include "extensions/browser/app_window/app_window.h" |
| 8 #include "extensions/shell/browser/desktop_controller.h" |
| 9 #include "extensions/shell/browser/shell_app_delegate.h" |
| 10 #include "extensions/shell/browser/shell_native_app_window.h" |
| 11 |
| 12 namespace extensions { |
| 13 |
| 14 ShellAppsClient::ShellAppsClient() { |
| 15 } |
| 16 |
| 17 ShellAppsClient::~ShellAppsClient() { |
| 18 } |
| 19 |
| 20 std::vector<content::BrowserContext*> |
| 21 ShellAppsClient::GetLoadedBrowserContexts() { |
| 22 NOTIMPLEMENTED(); |
| 23 return std::vector<content::BrowserContext*>(); |
| 24 } |
| 25 |
| 26 AppWindow* ShellAppsClient::CreateAppWindow(content::BrowserContext* context, |
| 27 const Extension* extension) { |
| 28 return new AppWindow(context, new ShellAppDelegate, extension); |
| 29 } |
| 30 |
| 31 NativeAppWindow* ShellAppsClient::CreateNativeAppWindow( |
| 32 AppWindow* window, |
| 33 const AppWindow::CreateParams& params) { |
| 34 ShellNativeAppWindow* native_app_window = |
| 35 new ShellNativeAppWindow(window, params); |
| 36 DesktopController::instance()->AddAppWindow( |
| 37 native_app_window->GetNativeWindow()); |
| 38 return native_app_window; |
| 39 } |
| 40 |
| 41 void ShellAppsClient::IncrementKeepAliveCount() { |
| 42 NOTIMPLEMENTED(); |
| 43 } |
| 44 |
| 45 void ShellAppsClient::DecrementKeepAliveCount() { |
| 46 NOTIMPLEMENTED(); |
| 47 } |
| 48 |
| 49 void ShellAppsClient::OpenDevToolsWindow(content::WebContents* web_contents, |
| 50 const base::Closure& callback) { |
| 51 NOTIMPLEMENTED(); |
| 52 } |
| 53 |
| 54 bool ShellAppsClient::IsCurrentChannelOlderThanDev() { |
| 55 return false; |
| 56 } |
| 57 |
| 58 } // namespace extensions |
OLD | NEW |