| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 // Returns true if the view is animating. | 60 // Returns true if the view is animating. |
| 61 virtual bool IsAnimating() const = 0; | 61 virtual bool IsAnimating() const = 0; |
| 62 | 62 |
| 63 // Stops the current animation (width remains where it currently is). | 63 // Stops the current animation (width remains where it currently is). |
| 64 virtual void StopAnimating() = 0; | 64 virtual void StopAnimating() = 0; |
| 65 | 65 |
| 66 // Returns the width (including padding) for the overflow chevron. | 66 // Returns the width (including padding) for the overflow chevron. |
| 67 virtual int GetChevronWidth() const = 0; | 67 virtual int GetChevronWidth() const = 0; |
| 68 | 68 |
| 69 // Displays the bubble for the passed ExtensionMessageBubbleController, | 69 // Shows the given |bubble|. Must not be called if another bubble is showing |
| 70 // anchored to |anchor_action|. If |anchor_action| is null, it should be | 70 // or if the toolbar is animating. |
| 71 // anchored to the hotdog menu. | |
| 72 virtual void ShowExtensionMessageBubble( | |
| 73 std::unique_ptr<extensions::ExtensionMessageBubbleController> controller, | |
| 74 ToolbarActionViewController* anchor_action) = 0; | |
| 75 | |
| 76 // Shows the given |bubble| if no other bubbles are showing. | |
| 77 virtual void ShowToolbarActionBubble( | 71 virtual void ShowToolbarActionBubble( |
| 78 std::unique_ptr<ToolbarActionsBarBubbleDelegate> bubble) = 0; | 72 std::unique_ptr<ToolbarActionsBarBubbleDelegate> bubble) = 0; |
| 79 }; | 73 }; |
| 80 | 74 |
| 81 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_DELEGATE_H_ | 75 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_DELEGATE_H_ |
| OLD | NEW |