From 8dc56d0f6ed6e59c93b20ef0d4cec99e411ed050 Mon Sep 17 00:00:00 2001 From: "finnur@chromium.org" Date: Sat, 7 Jun 2014 00:44:23 +0000 Subject: Add an extension override bubble and warning box for proxy extensions. (2nd attempt, this time with two one-liner test fixes) Also use the browser action highlighting for extensions that have a browser action icon. NOTE: This CL was already green-lighted here: https://codereview.chromium.org/288923004/ BUG=381291 TBR=sky, devlin, dbeam Review URL: https://codereview.chromium.org/320633002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275577 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/extensions/extension_message_bubble_controller.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'chrome/browser/extensions/extension_message_bubble_controller.h') diff --git a/chrome/browser/extensions/extension_message_bubble_controller.h b/chrome/browser/extensions/extension_message_bubble_controller.h index e2a64fd..e3f522d 100644 --- a/chrome/browser/extensions/extension_message_bubble_controller.h +++ b/chrome/browser/extensions/extension_message_bubble_controller.h @@ -42,7 +42,13 @@ class ExtensionMessageBubbleController { // Text for various UI labels shown in the bubble. virtual base::string16 GetTitle() const = 0; - virtual base::string16 GetMessageBody() const = 0; + // Fetches the message to show in the body. |anchored_to_browser_action| + // will be true if the bubble is anchored against a specific extension + // icon, allowing the bubble to show a different message than when it is + // anchored against something else (e.g. show "This extension has..." + // instead of "An extension has..."). + virtual base::string16 GetMessageBody( + bool anchored_to_browser_action) const = 0; virtual base::string16 GetOverflowText( const base::string16& overflow_count) const = 0; virtual base::string16 GetLearnMoreLabel() const = 0; -- cgit v1.1