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

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..48eac7f52b566589733f31963b6937332544a69d 100644
--- a/chrome/browser/ui/global_error/global_error.h
+++ b/chrome/browser/ui/global_error/global_error.h
@@ -15,6 +15,13 @@ 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,
+ };
+
GlobalError();
virtual ~GlobalError();
@@ -22,6 +29,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;
« no previous file with comments | « chrome/browser/extensions/pending_extension_manager.cc ('k') | chrome/browser/ui/global_error/global_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698