| 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 } |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 // to be switched to the new user. | 289 // to be switched to the new user. |
| 289 // Note: This will happen after SessionStateObserver::ActiveUserChanged fires. | 290 // Note: This will happen after SessionStateObserver::ActiveUserChanged fires. |
| 290 virtual void ActiveUserWasChanged() = 0; | 291 virtual void ActiveUserWasChanged() = 0; |
| 291 | 292 |
| 292 // Returns true when the Search key is configured to be treated as Caps Lock. | 293 // Returns true when the Search key is configured to be treated as Caps Lock. |
| 293 virtual bool IsSearchKeyMappedToCapsLock() = 0; | 294 virtual bool IsSearchKeyMappedToCapsLock() = 0; |
| 294 | 295 |
| 295 // Returns accounts delegate for given user. | 296 // Returns accounts delegate for given user. |
| 296 virtual tray::UserAccountsDelegate* GetUserAccountsDelegate( | 297 virtual tray::UserAccountsDelegate* GetUserAccountsDelegate( |
| 297 const std::string& user_id) = 0; | 298 const std::string& user_id) = 0; |
| 299 |
| 300 // Adding callbacks that are notified when supervised info is being changed. |
| 301 virtual void AddCustodianInfoChangedCallback( |
| 302 const base::Closure& callback) = 0; |
| 298 }; | 303 }; |
| 299 | 304 |
| 300 } // namespace ash | 305 } // namespace ash |
| 301 | 306 |
| 302 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 307 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |