| OLD | NEW |
| 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> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "ash/common/accessibility_types.h" | 14 #include "ash/common/accessibility_types.h" |
| 15 #include "ash/common/session/session_state_observer.h" | |
| 16 #include "ash/common/system/chromeos/supervised/custodian_info_tray_observer.h" | 15 #include "ash/common/system/chromeos/supervised/custodian_info_tray_observer.h" |
| 17 #include "ash/common/system/tray/ime_info.h" | 16 #include "ash/common/system/tray/ime_info.h" |
| 18 #include "ash/common/system/tray/system_tray_delegate.h" | 17 #include "ash/common/system/tray/system_tray_delegate.h" |
| 19 #include "base/callback_forward.h" | 18 #include "base/callback_forward.h" |
| 20 #include "base/callback_list.h" | 19 #include "base/callback_list.h" |
| 21 #include "base/compiler_specific.h" | 20 #include "base/compiler_specific.h" |
| 22 #include "base/macros.h" | 21 #include "base/macros.h" |
| 23 #include "base/memory/ref_counted.h" | 22 #include "base/memory/ref_counted.h" |
| 24 #include "base/memory/weak_ptr.h" | 23 #include "base/memory/weak_ptr.h" |
| 25 #include "base/observer_list.h" | 24 #include "base/observer_list.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 52 namespace chromeos { | 51 namespace chromeos { |
| 53 | 52 |
| 54 class SystemTrayDelegateChromeOS | 53 class SystemTrayDelegateChromeOS |
| 55 : public ui::ime::InputMethodMenuManager::Observer, | 54 : public ui::ime::InputMethodMenuManager::Observer, |
| 56 public ash::SystemTrayDelegate, | 55 public ash::SystemTrayDelegate, |
| 57 public SessionManagerClient::Observer, | 56 public SessionManagerClient::Observer, |
| 58 public content::NotificationObserver, | 57 public content::NotificationObserver, |
| 59 public input_method::InputMethodManager::Observer, | 58 public input_method::InputMethodManager::Observer, |
| 60 public device::BluetoothAdapter::Observer, | 59 public device::BluetoothAdapter::Observer, |
| 61 public policy::CloudPolicyStore::Observer, | 60 public policy::CloudPolicyStore::Observer, |
| 62 public ash::SessionStateObserver, | |
| 63 public chrome::BrowserListObserver, | 61 public chrome::BrowserListObserver, |
| 64 public extensions::AppWindowRegistry::Observer, | 62 public extensions::AppWindowRegistry::Observer, |
| 65 public user_manager::UserManager::Observer, | 63 public user_manager::UserManager::Observer, |
| 66 public user_manager::UserManager::UserSessionStateObserver, | 64 public user_manager::UserManager::UserSessionStateObserver, |
| 67 public SupervisedUserServiceObserver, | 65 public SupervisedUserServiceObserver, |
| 68 public input_method::InputMethodManager::ImeMenuObserver { | 66 public input_method::InputMethodManager::ImeMenuObserver { |
| 69 public: | 67 public: |
| 70 SystemTrayDelegateChromeOS(); | 68 SystemTrayDelegateChromeOS(); |
| 71 | 69 |
| 72 ~SystemTrayDelegateChromeOS() override; | 70 ~SystemTrayDelegateChromeOS() override; |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 | 187 |
| 190 void OnStartBluetoothDiscoverySession( | 188 void OnStartBluetoothDiscoverySession( |
| 191 std::unique_ptr<device::BluetoothDiscoverySession> discovery_session); | 189 std::unique_ptr<device::BluetoothDiscoverySession> discovery_session); |
| 192 | 190 |
| 193 void UpdateEnterpriseDomain(); | 191 void UpdateEnterpriseDomain(); |
| 194 | 192 |
| 195 // Overridden from CloudPolicyStore::Observer | 193 // Overridden from CloudPolicyStore::Observer |
| 196 void OnStoreLoaded(policy::CloudPolicyStore* store) override; | 194 void OnStoreLoaded(policy::CloudPolicyStore* store) override; |
| 197 void OnStoreError(policy::CloudPolicyStore* store) override; | 195 void OnStoreError(policy::CloudPolicyStore* store) override; |
| 198 | 196 |
| 199 // Overridden from ash::SessionStateObserver | |
| 200 void UserAddedToSession(const AccountId& account_id) override; | |
| 201 void ActiveUserChanged(const AccountId& account_id) override; | |
| 202 | |
| 203 // Overridden from chrome::BrowserListObserver: | 197 // Overridden from chrome::BrowserListObserver: |
| 204 void OnBrowserRemoved(Browser* browser) override; | 198 void OnBrowserRemoved(Browser* browser) override; |
| 205 | 199 |
| 206 // Overridden from extensions::AppWindowRegistry::Observer: | 200 // Overridden from extensions::AppWindowRegistry::Observer: |
| 207 void OnAppWindowRemoved(extensions::AppWindow* app_window) override; | 201 void OnAppWindowRemoved(extensions::AppWindow* app_window) override; |
| 208 | 202 |
| 209 // Overridden from SupervisedUserServiceObserver: | 203 // Overridden from SupervisedUserServiceObserver: |
| 210 void OnCustodianInfoChanged() override; | 204 void OnCustodianInfoChanged() override; |
| 211 | 205 |
| 212 void OnAccessibilityStatusChanged( | 206 void OnAccessibilityStatusChanged( |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 base::WeakPtrFactory<SystemTrayDelegateChromeOS> weak_ptr_factory_; | 244 base::WeakPtrFactory<SystemTrayDelegateChromeOS> weak_ptr_factory_; |
| 251 | 245 |
| 252 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateChromeOS); | 246 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateChromeOS); |
| 253 }; | 247 }; |
| 254 | 248 |
| 255 ash::SystemTrayDelegate* CreateSystemTrayDelegate(); | 249 ash::SystemTrayDelegate* CreateSystemTrayDelegate(); |
| 256 | 250 |
| 257 } // namespace chromeos | 251 } // namespace chromeos |
| 258 | 252 |
| 259 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_ | 253 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_ |
| OLD | NEW |