| 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_
|
|
|