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

Unified Diff: chrome/browser/ui/toolbar/toolbar_actions_bar_bubble_delegate.h

Issue 1086973004: [Extensions Mac] Implement developer mode warning on mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Avi's Created 5 years, 8 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/toolbar/toolbar_actions_bar_bubble_delegate.h
diff --git a/chrome/browser/ui/toolbar/toolbar_actions_bar_bubble_delegate.h b/chrome/browser/ui/toolbar/toolbar_actions_bar_bubble_delegate.h
index 711dc4752fab76c4661fa331eab593ee22393569..92754ed0457ce93a34e2b456de964646773e4945 100644
--- a/chrome/browser/ui/toolbar/toolbar_actions_bar_bubble_delegate.h
+++ b/chrome/browser/ui/toolbar/toolbar_actions_bar_bubble_delegate.h
@@ -5,17 +5,44 @@
#ifndef CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_BUBBLE_DELEGATE_H_
#define CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_BUBBLE_DELEGATE_H_
-// A delegate for the toolbar actions bar bubble, which briefly tells users
-// about the toolbar redesign.
+#include "base/strings/string16.h"
+
+// A delegate for a generic bubble that hangs off the toolbar actions bar.
class ToolbarActionsBarBubbleDelegate {
public:
enum CloseAction {
- ACKNOWLEDGED,
- DISMISSED,
+ CLOSE_LEARN_MORE,
+ CLOSE_EXECUTE,
+ CLOSE_DISMISS
};
- virtual void OnToolbarActionsBarBubbleShown() = 0;
- virtual void OnToolbarActionsBarBubbleClosed(CloseAction action) = 0;
+ virtual ~ToolbarActionsBarBubbleDelegate() {}
+
+ // Gets the text for the bubble's heading (title).
+ virtual base::string16 GetHeadingText() = 0;
+
+ // Gets the text for the bubble's body.
+ virtual base::string16 GetBodyText() = 0;
+
+ // Gets the text for the main button on the bubble; this button will
+ // correspond with ACTION_EXECUTE.
+ virtual base::string16 GetActionButtonText() = 0;
+
+ // Gets the text for a second button on the bubble; this button will
+ // correspond with ACTION_DISMISS. If this returns an empty string, no
+ // button will be added.
+ virtual base::string16 GetDismissButtonText() = 0;
+
+ // Gets the text for a "learn more" link-style button on the bubble; this
+ // button will correspond with ACTION_LEARN_MORE. If this returns an empty
+ // string, no button will be added.
+ virtual base::string16 GetLearnMoreButtonText() = 0;
+
+ // Called when the bubble is shown.
+ virtual void OnBubbleShown() = 0;
+
+ // Called when the bubble is closed with the type of action the user took.
+ virtual void OnBubbleClosed(CloseAction action) = 0;
};
#endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_BUBBLE_DELEGATE_H_
« no previous file with comments | « chrome/browser/ui/toolbar/toolbar_actions_bar.cc ('k') | chrome/browser/ui/toolbar/toolbar_actions_bar_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698