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

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

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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 <memory> 10 #include <memory>
11 11
12 #include "ui/gfx/animation/tween.h" 12 #include "ui/gfx/animation/tween.h"
13 #include "ui/gfx/geometry/size.h" 13 #include "ui/gfx/geometry/size.h"
14 14
15 class ToolbarActionViewController; 15 class ToolbarActionViewController;
16 class ToolbarActionsBarBubbleDelegate; 16 class ToolbarActionsBarBubbleDelegate;
17 17
18 namespace extensions {
19 class ExtensionMessageBubbleController;
20 }
21
22 // The delegate class (which, in production, represents the view) of the 18 // The delegate class (which, in production, represents the view) of the
23 // ToolbarActionsBar. 19 // ToolbarActionsBar.
24 class ToolbarActionsBarDelegate { 20 class ToolbarActionsBarDelegate {
25 public: 21 public:
26 enum GetWidthTime { 22 enum GetWidthTime {
27 GET_WIDTH_CURRENT, // Returns the current width. 23 GET_WIDTH_CURRENT, // Returns the current width.
28 GET_WIDTH_AFTER_ANIMATION, // Returns the width after a running animation. 24 GET_WIDTH_AFTER_ANIMATION, // Returns the width after a running animation.
29 }; 25 };
30 26
31 virtual ~ToolbarActionsBarDelegate() {} 27 virtual ~ToolbarActionsBarDelegate() {}
(...skipping 26 matching lines...) Expand all
58 // Stops the current animation (width remains where it currently is). 54 // Stops the current animation (width remains where it currently is).
59 virtual void StopAnimating() = 0; 55 virtual void StopAnimating() = 0;
60 56
61 // Shows the given |bubble|. Must not be called if another bubble is showing 57 // Shows the given |bubble|. Must not be called if another bubble is showing
62 // or if the toolbar is animating. 58 // or if the toolbar is animating.
63 virtual void ShowToolbarActionBubble( 59 virtual void ShowToolbarActionBubble(
64 std::unique_ptr<ToolbarActionsBarBubbleDelegate> bubble) = 0; 60 std::unique_ptr<ToolbarActionsBarBubbleDelegate> bubble) = 0;
65 }; 61 };
66 62
67 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_DELEGATE_H_ 63 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/toolbar_actions_bar.h ('k') | chrome/browser/ui/toolbar/toolbar_actions_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698