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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 // Returns the currently selected IME. | 47 // Returns the currently selected IME. |
48 virtual void GetCurrentIME(IMEInfo* info); | 48 virtual void GetCurrentIME(IMEInfo* info); |
49 | 49 |
50 // Returns a list of availble IMEs. | 50 // Returns a list of availble IMEs. |
51 virtual void GetAvailableIMEList(IMEInfoList* list); | 51 virtual void GetAvailableIMEList(IMEInfoList* list); |
52 | 52 |
53 // Returns a list of properties for the currently selected IME. | 53 // Returns a list of properties for the currently selected IME. |
54 virtual void GetCurrentIMEProperties(IMEPropertyInfoList* list); | 54 virtual void GetCurrentIMEProperties(IMEPropertyInfoList* list); |
55 | 55 |
| 56 // Returns a non-empty string if IMEs are managed by policy. |
| 57 virtual base::string16 GetIMEManagedMessage(); |
| 58 |
56 // Returns NetworkingConfigDelegate. May return nullptr. | 59 // Returns NetworkingConfigDelegate. May return nullptr. |
57 virtual NetworkingConfigDelegate* GetNetworkingConfigDelegate() const; | 60 virtual NetworkingConfigDelegate* GetNetworkingConfigDelegate() const; |
58 | 61 |
59 // Retrieves the session start time. Returns |false| if the time is not set. | 62 // Retrieves the session start time. Returns |false| if the time is not set. |
60 virtual bool GetSessionStartTime(base::TimeTicks* session_start_time); | 63 virtual bool GetSessionStartTime(base::TimeTicks* session_start_time); |
61 | 64 |
62 // Retrieves the session length limit. Returns |false| if no limit is set. | 65 // Retrieves the session length limit. Returns |false| if no limit is set. |
63 virtual bool GetSessionLengthLimit(base::TimeDelta* session_length_limit); | 66 virtual bool GetSessionLengthLimit(base::TimeDelta* session_length_limit); |
64 | 67 |
65 // The active user has been changed. This will be called when the UI is ready | 68 // The active user has been changed. This will be called when the UI is ready |
66 // to be switched to the new user. | 69 // to be switched to the new user. |
67 // Note: This will happen after SessionObserver::ActiveUserChanged fires. | 70 // Note: This will happen after SessionObserver::ActiveUserChanged fires. |
68 virtual void ActiveUserWasChanged(); | 71 virtual void ActiveUserWasChanged(); |
69 | 72 |
70 // Returns true when the Search key is configured to be treated as Caps Lock. | 73 // Returns true when the Search key is configured to be treated as Caps Lock. |
71 virtual bool IsSearchKeyMappedToCapsLock(); | 74 virtual bool IsSearchKeyMappedToCapsLock(); |
72 }; | 75 }; |
73 | 76 |
74 } // namespace ash | 77 } // namespace ash |
75 | 78 |
76 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 79 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
OLD | NEW |