OLD | NEW |
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 "base/memory/scoped_ptr.h" |
8 #include "ui/gfx/animation/tween.h" | 9 #include "ui/gfx/animation/tween.h" |
9 #include "ui/gfx/geometry/size.h" | 10 #include "ui/gfx/geometry/size.h" |
10 | 11 |
11 class ToolbarActionViewController; | 12 class ToolbarActionViewController; |
12 | 13 |
| 14 namespace extensions { |
| 15 class ExtensionMessageBubbleController; |
| 16 } |
| 17 |
13 // The delegate class (which, in production, represents the view) of the | 18 // The delegate class (which, in production, represents the view) of the |
14 // ToolbarActionsBar. | 19 // ToolbarActionsBar. |
15 class ToolbarActionsBarDelegate { | 20 class ToolbarActionsBarDelegate { |
16 public: | 21 public: |
17 virtual ~ToolbarActionsBarDelegate() {} | 22 virtual ~ToolbarActionsBarDelegate() {} |
18 | 23 |
19 // Adds a view for the given |action| at |index|. | 24 // Adds a view for the given |action| at |index|. |
20 virtual void AddViewForAction(ToolbarActionViewController* action, | 25 virtual void AddViewForAction(ToolbarActionViewController* action, |
21 size_t index) = 0; | 26 size_t index) = 0; |
22 | 27 |
(...skipping 29 matching lines...) Expand all Loading... |
52 // Returns the width (including padding) for the overflow chevron. | 57 // Returns the width (including padding) for the overflow chevron. |
53 virtual int GetChevronWidth() const = 0; | 58 virtual int GetChevronWidth() const = 0; |
54 | 59 |
55 // Returns true if there is currently a popup running. | 60 // Returns true if there is currently a popup running. |
56 virtual bool IsPopupRunning() const = 0; | 61 virtual bool IsPopupRunning() const = 0; |
57 | 62 |
58 // Notifies the delegate that the value of whether or not any overflowed | 63 // Notifies the delegate that the value of whether or not any overflowed |
59 // action wants to run has changed. | 64 // action wants to run has changed. |
60 virtual void OnOverflowedActionWantsToRunChanged( | 65 virtual void OnOverflowedActionWantsToRunChanged( |
61 bool overflowed_action_wants_to_run) = 0; | 66 bool overflowed_action_wants_to_run) = 0; |
| 67 |
| 68 // Displays the bubble for the passed ExtensionMessageBubbleController. |
| 69 virtual void ShowExtensionMessageBubble( |
| 70 scoped_ptr<extensions::ExtensionMessageBubbleController> controller) = 0; |
62 }; | 71 }; |
63 | 72 |
64 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_DELEGATE_H_ | 73 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_DELEGATE_H_ |
OLD | NEW |