| 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 |
| 11 #include "ash/ash_export.h" | 11 #include "ash/ash_export.h" |
| 12 #include "ash/system/user/login_status.h" | 12 #include "ash/system/user/login_status.h" |
| 13 #include "base/callback_forward.h" |
| 13 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 14 #include "base/i18n/time_formatting.h" | 15 #include "base/i18n/time_formatting.h" |
| 15 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/strings/string16.h" | 17 #include "base/strings/string16.h" |
| 17 #include "ui/gfx/image/image_skia.h" | 18 #include "ui/gfx/image/image_skia.h" |
| 18 | 19 |
| 19 namespace base { | 20 namespace base { |
| 20 class TimeDelta; | 21 class TimeDelta; |
| 21 class TimeTicks; | 22 class TimeTicks; |
| 22 } | 23 } |
| 23 | 24 |
| 24 namespace ash { | 25 namespace ash { |
| 25 | 26 |
| 27 class CustodianInfoTrayObserver; |
| 28 |
| 26 struct ASH_EXPORT NetworkIconInfo { | 29 struct ASH_EXPORT NetworkIconInfo { |
| 27 NetworkIconInfo(); | 30 NetworkIconInfo(); |
| 28 ~NetworkIconInfo(); | 31 ~NetworkIconInfo(); |
| 29 | 32 |
| 30 bool highlight() const { return connected || connecting; } | 33 bool highlight() const { return connected || connecting; } |
| 31 | 34 |
| 32 bool connecting; | 35 bool connecting; |
| 33 bool connected; | 36 bool connected; |
| 34 bool tray_icon_visible; | 37 bool tray_icon_visible; |
| 35 gfx::ImageSkia image; | 38 gfx::ImageSkia image; |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 // to be switched to the new user. | 307 // to be switched to the new user. |
| 305 // Note: This will happen after SessionStateObserver::ActiveUserChanged fires. | 308 // Note: This will happen after SessionStateObserver::ActiveUserChanged fires. |
| 306 virtual void ActiveUserWasChanged() = 0; | 309 virtual void ActiveUserWasChanged() = 0; |
| 307 | 310 |
| 308 // Returns true when the Search key is configured to be treated as Caps Lock. | 311 // Returns true when the Search key is configured to be treated as Caps Lock. |
| 309 virtual bool IsSearchKeyMappedToCapsLock() = 0; | 312 virtual bool IsSearchKeyMappedToCapsLock() = 0; |
| 310 | 313 |
| 311 // Returns accounts delegate for given user. | 314 // Returns accounts delegate for given user. |
| 312 virtual tray::UserAccountsDelegate* GetUserAccountsDelegate( | 315 virtual tray::UserAccountsDelegate* GetUserAccountsDelegate( |
| 313 const std::string& user_id) = 0; | 316 const std::string& user_id) = 0; |
| 317 |
| 318 // Adding observers that are notified when supervised info is being changed. |
| 319 virtual void AddCustodianInfoTrayObserver( |
| 320 CustodianInfoTrayObserver* observer) = 0; |
| 321 |
| 322 virtual void RemoveCustodianInfoTrayObserver( |
| 323 CustodianInfoTrayObserver* observer) = 0; |
| 314 }; | 324 }; |
| 315 | 325 |
| 316 } // namespace ash | 326 } // namespace ash |
| 317 | 327 |
| 318 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 328 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |