Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(750)

Side by Side Diff: extensions/shell/browser/shell_app_window_client.cc

Issue 557833007: Remove Increment/DecrementKeepAliveCount from AppsClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « extensions/shell/browser/shell_app_window_client.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_app_window_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698