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

Side by Side Diff: ash/system/status_area_widget.cc

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: braces 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 | « no previous file | ash/wm/power_button_controller.h » ('j') | ash/wm/power_button_controller.cc » ('J')
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 #include "ash/system/status_area_widget.h" 5 #include "ash/system/status_area_widget.h"
6 6
7 #include "ash/root_window_controller.h" 7 #include "ash/root_window_controller.h"
8 #include "ash/shell.h" 8 #include "ash/shell.h"
9 #include "ash/shell_delegate.h" 9 #include "ash/shell_delegate.h"
10 #include "ash/shell_window_ids.h" 10 #include "ash/shell_window_ids.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 } 108 }
109 109
110 virtual bool IsCapsLockOn() const OVERRIDE { 110 virtual bool IsCapsLockOn() const OVERRIDE {
111 return caps_lock_enabled_; 111 return caps_lock_enabled_;
112 } 112 }
113 113
114 virtual void SetCapsLockEnabled(bool enabled) OVERRIDE { 114 virtual void SetCapsLockEnabled(bool enabled) OVERRIDE {
115 caps_lock_enabled_ = enabled; 115 caps_lock_enabled_ = enabled;
116 } 116 }
117 117
118 virtual void ShutDown() OVERRIDE {} 118 virtual void ShutDown() OVERRIDE {
119 MessageLoop::current()->Quit();
120 }
119 121
120 virtual void SignOut() OVERRIDE { 122 virtual void SignOut() OVERRIDE {
121 MessageLoop::current()->Quit(); 123 MessageLoop::current()->Quit();
122 } 124 }
123 125
124 virtual void RequestLockScreen() OVERRIDE {} 126 virtual void RequestLockScreen() OVERRIDE {}
125 127
126 virtual void RequestRestart() OVERRIDE {} 128 virtual void RequestRestart() OVERRIDE {}
127 129
128 virtual void GetAvailableBluetoothDevices( 130 virtual void GetAvailableBluetoothDevices(
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 return; 375 return;
374 login_status_ = login_status; 376 login_status_ = login_status;
375 if (system_tray_) 377 if (system_tray_)
376 system_tray_->UpdateAfterLoginStatusChange(login_status); 378 system_tray_->UpdateAfterLoginStatusChange(login_status);
377 if (web_notification_tray_) 379 if (web_notification_tray_)
378 web_notification_tray_->UpdateAfterLoginStatusChange(login_status); 380 web_notification_tray_->UpdateAfterLoginStatusChange(login_status);
379 } 381 }
380 382
381 } // namespace internal 383 } // namespace internal
382 } // namespace ash 384 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | ash/wm/power_button_controller.h » ('j') | ash/wm/power_button_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698