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

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

Issue 1809813002: [Extensions] Show a "refresh" bubble when needed with click-to-script (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comment Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_DELEGATE_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_DELEGATE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "ui/gfx/animation/tween.h" 11 #include "ui/gfx/animation/tween.h"
12 #include "ui/gfx/geometry/size.h" 12 #include "ui/gfx/geometry/size.h"
13 13
14 class ToolbarActionViewController; 14 class ToolbarActionViewController;
15 class ToolbarActionsBarBubbleDelegate;
15 16
16 namespace extensions { 17 namespace extensions {
17 class ExtensionMessageBubbleController; 18 class ExtensionMessageBubbleController;
18 } 19 }
19 20
20 // The delegate class (which, in production, represents the view) of the 21 // The delegate class (which, in production, represents the view) of the
21 // ToolbarActionsBar. 22 // ToolbarActionsBar.
22 class ToolbarActionsBarDelegate { 23 class ToolbarActionsBarDelegate {
23 public: 24 public:
24 enum GetWidthTime { 25 enum GetWidthTime {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 64
64 // Returns the width (including padding) for the overflow chevron. 65 // Returns the width (including padding) for the overflow chevron.
65 virtual int GetChevronWidth() const = 0; 66 virtual int GetChevronWidth() const = 0;
66 67
67 // Displays the bubble for the passed ExtensionMessageBubbleController, 68 // Displays the bubble for the passed ExtensionMessageBubbleController,
68 // anchored to |anchor_action|. If |anchor_action| is null, it should be 69 // anchored to |anchor_action|. If |anchor_action| is null, it should be
69 // anchored to the hotdog menu. 70 // anchored to the hotdog menu.
70 virtual void ShowExtensionMessageBubble( 71 virtual void ShowExtensionMessageBubble(
71 scoped_ptr<extensions::ExtensionMessageBubbleController> controller, 72 scoped_ptr<extensions::ExtensionMessageBubbleController> controller,
72 ToolbarActionViewController* anchor_action) = 0; 73 ToolbarActionViewController* anchor_action) = 0;
74
75 // Shows the given |bubble| if no other bubbles are showing.
76 virtual void ShowToolbarActionBubble(
77 scoped_ptr<ToolbarActionsBarBubbleDelegate> bubble) = 0;
73 }; 78 };
74 79
75 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_DELEGATE_H_ 80 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698