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

Side by Side Diff: extensions/shell/browser/shell_desktop_controller.h

Issue 543123004: Close AppWindow to perform clean shutdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@apifeatures
Patch Set: Add comments Created 6 years, 3 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
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 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_DESKTOP_CONTROLLER_H_ 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_DESKTOP_CONTROLLER_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_DESKTOP_CONTROLLER_H_ 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_DESKTOP_CONTROLLER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 public chromeos::PowerManagerClient::Observer, 61 public chromeos::PowerManagerClient::Observer,
62 public ui::DisplayConfigurator::Observer, 62 public ui::DisplayConfigurator::Observer,
63 #endif 63 #endif
64 public aura::WindowTreeHostObserver { 64 public aura::WindowTreeHostObserver {
65 public: 65 public:
66 ShellDesktopController(); 66 ShellDesktopController();
67 virtual ~ShellDesktopController(); 67 virtual ~ShellDesktopController();
68 68
69 // DesktopController: 69 // DesktopController:
70 virtual aura::WindowTreeHost* GetHost() OVERRIDE; 70 virtual aura::WindowTreeHost* GetHost() OVERRIDE;
71 virtual ShellAppWindow* CreateAppWindow(content::BrowserContext* context, 71 virtual ShellAppWindow* CreateShellAppWindow(
72 const Extension* extension) OVERRIDE; 72 content::BrowserContext* context,
73 const Extension* extension) OVERRIDE;
74 virtual AppWindow* CreateAppWindow(content::BrowserContext* context,
75 const Extension* extension) OVERRIDE;
73 virtual void AddAppWindow(aura::Window* window) OVERRIDE; 76 virtual void AddAppWindow(aura::Window* window) OVERRIDE;
74 virtual void CloseAppWindows() OVERRIDE; 77 virtual void CloseAppWindows() OVERRIDE;
75 78
76 // aura::client::WindowTreeClient overrides: 79 // aura::client::WindowTreeClient overrides:
77 virtual aura::Window* GetDefaultParent(aura::Window* context, 80 virtual aura::Window* GetDefaultParent(aura::Window* context,
78 aura::Window* window, 81 aura::Window* window,
79 const gfx::Rect& bounds) OVERRIDE; 82 const gfx::Rect& bounds) OVERRIDE;
80 83
81 #if defined(OS_CHROMEOS) 84 #if defined(OS_CHROMEOS)
82 // chromeos::PowerManagerClient::Observer overrides: 85 // chromeos::PowerManagerClient::Observer overrides:
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 scoped_ptr<aura::client::FocusClient> focus_client_; 128 scoped_ptr<aura::client::FocusClient> focus_client_;
126 129
127 scoped_ptr<wm::CursorManager> cursor_manager_; 130 scoped_ptr<wm::CursorManager> cursor_manager_;
128 131
129 scoped_ptr<wm::UserActivityDetector> user_activity_detector_; 132 scoped_ptr<wm::UserActivityDetector> user_activity_detector_;
130 #if defined(OS_CHROMEOS) 133 #if defined(OS_CHROMEOS)
131 scoped_ptr<ui::UserActivityPowerManagerNotifier> user_activity_notifier_; 134 scoped_ptr<ui::UserActivityPowerManagerNotifier> user_activity_notifier_;
132 #endif 135 #endif
133 136
134 // The desktop supports a single app window. 137 // The desktop supports a single app window.
135 scoped_ptr<ShellAppWindow> app_window_; 138 scoped_ptr<ShellAppWindow> shell_app_window_;
139 AppWindow* app_window_; // NativeAppWindow::Close() deletes this.
136 140
137 DISALLOW_COPY_AND_ASSIGN(ShellDesktopController); 141 DISALLOW_COPY_AND_ASSIGN(ShellDesktopController);
138 }; 142 };
139 143
140 } // namespace extensions 144 } // namespace extensions
141 145
142 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_DESKTOP_CONTROLLER_H_ 146 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_DESKTOP_CONTROLLER_H_
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_apps_client.cc ('k') | extensions/shell/browser/shell_desktop_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698