| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 // Creates a modal dialog in the parent window for new dialogs on the primary | 43 // Creates a modal dialog in the parent window for new dialogs on the primary |
| 44 // display. See GetDialogParentContainerId() and views::CreateDialogWidget(). | 44 // display. See GetDialogParentContainerId() and views::CreateDialogWidget(). |
| 45 // The returned widget is owned by its native widget. | 45 // The returned widget is owned by its native widget. |
| 46 static views::Widget* CreateUnownedDialogWidget( | 46 static views::Widget* CreateUnownedDialogWidget( |
| 47 views::WidgetDelegate* widget_delegate); | 47 views::WidgetDelegate* widget_delegate); |
| 48 | 48 |
| 49 // Shows an update icon for an Adobe Flash update and forces a device reboot | 49 // Shows an update icon for an Adobe Flash update and forces a device reboot |
| 50 // when the update is applied. | 50 // when the update is applied. |
| 51 void SetFlashUpdateAvailable(); | 51 void SetFlashUpdateAvailable(); |
| 52 | 52 |
| 53 // Wrappers around ash::mojom::SystemTray interface: |
| 54 void SetPrimaryTrayEnabled(bool enabled); |
| 55 void SetPrimaryTrayVisible(bool visible); |
| 56 |
| 53 // ash::mojom::SystemTrayClient: | 57 // ash::mojom::SystemTrayClient: |
| 54 void ShowSettings() override; | 58 void ShowSettings() override; |
| 55 void ShowDateSettings() override; | 59 void ShowDateSettings() override; |
| 56 void ShowSetTimeDialog() override; | 60 void ShowSetTimeDialog() override; |
| 57 void ShowDisplaySettings() override; | 61 void ShowDisplaySettings() override; |
| 58 void ShowPowerSettings() override; | 62 void ShowPowerSettings() override; |
| 59 void ShowChromeSlow() override; | 63 void ShowChromeSlow() override; |
| 60 void ShowIMESettings() override; | 64 void ShowIMESettings() override; |
| 61 void ShowHelp() override; | 65 void ShowHelp() override; |
| 62 void ShowAccessibilityHelp() override; | 66 void ShowAccessibilityHelp() override; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 92 | 96 |
| 93 // Whether an Adobe Flash component update is available. | 97 // Whether an Adobe Flash component update is available. |
| 94 bool flash_update_available_ = false; | 98 bool flash_update_available_ = false; |
| 95 | 99 |
| 96 content::NotificationRegistrar registrar_; | 100 content::NotificationRegistrar registrar_; |
| 97 | 101 |
| 98 DISALLOW_COPY_AND_ASSIGN(SystemTrayClient); | 102 DISALLOW_COPY_AND_ASSIGN(SystemTrayClient); |
| 99 }; | 103 }; |
| 100 | 104 |
| 101 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_CLIENT_H_ | 105 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_CLIENT_H_ |
| OLD | NEW |