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

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

Issue 561713002: ash: Add checks for supervised users. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Default flag value set in user class constructor. Created 6 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
« no previous file with comments | « ash/system/tray/default_system_tray_delegate.cc ('k') | ash/system/user/tray_user.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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // Returns the display email of the user that manages the current supervised 112 // Returns the display email of the user that manages the current supervised
113 // user. 113 // user.
114 virtual const std::string GetSupervisedUserManager() const = 0; 114 virtual const std::string GetSupervisedUserManager() const = 0;
115 115
116 // Returns the name of the user that manages the current supervised user. 116 // Returns the name of the user that manages the current supervised user.
117 virtual const base::string16 GetSupervisedUserManagerName() const = 0; 117 virtual const base::string16 GetSupervisedUserManagerName() const = 0;
118 118
119 // Returns the notification for supervised users. 119 // Returns the notification for supervised users.
120 virtual const base::string16 GetSupervisedUserMessage() const = 0; 120 virtual const base::string16 GetSupervisedUserMessage() const = 0;
121 121
122 // Returns true if the current user is supervised.
123 virtual bool IsUserSupervised() const = 0;
124
122 // Returns whether a system upgrade is available. 125 // Returns whether a system upgrade is available.
123 virtual bool SystemShouldUpgrade() const = 0; 126 virtual bool SystemShouldUpgrade() const = 0;
124 127
125 // Returns the desired hour clock type. 128 // Returns the desired hour clock type.
126 virtual base::HourClockType GetHourClockType() const = 0; 129 virtual base::HourClockType GetHourClockType() const = 0;
127 130
128 // Shows settings. 131 // Shows settings.
129 virtual void ShowSettings() = 0; 132 virtual void ShowSettings() = 0;
130 133
131 // Returns true if settings menu item should appear. 134 // Returns true if settings menu item should appear.
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 virtual bool IsSearchKeyMappedToCapsLock() = 0; 299 virtual bool IsSearchKeyMappedToCapsLock() = 0;
297 300
298 // Returns accounts delegate for given user. 301 // Returns accounts delegate for given user.
299 virtual tray::UserAccountsDelegate* GetUserAccountsDelegate( 302 virtual tray::UserAccountsDelegate* GetUserAccountsDelegate(
300 const std::string& user_id) = 0; 303 const std::string& user_id) = 0;
301 }; 304 };
302 305
303 } // namespace ash 306 } // namespace ash
304 307
305 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 308 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/system/tray/default_system_tray_delegate.cc ('k') | ash/system/user/tray_user.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698