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

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

Issue 2108793002: mash: Convert system tray logout button to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more review comments, fix mash_unittests Created 4 years, 5 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_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 5 #ifndef ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
6 #define ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 6 #define ASH_COMMON_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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // implementations of this class. Consumers of this delegate should handle the 120 // implementations of this class. Consumers of this delegate should handle the
121 // default return value (e.g. nullptr). 121 // default return value (e.g. nullptr).
122 class ASH_EXPORT SystemTrayDelegate { 122 class ASH_EXPORT SystemTrayDelegate {
123 public: 123 public:
124 SystemTrayDelegate(); 124 SystemTrayDelegate();
125 virtual ~SystemTrayDelegate(); 125 virtual ~SystemTrayDelegate();
126 126
127 // Called after SystemTray has been instantiated. 127 // Called after SystemTray has been instantiated.
128 virtual void Initialize(); 128 virtual void Initialize();
129 129
130 // Called before SystemTray is destroyed.
131 virtual void Shutdown();
132
133 // Returns true if system tray should be visible on startup. 130 // Returns true if system tray should be visible on startup.
134 virtual bool GetTrayVisibilityOnStartup(); 131 virtual bool GetTrayVisibilityOnStartup();
135 132
136 // Gets information about the active user. 133 // Gets information about the active user.
137 virtual LoginStatus GetUserLoginStatus() const; 134 virtual LoginStatus GetUserLoginStatus() const;
138 135
139 // Shows UI for changing user's profile picture. 136 // Shows UI for changing user's profile picture.
140 virtual void ChangeProfilePicture(); 137 virtual void ChangeProfilePicture();
141 138
142 // Returns the domain that manages the device, if it is enterprise-enrolled. 139 // Returns the domain that manages the device, if it is enterprise-enrolled.
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 // asynchronously calls |callback| once a trusted policy becomes available. 333 // asynchronously calls |callback| once a trusted policy becomes available.
337 virtual void ShouldRebootOnShutdown(const RebootOnShutdownCallback& callback); 334 virtual void ShouldRebootOnShutdown(const RebootOnShutdownCallback& callback);
338 335
339 // Returns VPNDelegate. May return nullptr. 336 // Returns VPNDelegate. May return nullptr.
340 virtual VPNDelegate* GetVPNDelegate() const; 337 virtual VPNDelegate* GetVPNDelegate() const;
341 }; 338 };
342 339
343 } // namespace ash 340 } // namespace ash
344 341
345 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 342 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/common/system/tray/label_tray_view.cc ('k') | ash/common/system/tray/system_tray_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698