| 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" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 void ShowNetworkCreate(const std::string& type) override; | 61 void ShowNetworkCreate(const std::string& type) override; |
| 62 void ShowNetworkSettings(const std::string& network_id) override; | 62 void ShowNetworkSettings(const std::string& network_id) override; |
| 63 void ShowProxySettings() override; | 63 void ShowProxySettings() override; |
| 64 void SignOut() override; | 64 void SignOut() override; |
| 65 void RequestRestartForUpdate() override; | 65 void RequestRestartForUpdate() override; |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 // chromeos::system::SystemClockObserver: | 68 // chromeos::system::SystemClockObserver: |
| 69 void OnSystemClockChanged(chromeos::system::SystemClock* clock) override; | 69 void OnSystemClockChanged(chromeos::system::SystemClock* clock) override; |
| 70 | 70 |
| 71 // Connects or reconnects the |system_tray_| interface. | |
| 72 void ConnectToSystemTray(); | |
| 73 | |
| 74 // Handles errors on the |system_tray_| interface connection. | |
| 75 void OnClientConnectionError(); | |
| 76 | |
| 77 // System tray mojo service in ash. | 71 // System tray mojo service in ash. |
| 78 ash::mojom::SystemTrayPtr system_tray_; | 72 ash::mojom::SystemTrayPtr system_tray_; |
| 79 | 73 |
| 74 // Binds this object to the client interface. |
| 75 mojo::Binding<ash::mojom::SystemTrayClient> binding_; |
| 76 |
| 80 DISALLOW_COPY_AND_ASSIGN(SystemTrayClient); | 77 DISALLOW_COPY_AND_ASSIGN(SystemTrayClient); |
| 81 }; | 78 }; |
| 82 | 79 |
| 83 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_CLIENT_H_ | 80 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_CLIENT_H_ |
| OLD | NEW |