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

Unified Diff: chrome/browser/extensions/extension_global_error_badge.h

Issue 8176001: Warn user in case extension delays network traffic too much. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merged with ToT Created 9 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/extensions/extension_global_error_badge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_global_error_badge.h
diff --git a/chrome/browser/extensions/extension_global_error_badge.h b/chrome/browser/extensions/extension_global_error_badge.h
new file mode 100644
index 0000000000000000000000000000000000000000..f49ce4bb47eed14249d01809bd262bfc5ded814c
--- /dev/null
+++ b/chrome/browser/extensions/extension_global_error_badge.h
@@ -0,0 +1,45 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_GLOBAL_ERROR_BADGE_H_
+#define CHROME_BROWSER_EXTENSIONS_EXTENSION_GLOBAL_ERROR_BADGE_H_
+#pragma once
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "chrome/browser/ui/global_error.h"
+
+// Non-modal GlobalError implementation that warns the user if extensions
+// created warnings or errors. If the user clicks on the wrench menu, the user
+// is redirected to chrome://extensions to inspect the errors.
+//
+// This class is a candidate to be merged with ExtensionGlobalError once
+// it is finished.
+class ExtensionGlobalErrorBadge : public GlobalError {
+ public:
+ ExtensionGlobalErrorBadge();
+ virtual ~ExtensionGlobalErrorBadge();
+
+ // Implementation for GlobalError:
+ virtual bool HasBadge() OVERRIDE;
+
+ virtual bool HasMenuItem() OVERRIDE;
+ virtual int MenuItemCommandID() OVERRIDE;
+ virtual string16 MenuItemLabel() OVERRIDE;
+ virtual void ExecuteMenuItem(Browser* browser) OVERRIDE;
+
+ virtual bool HasBubbleView() OVERRIDE;
+ virtual string16 GetBubbleViewTitle() OVERRIDE;
+ virtual string16 GetBubbleViewMessage() OVERRIDE;
+ virtual string16 GetBubbleViewAcceptButtonLabel() OVERRIDE;
+ virtual string16 GetBubbleViewCancelButtonLabel() OVERRIDE;
+ virtual void BubbleViewDidClose() OVERRIDE;
+ virtual void BubbleViewAcceptButtonPressed() OVERRIDE;
+ virtual void BubbleViewCancelButtonPressed() OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ExtensionGlobalErrorBadge);
+};
+
+#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_GLOBAL_ERROR_BADGE_H_
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/extensions/extension_global_error_badge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698