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

Unified Diff: ash/common/system/tray/system_tray_delegate.h

Issue 2568413002: Revert of ash: Use system tray mojo interface to show system update tray icon (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « ash/common/system/tray/system_tray_controller.cc ('k') | ash/common/system/tray/system_tray_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/system_tray_delegate.h
diff --git a/ash/common/system/tray/system_tray_delegate.h b/ash/common/system/tray/system_tray_delegate.h
index 2c19d6d82d186c80b3591e83f0e4abf0458affbe..6c8a20fcb48e60c24d26a5957bea561c4e1eb112 100644
--- a/ash/common/system/tray/system_tray_delegate.h
+++ b/ash/common/system/tray/system_tray_delegate.h
@@ -50,6 +50,24 @@
};
using BluetoothDeviceList = std::vector<BluetoothDeviceInfo>;
+
+struct ASH_EXPORT UpdateInfo {
+ enum UpdateSeverity {
+ UPDATE_NONE,
+ UPDATE_LOW,
+ UPDATE_ELEVATED,
+ UPDATE_HIGH,
+ UPDATE_SEVERE,
+ UPDATE_CRITICAL,
+ };
+
+ UpdateInfo();
+ ~UpdateInfo();
+
+ UpdateSeverity severity;
+ bool update_required;
+ bool factory_reset_required;
+};
class NetworkingConfigDelegate;
@@ -105,6 +123,9 @@
// crbug.com/443119
virtual bool IsUserChild() const;
+ // Fills |info| structure (which must not be null) with current update info.
+ virtual void GetSystemUpdateInfo(UpdateInfo* info) const;
+
// Returns true if settings menu item should appear.
virtual bool ShouldShowSettings() const;
« no previous file with comments | « ash/common/system/tray/system_tray_controller.cc ('k') | ash/common/system/tray/system_tray_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698