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

Unified Diff: chrome/browser/ui/global_error/global_error.h

Issue 11150002: New post-sideload UI: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 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/global_error/global_error.h
diff --git a/chrome/browser/ui/global_error/global_error.h b/chrome/browser/ui/global_error/global_error.h
index f80e55ddce27256bd39832cd27d88dec85990fc3..f38372510e53f92425f2ab697ee1bbda99196e09 100644
--- a/chrome/browser/ui/global_error/global_error.h
+++ b/chrome/browser/ui/global_error/global_error.h
@@ -15,6 +15,14 @@ class GlobalErrorBubbleViewBase;
// This object describes a single global error.
class GlobalError : public base::SupportsWeakPtr<GlobalError> {
public:
+ enum Severity {
+ SEVERITY_LOW,
+ SEVERITY_MEDIUM,
+ SEVERITY_HIGH,
+ SEVERITY_CRITICAL,
+ NUM_SEVERITY,
+ };
+
GlobalError();
virtual ~GlobalError();
@@ -22,6 +30,10 @@ class GlobalError : public base::SupportsWeakPtr<GlobalError> {
virtual bool HasBadge() = 0;
// Returns the resource ID of the badge icon.
virtual int GetBadgeResourceID();
+ // Returns the error's severity level. If there are multiple errors,
+ // the error with the highest severity will display in the menu. If not
+ // overridden, this is based on the badge resource ID.
+ virtual Severity GetSeverity();
// Returns true if a menu item should be added to the wrench menu.
virtual bool HasMenuItem() = 0;

Powered by Google App Engine
This is Rietveld 408576698