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

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

Issue 95133002: Add an extension bubble explaining which extensions are in dev mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test Created 7 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
Index: chrome/browser/extensions/extension_message_bubble.h
diff --git a/chrome/browser/extensions/suspicious_extension_bubble.h b/chrome/browser/extensions/extension_message_bubble.h
similarity index 44%
rename from chrome/browser/extensions/suspicious_extension_bubble.h
rename to chrome/browser/extensions/extension_message_bubble.h
index b9ce44fa93e8b6dc81bf606bf767fa4b504d61ca..bdce711af2dad9fc3fd163c0e85495ffe30504f2 100644
--- a/chrome/browser/extensions/suspicious_extension_bubble.h
+++ b/chrome/browser/extensions/extension_message_bubble.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_EXTENSIONS_SUSPICIOUS_EXTENSION_BUBBLE_H_
-#define CHROME_BROWSER_EXTENSIONS_SUSPICIOUS_EXTENSION_BUBBLE_H_
+#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_H_
+#define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_H_
#include "base/bind.h"
@@ -13,16 +13,22 @@ namespace extensions {
// The interface between the SuspiciousExtensionBubble bubble and its
// controller.
-class SuspiciousExtensionBubble {
+class ExtensionMessageBubble {
public:
- // Setup the callback for when the button is clicked in the bubble.
- virtual void OnButtonClicked(const base::Closure& callback) = 0;
+ // Setup the callback for when the action button is clicked in the
+ // bubble.
+ virtual void OnActionButtonClicked(const base::Closure& callback) = 0;
+
+ // Setup the callback for when the dismiss button is clicked.
+ virtual void OnDismissButtonClicked(const base::Closure& callback) = 0;
+
// Setup the callback for when the link is clicked in the bubble.
- virtual void OnLinkClicked(const base::Closure&) = 0;
+ virtual void OnLinkClicked(const base::Closure& callback) = 0;
+
// Instruct the bubble to appear.
virtual void Show() = 0;
};
} // namespace extensions
-#endif // CHROME_BROWSER_EXTENSIONS_SUSPICIOUS_EXTENSION_BUBBLE_H_
+#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_H_

Powered by Google App Engine
This is Rietveld 408576698