| 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 "mojo/public/cpp/bindings/binding.h" | 11 #include "mojo/public/cpp/bindings/binding.h" |
| 12 | 12 |
| 13 // Handles method calls delegated back to chrome from ash. Also notifies ash of | 13 // Handles method calls delegated back to chrome from ash. Also notifies ash of |
| 14 // relevant state changes in chrome. | 14 // relevant state changes in chrome. |
| 15 // TODO: Consider renaming this to SystemTrayClientChromeOS. | 15 // TODO: Consider renaming this to SystemTrayClientChromeOS. |
| 16 class SystemTrayClient : public ash::mojom::SystemTrayClient, | 16 class SystemTrayClient : public ash::mojom::SystemTrayClient, |
| 17 public chromeos::system::SystemClockObserver { | 17 public chromeos::system::SystemClockObserver { |
| 18 public: | 18 public: |
| 19 static const char kDisplaySettingsSubPageName[]; | |
| 20 static const char kDisplayOverscanSettingsSubPageName[]; | |
| 21 | |
| 22 SystemTrayClient(); | 19 SystemTrayClient(); |
| 23 ~SystemTrayClient() override; | 20 ~SystemTrayClient() override; |
| 24 | 21 |
| 25 static SystemTrayClient* Get(); | 22 static SystemTrayClient* Get(); |
| 26 | 23 |
| 27 // ash::mojom::SystemTrayClient: | 24 // ash::mojom::SystemTrayClient: |
| 28 void ShowSettings() override; | 25 void ShowSettings() override; |
| 29 void ShowDateSettings() override; | 26 void ShowDateSettings() override; |
| 30 void ShowDisplaySettings() override; | 27 void ShowDisplaySettings() override; |
| 31 void ShowPowerSettings() override; | 28 void ShowPowerSettings() override; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 50 // Handles errors on the |system_tray_| interface connection. | 47 // Handles errors on the |system_tray_| interface connection. |
| 51 void OnClientConnectionError(); | 48 void OnClientConnectionError(); |
| 52 | 49 |
| 53 // System tray mojo service in ash. | 50 // System tray mojo service in ash. |
| 54 ash::mojom::SystemTrayPtr system_tray_; | 51 ash::mojom::SystemTrayPtr system_tray_; |
| 55 | 52 |
| 56 DISALLOW_COPY_AND_ASSIGN(SystemTrayClient); | 53 DISALLOW_COPY_AND_ASSIGN(SystemTrayClient); |
| 57 }; | 54 }; |
| 58 | 55 |
| 59 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_CLIENT_H_ | 56 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_CLIENT_H_ |
| OLD | NEW |