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

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

Issue 210903003: Implemented system tray UI for new account management. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed. Created 6 years, 9 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
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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 std::string id; 104 std::string id;
105 base::string16 name; 105 base::string16 name;
106 base::string16 medium_name; 106 base::string16 medium_name;
107 base::string16 short_name; 107 base::string16 short_name;
108 }; 108 };
109 109
110 typedef std::vector<IMEInfo> IMEInfoList; 110 typedef std::vector<IMEInfo> IMEInfoList;
111 111
112 class VolumeControlDelegate; 112 class VolumeControlDelegate;
113 113
114 namespace tray {
115 class UserAccountsDelegate;
116 } // namespace tray
117
114 class ASH_EXPORT SystemTrayDelegate { 118 class ASH_EXPORT SystemTrayDelegate {
115 public: 119 public:
116 virtual ~SystemTrayDelegate() {} 120 virtual ~SystemTrayDelegate() {}
117 121
118 // Called after SystemTray has been instantiated. 122 // Called after SystemTray has been instantiated.
119 virtual void Initialize() = 0; 123 virtual void Initialize() = 0;
120 124
121 // Called before SystemTray is destroyed. 125 // Called before SystemTray is destroyed.
122 virtual void Shutdown() = 0; 126 virtual void Shutdown() = 0;
123 127
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 // to be switched to the new user. 327 // to be switched to the new user.
324 // Note: This will happen after SessionStateObserver::ActiveUserChanged fires. 328 // Note: This will happen after SessionStateObserver::ActiveUserChanged fires.
325 virtual void ActiveUserWasChanged() = 0; 329 virtual void ActiveUserWasChanged() = 0;
326 330
327 // Returns true when |network| is behind captive portal. 331 // Returns true when |network| is behind captive portal.
328 virtual bool IsNetworkBehindCaptivePortal( 332 virtual bool IsNetworkBehindCaptivePortal(
329 const std::string& service_path) const = 0; 333 const std::string& service_path) const = 0;
330 334
331 // Returns true when the Search key is configured to be treated as Caps Lock. 335 // Returns true when the Search key is configured to be treated as Caps Lock.
332 virtual bool IsSearchKeyMappedToCapsLock() = 0; 336 virtual bool IsSearchKeyMappedToCapsLock() = 0;
337
338 // Returns accounts delegate for given user.
339 virtual tray::UserAccountsDelegate* GetUserAccountsDelegate(
340 const std::string& user_id) = 0;
333 }; 341 };
342
334 } // namespace ash 343 } // namespace ash
335 344
336 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 345 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698