| 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 10 matching lines...) Expand all Loading... |
| 21 static SystemTrayClient* Get(); | 21 static SystemTrayClient* Get(); |
| 22 | 22 |
| 23 private: | 23 private: |
| 24 // Connects or reconnects the |system_tray_| interface. | 24 // Connects or reconnects the |system_tray_| interface. |
| 25 void ConnectToSystemTray(); | 25 void ConnectToSystemTray(); |
| 26 | 26 |
| 27 // Handles errors on the |system_tray_| interface connection. | 27 // Handles errors on the |system_tray_| interface connection. |
| 28 void OnClientConnectionError(); | 28 void OnClientConnectionError(); |
| 29 | 29 |
| 30 // ash::mojom::SystemTrayClient: | 30 // ash::mojom::SystemTrayClient: |
| 31 void ShowSettings() override; |
| 31 void ShowDateSettings() override; | 32 void ShowDateSettings() override; |
| 33 void ShowDisplaySettings() override; |
| 34 void ShowChromeSlow() override; |
| 35 void ShowIMESettings() override; |
| 36 void ShowHelp() override; |
| 37 void ShowAccessibilityHelp() override; |
| 38 void ShowAccessibilitySettings() override; |
| 39 void ShowPaletteHelp() override; |
| 40 void ShowPaletteSettings() override; |
| 41 void ShowPublicAccountInfo() override; |
| 42 void ShowProxySettings() override; |
| 32 | 43 |
| 33 // chromeos::system::SystemClockObserver: | 44 // chromeos::system::SystemClockObserver: |
| 34 void OnSystemClockChanged(chromeos::system::SystemClock* clock) override; | 45 void OnSystemClockChanged(chromeos::system::SystemClock* clock) override; |
| 35 | 46 |
| 36 // System tray mojo service in ash. | 47 // System tray mojo service in ash. |
| 37 ash::mojom::SystemTrayPtr system_tray_; | 48 ash::mojom::SystemTrayPtr system_tray_; |
| 38 | 49 |
| 39 DISALLOW_COPY_AND_ASSIGN(SystemTrayClient); | 50 DISALLOW_COPY_AND_ASSIGN(SystemTrayClient); |
| 40 }; | 51 }; |
| 41 | 52 |
| 42 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_CLIENT_H_ | 53 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_CLIENT_H_ |
| OLD | NEW |