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

Side by Side Diff: chrome/browser/ui/ash/system_tray_delegate_chromeos.h

Issue 2923083002: chromeos: Convert system tray session length limit to mojo (Closed)
Patch Set: 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_
6 #define CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_ 6 #define CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 ~SystemTrayDelegateChromeOS() override; 46 ~SystemTrayDelegateChromeOS() override;
47 47
48 // Overridden from ash::SystemTrayDelegate: 48 // Overridden from ash::SystemTrayDelegate:
49 void Initialize() override; 49 void Initialize() override;
50 void ShowUserLogin() override; 50 void ShowUserLogin() override;
51 void GetCurrentIME(ash::IMEInfo* info) override; 51 void GetCurrentIME(ash::IMEInfo* info) override;
52 void GetAvailableIMEList(ash::IMEInfoList* list) override; 52 void GetAvailableIMEList(ash::IMEInfoList* list) override;
53 void GetCurrentIMEProperties(ash::IMEPropertyInfoList* list) override; 53 void GetCurrentIMEProperties(ash::IMEPropertyInfoList* list) override;
54 base::string16 GetIMEManagedMessage() override; 54 base::string16 GetIMEManagedMessage() override;
55 ash::NetworkingConfigDelegate* GetNetworkingConfigDelegate() const override; 55 ash::NetworkingConfigDelegate* GetNetworkingConfigDelegate() const override;
56 bool GetSessionStartTime(base::TimeTicks* session_start_time) override;
57 bool GetSessionLengthLimit(base::TimeDelta* session_length_limit) override;
58 void ActiveUserWasChanged() override; 56 void ActiveUserWasChanged() override;
59 bool IsSearchKeyMappedToCapsLock() override; 57 bool IsSearchKeyMappedToCapsLock() override;
60 58
61 private: 59 private:
62 ash::SystemTrayNotifier* GetSystemTrayNotifier(); 60 ash::SystemTrayNotifier* GetSystemTrayNotifier();
63 61
64 void SetProfile(Profile* profile); 62 void SetProfile(Profile* profile);
65 63
66 bool UnsetProfile(Profile* profile); 64 bool UnsetProfile(Profile* profile);
67 65
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 109
112 // input_method::InputMethodManager::ImeMenuObserver: 110 // input_method::InputMethodManager::ImeMenuObserver:
113 void ImeMenuActivationChanged(bool is_active) override; 111 void ImeMenuActivationChanged(bool is_active) override;
114 void ImeMenuListChanged() override; 112 void ImeMenuListChanged() override;
115 void ImeMenuItemsChanged( 113 void ImeMenuItemsChanged(
116 const std::string& engine_id, 114 const std::string& engine_id,
117 const std::vector<input_method::InputMethodManager::MenuItem>& items) 115 const std::vector<input_method::InputMethodManager::MenuItem>& items)
118 override; 116 override;
119 117
120 std::unique_ptr<content::NotificationRegistrar> registrar_; 118 std::unique_ptr<content::NotificationRegistrar> registrar_;
121 std::unique_ptr<PrefChangeRegistrar> local_state_registrar_;
122 std::unique_ptr<PrefChangeRegistrar> user_pref_registrar_; 119 std::unique_ptr<PrefChangeRegistrar> user_pref_registrar_;
123 Profile* user_profile_ = nullptr; 120 Profile* user_profile_ = nullptr;
124 int search_key_mapped_to_ = input_method::kSearchKey; 121 int search_key_mapped_to_ = input_method::kSearchKey;
125 bool have_session_start_time_ = false;
126 base::TimeTicks session_start_time_;
127 bool have_session_length_limit_ = false;
128 base::TimeDelta session_length_limit_;
129 bool session_started_ = false;
130 122
131 std::unique_ptr<ash::NetworkingConfigDelegate> networking_config_delegate_; 123 std::unique_ptr<ash::NetworkingConfigDelegate> networking_config_delegate_;
132 std::unique_ptr<AccessibilityStatusSubscription> accessibility_subscription_; 124 std::unique_ptr<AccessibilityStatusSubscription> accessibility_subscription_;
133 125
134 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateChromeOS); 126 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateChromeOS);
135 }; 127 };
136 128
137 ash::SystemTrayDelegate* CreateSystemTrayDelegate(); 129 ash::SystemTrayDelegate* CreateSystemTrayDelegate();
138 130
139 } // namespace chromeos 131 } // namespace chromeos
140 132
141 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_ 133 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698