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

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

Issue 2822033002: cros: Use SessionController to enable system tray settings / notifications tray (Closed)
Patch Set: Created 3 years, 8 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
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 <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 // Returns true if the current user is supervised: has legacy supervised 80 // Returns true if the current user is supervised: has legacy supervised
81 // account or kid account. 81 // account or kid account.
82 virtual bool IsUserSupervised() const; 82 virtual bool IsUserSupervised() const;
83 83
84 // Returns true if the current user is child. 84 // Returns true if the current user is child.
85 // TODO(merkulova): remove on FakeUserManager componentization. 85 // TODO(merkulova): remove on FakeUserManager componentization.
86 // crbug.com/443119 86 // crbug.com/443119
87 virtual bool IsUserChild() const; 87 virtual bool IsUserChild() const;
88 88
89 // Returns true if settings menu item should appear.
90 virtual bool ShouldShowSettings() const;
91
92 // Returns true if notification tray should appear.
93 virtual bool ShouldShowNotificationTray() const;
94
95 // Shows information about enterprise enrolled devices. 89 // Shows information about enterprise enrolled devices.
96 virtual void ShowEnterpriseInfo(); 90 virtual void ShowEnterpriseInfo();
97 91
98 // Shows login UI to add other users to this session. 92 // Shows login UI to add other users to this session.
99 virtual void ShowUserLogin(); 93 virtual void ShowUserLogin();
100 94
101 // Returns the currently selected IME. 95 // Returns the currently selected IME.
102 virtual void GetCurrentIME(IMEInfo* info); 96 virtual void GetCurrentIME(IMEInfo* info);
103 97
104 // Returns a list of availble IMEs. 98 // Returns a list of availble IMEs.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // Creates a system tray item for display rotation lock. 137 // Creates a system tray item for display rotation lock.
144 // TODO(jamescook): Remove this when mus has support for display management 138 // TODO(jamescook): Remove this when mus has support for display management
145 // and we have a DisplayManager equivalent. See http://crbug.com/548429 139 // and we have a DisplayManager equivalent. See http://crbug.com/548429
146 virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem( 140 virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem(
147 SystemTray* tray); 141 SystemTray* tray);
148 }; 142 };
149 143
150 } // namespace ash 144 } // namespace ash
151 145
152 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 146 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698