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

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: Merge conflicts resolved. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « ash/system/tray/hover_highlight_view.cc ('k') | ash/system/tray/tray_constants.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 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 // to be switched to the new user. 330 // to be switched to the new user.
327 // Note: This will happen after SessionStateObserver::ActiveUserChanged fires. 331 // Note: This will happen after SessionStateObserver::ActiveUserChanged fires.
328 virtual void ActiveUserWasChanged() = 0; 332 virtual void ActiveUserWasChanged() = 0;
329 333
330 // Returns true when |network| is behind captive portal. 334 // Returns true when |network| is behind captive portal.
331 virtual bool IsNetworkBehindCaptivePortal( 335 virtual bool IsNetworkBehindCaptivePortal(
332 const std::string& service_path) const = 0; 336 const std::string& service_path) const = 0;
333 337
334 // Returns true when the Search key is configured to be treated as Caps Lock. 338 // Returns true when the Search key is configured to be treated as Caps Lock.
335 virtual bool IsSearchKeyMappedToCapsLock() = 0; 339 virtual bool IsSearchKeyMappedToCapsLock() = 0;
340
341 // Returns accounts delegate for given user.
342 virtual tray::UserAccountsDelegate* GetUserAccountsDelegate(
343 const std::string& user_id) = 0;
336 }; 344 };
345
337 } // namespace ash 346 } // namespace ash
338 347
339 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 348 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/system/tray/hover_highlight_view.cc ('k') | ash/system/tray/tray_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698