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

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

Issue 1455313002: [Reland][Extensions] Don't count bubble focus loss as acknowledgment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master 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 16 CLOSE_DISMISS_USER_ACTION,
17 CLOSE_DISMISS_DEACTIVATION,
17 }; 18 };
18 19
19 virtual ~ToolbarActionsBarBubbleDelegate() {} 20 virtual ~ToolbarActionsBarBubbleDelegate() {}
20 21
21 // Gets the text for the bubble's heading (title). 22 // Gets the text for the bubble's heading (title).
22 virtual base::string16 GetHeadingText() = 0; 23 virtual base::string16 GetHeadingText() = 0;
23 24
24 // Gets the text for the bubble's body. 25 // Gets the text for the bubble's body.
25 virtual base::string16 GetBodyText() = 0; 26 virtual base::string16 GetBodyText() = 0;
26 27
(...skipping 16 matching lines...) Expand all
43 virtual base::string16 GetLearnMoreButtonText() = 0; 44 virtual base::string16 GetLearnMoreButtonText() = 0;
44 45
45 // Called when the bubble is shown. 46 // Called when the bubble is shown.
46 virtual void OnBubbleShown() = 0; 47 virtual void OnBubbleShown() = 0;
47 48
48 // Called when the bubble is closed with the type of action the user took. 49 // Called when the bubble is closed with the type of action the user took.
49 virtual void OnBubbleClosed(CloseAction action) = 0; 50 virtual void OnBubbleClosed(CloseAction action) = 0;
50 }; 51 };
51 52
52 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_BUBBLE_DELEGATE_H_ 53 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_BUBBLE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698