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

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: Per UI feedback, set custom border color on public account logout button. Created 8 years, 1 month 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
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 16 matching lines...) Expand all
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
152 // Shows help. 155 // Shows help.
153 virtual void ShowHelp() = 0; 156 virtual void ShowHelp() = 0;
154 157
158 // Shows more information about public account mode.
159 virtual void ShowPublicAccountInfo() = 0;
160
155 // Attempts to shut down the system. 161 // Attempts to shut down the system.
156 virtual void ShutDown() = 0; 162 virtual void ShutDown() = 0;
157 163
158 // Attempts to sign out the user. 164 // Attempts to sign out the user.
159 virtual void SignOut() = 0; 165 virtual void SignOut() = 0;
160 166
161 // Attempts to lock the screen. 167 // Attempts to lock the screen.
162 virtual void RequestLockScreen() = 0; 168 virtual void RequestLockScreen() = 0;
163 169
164 // Attempts to restart the system. 170 // Attempts to restart the system.
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 virtual void SetVolumeControlDelegate( 295 virtual void SetVolumeControlDelegate(
290 scoped_ptr<VolumeControlDelegate> delegate) = 0; 296 scoped_ptr<VolumeControlDelegate> delegate) = 0;
291 297
292 // Creates a dummy delegate for testing. 298 // Creates a dummy delegate for testing.
293 static SystemTrayDelegate* CreateDummyDelegate(); 299 static SystemTrayDelegate* CreateDummyDelegate();
294 }; 300 };
295 301
296 } // namespace ash 302 } // namespace ash
297 303
298 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 304 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698