Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4080)

Unified Diff: chrome/browser/ui/ash/system_tray_client.h

Issue 2882933002: Add update available icon in system tray (Closed)
Patch Set: Add file to BUILD.gn Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/ash/system_tray_client.h
diff --git a/chrome/browser/ui/ash/system_tray_client.h b/chrome/browser/ui/ash/system_tray_client.h
index 355d046f6c3651240b481be4a4580ea01de37984..12fa7915e65fff5b834a2a9087ecec2354cfd283 100644
--- a/chrome/browser/ui/ash/system_tray_client.h
+++ b/chrome/browser/ui/ash/system_tray_client.h
@@ -8,6 +8,7 @@
#include "ash/public/interfaces/system_tray.mojom.h"
#include "base/macros.h"
#include "chrome/browser/chromeos/system/system_clock_observer.h"
+#include "chrome/browser/upgrade_observer.h"
#include "components/policy/core/common/cloud/cloud_policy_store.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
@@ -28,7 +29,8 @@ class WidgetDelegate;
class SystemTrayClient : public ash::mojom::SystemTrayClient,
public chromeos::system::SystemClockObserver,
public policy::CloudPolicyStore::Observer,
- public content::NotificationObserver {
+ public content::NotificationObserver,
+ public UpgradeObserver {
public:
SystemTrayClient();
~SystemTrayClient() override;
@@ -69,6 +71,7 @@ class SystemTrayClient : public ash::mojom::SystemTrayClient,
void ShowPowerSettings() override;
void ShowChromeSlow() override;
void ShowIMESettings() override;
+ void ShowAboutChromeOS() override;
void ShowHelp() override;
void ShowAccessibilityHelp() override;
void ShowAccessibilitySettings() override;
@@ -92,9 +95,15 @@ class SystemTrayClient : public ash::mojom::SystemTrayClient,
// Requests that ash show the update available icon.
void HandleUpdateAvailable();
+ // Requests that ash show the update over cellular available icon.
+ void HandleUpdateOverCellularAvailable();
+
// chromeos::system::SystemClockObserver:
void OnSystemClockChanged(chromeos::system::SystemClock* clock) override;
+ // UpgradeObserver:
+ void OnUpdateOverCellularAvailable() override;
+
// policy::CloudPolicyStore::Observer
void OnStoreLoaded(policy::CloudPolicyStore* store) override;
void OnStoreError(policy::CloudPolicyStore* store) override;
« no previous file with comments | « chrome/browser/resources/settings/about_page/about_page.js ('k') | chrome/browser/ui/ash/system_tray_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698