Chromium Code Reviews| 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" |
| 17 #include "base/memory/weak_ptr.h" | |
| 16 #include "base/strings/string16.h" | 18 #include "base/strings/string16.h" |
| 17 #include "ui/gfx/image/image_skia.h" | 19 #include "ui/gfx/image/image_skia.h" |
| 18 | 20 |
| 21 class CustodianInfoTrayObserver; | |
| 22 | |
| 19 namespace base { | 23 namespace base { |
| 20 class TimeDelta; | 24 class TimeDelta; |
| 21 class TimeTicks; | 25 class TimeTicks; |
| 22 } | 26 } |
| 23 | 27 |
| 24 namespace ash { | 28 namespace ash { |
| 25 | 29 |
| 26 struct ASH_EXPORT NetworkIconInfo { | 30 struct ASH_EXPORT NetworkIconInfo { |
| 27 NetworkIconInfo(); | 31 NetworkIconInfo(); |
| 28 ~NetworkIconInfo(); | 32 ~NetworkIconInfo(); |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 288 // to be switched to the new user. | 292 // to be switched to the new user. |
| 289 // Note: This will happen after SessionStateObserver::ActiveUserChanged fires. | 293 // Note: This will happen after SessionStateObserver::ActiveUserChanged fires. |
| 290 virtual void ActiveUserWasChanged() = 0; | 294 virtual void ActiveUserWasChanged() = 0; |
| 291 | 295 |
| 292 // Returns true when the Search key is configured to be treated as Caps Lock. | 296 // Returns true when the Search key is configured to be treated as Caps Lock. |
| 293 virtual bool IsSearchKeyMappedToCapsLock() = 0; | 297 virtual bool IsSearchKeyMappedToCapsLock() = 0; |
| 294 | 298 |
| 295 // Returns accounts delegate for given user. | 299 // Returns accounts delegate for given user. |
| 296 virtual tray::UserAccountsDelegate* GetUserAccountsDelegate( | 300 virtual tray::UserAccountsDelegate* GetUserAccountsDelegate( |
| 297 const std::string& user_id) = 0; | 301 const std::string& user_id) = 0; |
| 302 | |
| 303 // Adding observers that are notified when supervised info is being changed. | |
| 304 virtual void AddCustodianInfoChangedObserver( | |
| 305 base::WeakPtr<CustodianInfoTrayObserver> observer) { | |
|
Daniel Erat
2014/10/06 15:45:58
what's the lifetime of the observer relative to th
| |
| 306 }; | |
| 298 }; | 307 }; |
| 299 | 308 |
| 300 } // namespace ash | 309 } // namespace ash |
| 301 | 310 |
| 302 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 311 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |