| 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" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 NativeAppWindow* ShellAppWindowClient::CreateNativeAppWindow( | 33 NativeAppWindow* ShellAppWindowClient::CreateNativeAppWindow( |
| 34 AppWindow* window, | 34 AppWindow* window, |
| 35 const AppWindow::CreateParams& params) { | 35 const AppWindow::CreateParams& params) { |
| 36 ShellNativeAppWindow* native_app_window = | 36 ShellNativeAppWindow* native_app_window = |
| 37 new ShellNativeAppWindow(window, params); | 37 new ShellNativeAppWindow(window, params); |
| 38 DesktopController::instance()->AddAppWindow( | 38 DesktopController::instance()->AddAppWindow( |
| 39 native_app_window->GetNativeWindow()); | 39 native_app_window->GetNativeWindow()); |
| 40 return native_app_window; | 40 return native_app_window; |
| 41 } | 41 } |
| 42 | 42 |
| 43 void ShellAppWindowClient::IncrementKeepAliveCount() { | |
| 44 // app_shell runs until the system powers off, so it doesn't need to track | |
| 45 // open apps or windows to keep itself alive. | |
| 46 } | |
| 47 | |
| 48 void ShellAppWindowClient::DecrementKeepAliveCount() { | |
| 49 // See IncrementKeepAliveCount(). | |
| 50 } | |
| 51 | |
| 52 void ShellAppWindowClient::OpenDevToolsWindow( | 43 void ShellAppWindowClient::OpenDevToolsWindow( |
| 53 content::WebContents* web_contents, | 44 content::WebContents* web_contents, |
| 54 const base::Closure& callback) { | 45 const base::Closure& callback) { |
| 55 NOTIMPLEMENTED(); | 46 NOTIMPLEMENTED(); |
| 56 } | 47 } |
| 57 | 48 |
| 58 bool ShellAppWindowClient::IsCurrentChannelOlderThanDev() { | 49 bool ShellAppWindowClient::IsCurrentChannelOlderThanDev() { |
| 59 return false; | 50 return false; |
| 60 } | 51 } |
| 61 | 52 |
| 62 } // namespace extensions | 53 } // namespace extensions |
| OLD | NEW |