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

Side by Side Diff: chrome/browser/ui/toolbar/toolbar_actions_bar_bubble_delegate.h

Issue 1456213002: Revert of [Extensions] Don't count bubble dismissal from focus loss as acknowledgment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_BUBBLE_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_BUBBLE_DELEGATE_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_BUBBLE_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_BUBBLE_DELEGATE_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 9
10 // A delegate for a generic bubble that hangs off the toolbar actions bar. 10 // A delegate for a generic bubble that hangs off the toolbar actions bar.
11 class ToolbarActionsBarBubbleDelegate { 11 class ToolbarActionsBarBubbleDelegate {
12 public: 12 public:
13 enum CloseAction { 13 enum CloseAction {
14 CLOSE_LEARN_MORE, 14 CLOSE_LEARN_MORE,
15 CLOSE_EXECUTE, 15 CLOSE_EXECUTE,
16 CLOSE_DISMISS_USER_ACTION, 16 CLOSE_DISMISS
17 CLOSE_DISMISS_DEACTIVATION,
18 }; 17 };
19 18
20 virtual ~ToolbarActionsBarBubbleDelegate() {} 19 virtual ~ToolbarActionsBarBubbleDelegate() {}
21 20
22 // Gets the text for the bubble's heading (title). 21 // Gets the text for the bubble's heading (title).
23 virtual base::string16 GetHeadingText() = 0; 22 virtual base::string16 GetHeadingText() = 0;
24 23
25 // Gets the text for the bubble's body. 24 // Gets the text for the bubble's body.
26 virtual base::string16 GetBodyText() = 0; 25 virtual base::string16 GetBodyText() = 0;
27 26
(...skipping 16 matching lines...) Expand all
44 virtual base::string16 GetLearnMoreButtonText() = 0; 43 virtual base::string16 GetLearnMoreButtonText() = 0;
45 44
46 // Called when the bubble is shown. 45 // Called when the bubble is shown.
47 virtual void OnBubbleShown() = 0; 46 virtual void OnBubbleShown() = 0;
48 47
49 // Called when the bubble is closed with the type of action the user took. 48 // Called when the bubble is closed with the type of action the user took.
50 virtual void OnBubbleClosed(CloseAction action) = 0; 49 virtual void OnBubbleClosed(CloseAction action) = 0;
51 }; 50 };
52 51
53 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_BUBBLE_DELEGATE_H_ 52 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_BUBBLE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698