| 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 "base/memory/scoped_ptr.h" | 10 #include <memory> |
| 11 |
| 11 #include "ui/gfx/animation/tween.h" | 12 #include "ui/gfx/animation/tween.h" |
| 12 #include "ui/gfx/geometry/size.h" | 13 #include "ui/gfx/geometry/size.h" |
| 13 | 14 |
| 14 class ToolbarActionViewController; | 15 class ToolbarActionViewController; |
| 15 class ToolbarActionsBarBubbleDelegate; | 16 class ToolbarActionsBarBubbleDelegate; |
| 16 | 17 |
| 17 namespace extensions { | 18 namespace extensions { |
| 18 class ExtensionMessageBubbleController; | 19 class ExtensionMessageBubbleController; |
| 19 } | 20 } |
| 20 | 21 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // Stops the current animation (width remains where it currently is). | 63 // Stops the current animation (width remains where it currently is). |
| 63 virtual void StopAnimating() = 0; | 64 virtual void StopAnimating() = 0; |
| 64 | 65 |
| 65 // Returns the width (including padding) for the overflow chevron. | 66 // Returns the width (including padding) for the overflow chevron. |
| 66 virtual int GetChevronWidth() const = 0; | 67 virtual int GetChevronWidth() const = 0; |
| 67 | 68 |
| 68 // Displays the bubble for the passed ExtensionMessageBubbleController, | 69 // Displays the bubble for the passed ExtensionMessageBubbleController, |
| 69 // anchored to |anchor_action|. If |anchor_action| is null, it should be | 70 // anchored to |anchor_action|. If |anchor_action| is null, it should be |
| 70 // anchored to the hotdog menu. | 71 // anchored to the hotdog menu. |
| 71 virtual void ShowExtensionMessageBubble( | 72 virtual void ShowExtensionMessageBubble( |
| 72 scoped_ptr<extensions::ExtensionMessageBubbleController> controller, | 73 std::unique_ptr<extensions::ExtensionMessageBubbleController> controller, |
| 73 ToolbarActionViewController* anchor_action) = 0; | 74 ToolbarActionViewController* anchor_action) = 0; |
| 74 | 75 |
| 75 // Shows the given |bubble| if no other bubbles are showing. | 76 // Shows the given |bubble| if no other bubbles are showing. |
| 76 virtual void ShowToolbarActionBubble( | 77 virtual void ShowToolbarActionBubble( |
| 77 scoped_ptr<ToolbarActionsBarBubbleDelegate> bubble) = 0; | 78 std::unique_ptr<ToolbarActionsBarBubbleDelegate> bubble) = 0; |
| 78 }; | 79 }; |
| 79 | 80 |
| 80 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_DELEGATE_H_ | 81 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_DELEGATE_H_ |
| OLD | NEW |