Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Side by Side Diff: ash/system/tray/system_tray_delegate.h

Issue 2923083002: chromeos: Convert system tray session length limit to mojo (Closed)
Patch Set: rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/system_tray_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/i18n/time_formatting.h"
13 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
14 13
15 namespace base {
16 class TimeDelta;
17 class TimeTicks;
18 }
19
20 namespace ash { 14 namespace ash {
21 struct IMEInfo; 15 struct IMEInfo;
22 struct IMEPropertyInfo; 16 struct IMEPropertyInfo;
23 17
24 using IMEInfoList = std::vector<IMEInfo>; 18 using IMEInfoList = std::vector<IMEInfo>;
25 using IMEPropertyInfoList = std::vector<IMEPropertyInfo>; 19 using IMEPropertyInfoList = std::vector<IMEPropertyInfo>;
26 20
27 class NetworkingConfigDelegate; 21 class NetworkingConfigDelegate;
28 22
29 // SystemTrayDelegate is intended for delegating tasks in the System Tray to the 23 // SystemTrayDelegate is intended for delegating tasks in the System Tray to the
(...skipping 22 matching lines...) Expand all
52 46
53 // Returns a list of properties for the currently selected IME. 47 // Returns a list of properties for the currently selected IME.
54 virtual void GetCurrentIMEProperties(IMEPropertyInfoList* list); 48 virtual void GetCurrentIMEProperties(IMEPropertyInfoList* list);
55 49
56 // Returns a non-empty string if IMEs are managed by policy. 50 // Returns a non-empty string if IMEs are managed by policy.
57 virtual base::string16 GetIMEManagedMessage(); 51 virtual base::string16 GetIMEManagedMessage();
58 52
59 // Returns NetworkingConfigDelegate. May return nullptr. 53 // Returns NetworkingConfigDelegate. May return nullptr.
60 virtual NetworkingConfigDelegate* GetNetworkingConfigDelegate() const; 54 virtual NetworkingConfigDelegate* GetNetworkingConfigDelegate() const;
61 55
62 // Retrieves the session start time. Returns |false| if the time is not set.
63 virtual bool GetSessionStartTime(base::TimeTicks* session_start_time);
64
65 // Retrieves the session length limit. Returns |false| if no limit is set.
66 virtual bool GetSessionLengthLimit(base::TimeDelta* session_length_limit);
67
68 // The active user has been changed. This will be called when the UI is ready 56 // The active user has been changed. This will be called when the UI is ready
69 // to be switched to the new user. 57 // to be switched to the new user.
70 // Note: This will happen after SessionObserver::ActiveUserChanged fires. 58 // Note: This will happen after SessionObserver::ActiveUserChanged fires.
71 virtual void ActiveUserWasChanged(); 59 virtual void ActiveUserWasChanged();
72 60
73 // Returns true when the Search key is configured to be treated as Caps Lock. 61 // Returns true when the Search key is configured to be treated as Caps Lock.
74 virtual bool IsSearchKeyMappedToCapsLock(); 62 virtual bool IsSearchKeyMappedToCapsLock();
75 }; 63 };
76 64
77 } // namespace ash 65 } // namespace ash
78 66
79 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 67 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/system_tray_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698