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

Side by Side Diff: ash/wm/power_button_controller.h

Issue 10825191: Allow closing root window, or pressing the power button to shutdown ash_shell, and chrome /w chrome… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missed removing this somehow Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « ash/system/status_area_widget.cc ('k') | ash/wm/power_button_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 ASH_WM_POWER_BUTTON_CONTROLLER_H_ 5 #ifndef ASH_WM_POWER_BUTTON_CONTROLLER_H_
6 #define ASH_WM_POWER_BUTTON_CONTROLLER_H_ 6 #define ASH_WM_POWER_BUTTON_CONTROLLER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/shell_observer.h" 9 #include "ash/shell_observer.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // Called when the power or lock buttons are pressed or released. 150 // Called when the power or lock buttons are pressed or released.
151 void OnPowerButtonEvent(bool down, const base::TimeTicks& timestamp); 151 void OnPowerButtonEvent(bool down, const base::TimeTicks& timestamp);
152 void OnLockButtonEvent(bool down, const base::TimeTicks& timestamp); 152 void OnLockButtonEvent(bool down, const base::TimeTicks& timestamp);
153 153
154 // Displays the shutdown animation and requests shutdown when it's done. 154 // Displays the shutdown animation and requests shutdown when it's done.
155 void RequestShutdown(); 155 void RequestShutdown();
156 156
157 // aura::RootWindowObserver overrides: 157 // aura::RootWindowObserver overrides:
158 virtual void OnRootWindowResized(const aura::RootWindow* root, 158 virtual void OnRootWindowResized(const aura::RootWindow* root,
159 const gfx::Size& old_size) OVERRIDE; 159 const gfx::Size& old_size) OVERRIDE;
160 virtual void OnRootWindowHostCloseRequested(
161 const aura::RootWindow* root) OVERRIDE;
160 162
161 // ShellObserver overrides: 163 // ShellObserver overrides:
162 virtual void OnLoginStateChanged(user::LoginStatus status) OVERRIDE; 164 virtual void OnLoginStateChanged(user::LoginStatus status) OVERRIDE;
163 virtual void OnAppTerminating() OVERRIDE; 165 virtual void OnAppTerminating() OVERRIDE;
164 virtual void OnLockStateChanged(bool locked) OVERRIDE; 166 virtual void OnLockStateChanged(bool locked) OVERRIDE;
165 167
166 private: 168 private:
167 bool LoggedInAsNonGuest() const; 169 bool LoggedInAsNonGuest() const;
168 170
169 // Requests that the screen be locked and starts |lock_fail_timer_|. 171 // Requests that the screen be locked and starts |lock_fail_timer_|.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 // |background_layer_|, as the desktop background is now covering the whole 255 // |background_layer_|, as the desktop background is now covering the whole
254 // screen. 256 // screen.
255 base::OneShotTimer<PowerButtonController> hide_background_layer_timer_; 257 base::OneShotTimer<PowerButtonController> hide_background_layer_timer_;
256 258
257 DISALLOW_COPY_AND_ASSIGN(PowerButtonController); 259 DISALLOW_COPY_AND_ASSIGN(PowerButtonController);
258 }; 260 };
259 261
260 } // namespace ash 262 } // namespace ash
261 263
262 #endif // ASH_WM_POWER_BUTTON_CONTROLLER_H_ 264 #endif // ASH_WM_POWER_BUTTON_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/system/status_area_widget.cc ('k') | ash/wm/power_button_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698