OLD | NEW |
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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 virtual void Initialize() = 0; | 119 virtual void Initialize() = 0; |
120 | 120 |
121 // Returns true if system tray should be visible on startup. | 121 // Returns true if system tray should be visible on startup. |
122 virtual bool GetTrayVisibilityOnStartup() = 0; | 122 virtual bool GetTrayVisibilityOnStartup() = 0; |
123 | 123 |
124 // Gets information about the logged in user. | 124 // Gets information about the logged in user. |
125 virtual const string16 GetUserDisplayName() const = 0; | 125 virtual const string16 GetUserDisplayName() const = 0; |
126 virtual const std::string GetUserEmail() const = 0; | 126 virtual const std::string GetUserEmail() const = 0; |
127 virtual const gfx::ImageSkia& GetUserImage() const = 0; | 127 virtual const gfx::ImageSkia& GetUserImage() const = 0; |
128 virtual user::LoginStatus GetUserLoginStatus() const = 0; | 128 virtual user::LoginStatus GetUserLoginStatus() const = 0; |
| 129 virtual bool IsOobeCompleted() const = 0; |
129 | 130 |
130 // Shows UI for changing user's profile picture. | 131 // Shows UI for changing user's profile picture. |
131 virtual void ChangeProfilePicture() = 0; | 132 virtual void ChangeProfilePicture() = 0; |
132 | 133 |
133 // Returns the domain that manages the device, if it is enterprise-enrolled. | 134 // Returns the domain that manages the device, if it is enterprise-enrolled. |
134 virtual const std::string GetEnterpriseDomain() const = 0; | 135 virtual const std::string GetEnterpriseDomain() const = 0; |
135 | 136 |
136 // Returns notification for enterprise enrolled devices. | 137 // Returns notification for enterprise enrolled devices. |
137 virtual const string16 GetEnterpriseMessage() const = 0; | 138 virtual const string16 GetEnterpriseMessage() const = 0; |
138 | 139 |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 // Speaks the given text if spoken feedback is enabled. | 348 // Speaks the given text if spoken feedback is enabled. |
348 virtual void MaybeSpeak(const std::string& utterance) const = 0; | 349 virtual void MaybeSpeak(const std::string& utterance) const = 0; |
349 | 350 |
350 // Creates a dummy delegate for testing. | 351 // Creates a dummy delegate for testing. |
351 static SystemTrayDelegate* CreateDummyDelegate(); | 352 static SystemTrayDelegate* CreateDummyDelegate(); |
352 }; | 353 }; |
353 | 354 |
354 } // namespace ash | 355 } // namespace ash |
355 | 356 |
356 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 357 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
OLD | NEW |