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

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

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 <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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/toolbar_actions_bar.cc ('k') | chrome/browser/ui/toolbar/toolbar_actions_bar_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698