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

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

Issue 11377133: Customize user details in ash system bubble for public account mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-uploading to try and unstuck the CQ. Created 8 years 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/tray/system_tray_bubble.cc ('k') | ash/system/tray/test_system_tray_delegate.h » ('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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 // Returns true if system tray should be visible on startup. 110 // Returns true if system tray should be visible on startup.
111 virtual bool GetTrayVisibilityOnStartup() = 0; 111 virtual bool GetTrayVisibilityOnStartup() = 0;
112 112
113 // Gets information about the logged in user. 113 // Gets information about the logged in user.
114 virtual const string16 GetUserDisplayName() const = 0; 114 virtual const string16 GetUserDisplayName() const = 0;
115 virtual const std::string GetUserEmail() const = 0; 115 virtual const std::string GetUserEmail() const = 0;
116 virtual const gfx::ImageSkia& GetUserImage() const = 0; 116 virtual const gfx::ImageSkia& GetUserImage() const = 0;
117 virtual user::LoginStatus GetUserLoginStatus() const = 0; 117 virtual user::LoginStatus GetUserLoginStatus() const = 0;
118 118
119 // Returns the domain that manages the device, if it is enterprise-enrolled.
120 virtual const std::string GetEnterpriseDomain() const = 0;
121
119 // Returns whether a system upgrade is available. 122 // Returns whether a system upgrade is available.
120 virtual bool SystemShouldUpgrade() const = 0; 123 virtual bool SystemShouldUpgrade() const = 0;
121 124
122 // Returns the desired hour clock type. 125 // Returns the desired hour clock type.
123 virtual base::HourClockType GetHourClockType() const = 0; 126 virtual base::HourClockType GetHourClockType() const = 0;
124 127
125 // Gets the current power supply status. 128 // Gets the current power supply status.
126 virtual PowerSupplyStatus GetPowerSupplyStatus() const = 0; 129 virtual PowerSupplyStatus GetPowerSupplyStatus() const = 0;
127 130
128 // Requests a status update. 131 // Requests a status update.
(...skipping 13 matching lines...) Expand all
142 145
143 // Shows settings related to multiple displays. 146 // Shows settings related to multiple displays.
144 virtual void ShowDisplaySettings() = 0; 147 virtual void ShowDisplaySettings() = 0;
145 148
146 // Shows settings related to Google Drive. 149 // Shows settings related to Google Drive.
147 virtual void ShowDriveSettings() = 0; 150 virtual void ShowDriveSettings() = 0;
148 151
149 // Shows settings related to input methods. 152 // Shows settings related to input methods.
150 virtual void ShowIMESettings() = 0; 153 virtual void ShowIMESettings() = 0;
151 154
155 // Shows help.
156 virtual void ShowHelp() = 0;
157
152 // Show accessilibity help. 158 // Show accessilibity help.
153 virtual void ShowAccessibilityHelp() = 0; 159 virtual void ShowAccessibilityHelp() = 0;
154 160
155 // Shows help. 161 // Shows more information about public account mode.
156 virtual void ShowHelp() = 0; 162 virtual void ShowPublicAccountInfo() = 0;
157 163
158 // Attempts to shut down the system. 164 // Attempts to shut down the system.
159 virtual void ShutDown() = 0; 165 virtual void ShutDown() = 0;
160 166
161 // Attempts to sign out the user. 167 // Attempts to sign out the user.
162 virtual void SignOut() = 0; 168 virtual void SignOut() = 0;
163 169
164 // Attempts to lock the screen. 170 // Attempts to lock the screen.
165 virtual void RequestLockScreen() = 0; 171 virtual void RequestLockScreen() = 0;
166 172
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 virtual void SetVolumeControlDelegate( 298 virtual void SetVolumeControlDelegate(
293 scoped_ptr<VolumeControlDelegate> delegate) = 0; 299 scoped_ptr<VolumeControlDelegate> delegate) = 0;
294 300
295 // Creates a dummy delegate for testing. 301 // Creates a dummy delegate for testing.
296 static SystemTrayDelegate* CreateDummyDelegate(); 302 static SystemTrayDelegate* CreateDummyDelegate();
297 }; 303 };
298 304
299 } // namespace ash 305 } // namespace ash
300 306
301 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 307 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray_bubble.cc ('k') | ash/system/tray/test_system_tray_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698