| 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 17 matching lines...) Expand all Loading... |
| 28 // Returns the login state based on the user type, lock screen status, etc. | 28 // Returns the login state based on the user type, lock screen status, etc. |
| 29 static ash::LoginStatus GetUserLoginStatus(); | 29 static ash::LoginStatus GetUserLoginStatus(); |
| 30 | 30 |
| 31 // Returns the container id for the parent window for new dialogs. The parent | 31 // Returns the container id for the parent window for new dialogs. The parent |
| 32 // varies based on the current login and lock screen state. | 32 // varies based on the current login and lock screen state. |
| 33 static int GetDialogParentContainerId(); | 33 static int GetDialogParentContainerId(); |
| 34 | 34 |
| 35 // ash::mojom::SystemTrayClient: | 35 // ash::mojom::SystemTrayClient: |
| 36 void ShowSettings() override; | 36 void ShowSettings() override; |
| 37 void ShowDateSettings() override; | 37 void ShowDateSettings() override; |
| 38 void ShowSetTimeDialog() override; |
| 38 void ShowDisplaySettings() override; | 39 void ShowDisplaySettings() override; |
| 39 void ShowPowerSettings() override; | 40 void ShowPowerSettings() override; |
| 40 void ShowChromeSlow() override; | 41 void ShowChromeSlow() override; |
| 41 void ShowIMESettings() override; | 42 void ShowIMESettings() override; |
| 42 void ShowHelp() override; | 43 void ShowHelp() override; |
| 43 void ShowAccessibilityHelp() override; | 44 void ShowAccessibilityHelp() override; |
| 44 void ShowAccessibilitySettings() override; | 45 void ShowAccessibilitySettings() override; |
| 45 void ShowPaletteHelp() override; | 46 void ShowPaletteHelp() override; |
| 46 void ShowPaletteSettings() override; | 47 void ShowPaletteSettings() override; |
| 47 void ShowPublicAccountInfo() override; | 48 void ShowPublicAccountInfo() override; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 59 // Handles errors on the |system_tray_| interface connection. | 60 // Handles errors on the |system_tray_| interface connection. |
| 60 void OnClientConnectionError(); | 61 void OnClientConnectionError(); |
| 61 | 62 |
| 62 // System tray mojo service in ash. | 63 // System tray mojo service in ash. |
| 63 ash::mojom::SystemTrayPtr system_tray_; | 64 ash::mojom::SystemTrayPtr system_tray_; |
| 64 | 65 |
| 65 DISALLOW_COPY_AND_ASSIGN(SystemTrayClient); | 66 DISALLOW_COPY_AND_ASSIGN(SystemTrayClient); |
| 66 }; | 67 }; |
| 67 | 68 |
| 68 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_CLIENT_H_ | 69 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_CLIENT_H_ |
| OLD | NEW |