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

Side by Side Diff: ash/system/tray/system_tray_delegate.h

Issue 10878058: Move functions for controlling Caps Lock to CapsLockDelegate from SystemTrayDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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 | Annotate | Revision Log
« no previous file with comments | « ash/system/status_area_widget.cc ('k') | ash/system/tray_caps_lock.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_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 // Shows settings related to Google Drive. 139 // Shows settings related to Google Drive.
140 virtual void ShowDriveSettings() = 0; 140 virtual void ShowDriveSettings() = 0;
141 141
142 // Shows settings related to input methods. 142 // Shows settings related to input methods.
143 virtual void ShowIMESettings() = 0; 143 virtual void ShowIMESettings() = 0;
144 144
145 // Shows help. 145 // Shows help.
146 virtual void ShowHelp() = 0; 146 virtual void ShowHelp() = 0;
147 147
148 // Gets whether the caps lock is on.
149 virtual bool IsCapsLockOn() const = 0;
150
151 // Sets the caps lock status to |enabled|.
152 virtual void SetCapsLockEnabled(bool enabled) = 0;
153
154 // Attempts to shut down the system. 148 // Attempts to shut down the system.
155 virtual void ShutDown() = 0; 149 virtual void ShutDown() = 0;
156 150
157 // Attempts to sign out the user. 151 // Attempts to sign out the user.
158 virtual void SignOut() = 0; 152 virtual void SignOut() = 0;
159 153
160 // Attempts to lock the screen. 154 // Attempts to lock the screen.
161 virtual void RequestLockScreen() = 0; 155 virtual void RequestLockScreen() = 0;
162 156
163 // Attempts to restart the system. 157 // Attempts to restart the system.
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 269
276 // Sets VolumeControlDelegate. 270 // Sets VolumeControlDelegate.
277 virtual void SetVolumeControlDelegate( 271 virtual void SetVolumeControlDelegate(
278 scoped_ptr<VolumeControlDelegate> delegate) = 0; 272 scoped_ptr<VolumeControlDelegate> delegate) = 0;
279 273
280 }; 274 };
281 275
282 } // namespace ash 276 } // namespace ash
283 277
284 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 278 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/system/status_area_widget.cc ('k') | ash/system/tray_caps_lock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698