OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_CLIENT_H_ |
6 #define CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_CLIENT_H_ | 6 #define CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_CLIENT_H_ |
7 | 7 |
8 #include "ash/public/interfaces/system_tray.mojom.h" | 8 #include "ash/public/interfaces/system_tray.mojom.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "chrome/browser/chromeos/system/system_clock_observer.h" | 10 #include "chrome/browser/chromeos/system/system_clock_observer.h" |
| 11 #include "chromeos/dbus/update_engine_client.h" |
11 #include "components/policy/core/common/cloud/cloud_policy_store.h" | 12 #include "components/policy/core/common/cloud/cloud_policy_store.h" |
12 #include "content/public/browser/notification_observer.h" | 13 #include "content/public/browser/notification_observer.h" |
13 #include "content/public/browser/notification_registrar.h" | 14 #include "content/public/browser/notification_registrar.h" |
| 15 |
14 #include "mojo/public/cpp/bindings/binding.h" | 16 #include "mojo/public/cpp/bindings/binding.h" |
15 | 17 |
16 namespace ash { | 18 namespace ash { |
17 enum class LoginStatus; | 19 enum class LoginStatus; |
18 } | 20 } |
19 | 21 |
20 namespace views { | 22 namespace views { |
21 class Widget; | 23 class Widget; |
22 class WidgetDelegate; | 24 class WidgetDelegate; |
23 } | 25 } |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 void ShowBluetoothPairingDialog(const std::string& address, | 64 void ShowBluetoothPairingDialog(const std::string& address, |
63 const base::string16& name_for_display, | 65 const base::string16& name_for_display, |
64 bool paired, | 66 bool paired, |
65 bool connected) override; | 67 bool connected) override; |
66 void ShowDateSettings() override; | 68 void ShowDateSettings() override; |
67 void ShowSetTimeDialog() override; | 69 void ShowSetTimeDialog() override; |
68 void ShowDisplaySettings() override; | 70 void ShowDisplaySettings() override; |
69 void ShowPowerSettings() override; | 71 void ShowPowerSettings() override; |
70 void ShowChromeSlow() override; | 72 void ShowChromeSlow() override; |
71 void ShowIMESettings() override; | 73 void ShowIMESettings() override; |
| 74 void ShowAboutChromeOS(bool check_for_update) override; |
72 void ShowHelp() override; | 75 void ShowHelp() override; |
73 void ShowAccessibilityHelp() override; | 76 void ShowAccessibilityHelp() override; |
74 void ShowAccessibilitySettings() override; | 77 void ShowAccessibilitySettings() override; |
75 void ShowPaletteHelp() override; | 78 void ShowPaletteHelp() override; |
76 void ShowPaletteSettings() override; | 79 void ShowPaletteSettings() override; |
77 void ShowPublicAccountInfo() override; | 80 void ShowPublicAccountInfo() override; |
78 void ShowEnterpriseInfo() override; | 81 void ShowEnterpriseInfo() override; |
79 void ShowNetworkConfigure(const std::string& network_id) override; | 82 void ShowNetworkConfigure(const std::string& network_id) override; |
80 void ShowNetworkCreate(const std::string& type) override; | 83 void ShowNetworkCreate(const std::string& type) override; |
81 void ShowThirdPartyVpnCreate(const std::string& extension_id) override; | 84 void ShowThirdPartyVpnCreate(const std::string& extension_id) override; |
82 void ShowNetworkSettings(const std::string& network_id) override; | 85 void ShowNetworkSettings(const std::string& network_id) override; |
83 void ShowProxySettings() override; | 86 void ShowProxySettings() override; |
84 void SignOut() override; | 87 void SignOut() override; |
85 void RequestRestartForUpdate() override; | 88 void RequestRestartForUpdate() override; |
86 | 89 |
87 private: | 90 private: |
88 // Helper function shared by ShowNetworkSettings() and ShowNetworkConfigure(). | 91 // Helper function shared by ShowNetworkSettings() and ShowNetworkConfigure(). |
89 void ShowNetworkSettingsHelper(const std::string& network_id, | 92 void ShowNetworkSettingsHelper(const std::string& network_id, |
90 bool show_configure); | 93 bool show_configure); |
91 | 94 |
92 // Requests that ash show the update available icon. | 95 // Requests that ash show the update available icon. |
93 void HandleUpdateAvailable(); | 96 void HandleUpdateAvailable(); |
94 | 97 |
| 98 // Requests that ash show the update over cellular available icon. |
| 99 void HandleUpdateOverCellularAvailable(); |
| 100 |
95 // chromeos::system::SystemClockObserver: | 101 // chromeos::system::SystemClockObserver: |
96 void OnSystemClockChanged(chromeos::system::SystemClock* clock) override; | 102 void OnSystemClockChanged(chromeos::system::SystemClock* clock) override; |
97 | 103 |
98 // policy::CloudPolicyStore::Observer | 104 // policy::CloudPolicyStore::Observer |
99 void OnStoreLoaded(policy::CloudPolicyStore* store) override; | 105 void OnStoreLoaded(policy::CloudPolicyStore* store) override; |
100 void OnStoreError(policy::CloudPolicyStore* store) override; | 106 void OnStoreError(policy::CloudPolicyStore* store) override; |
101 | 107 |
102 void UpdateEnterpriseDomain(); | 108 void UpdateEnterpriseDomain(); |
103 | 109 |
104 // content::NotificationObserver: | 110 // content::NotificationObserver: |
(...skipping 14 matching lines...) Expand all Loading... |
119 // duplicate IPCs during the session. | 125 // duplicate IPCs during the session. |
120 std::string last_enterprise_domain_; | 126 std::string last_enterprise_domain_; |
121 bool last_active_directory_managed_ = false; | 127 bool last_active_directory_managed_ = false; |
122 | 128 |
123 content::NotificationRegistrar registrar_; | 129 content::NotificationRegistrar registrar_; |
124 | 130 |
125 DISALLOW_COPY_AND_ASSIGN(SystemTrayClient); | 131 DISALLOW_COPY_AND_ASSIGN(SystemTrayClient); |
126 }; | 132 }; |
127 | 133 |
128 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_CLIENT_H_ | 134 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_CLIENT_H_ |
OLD | NEW |