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

Side by Side Diff: chrome/browser/ui/views/frame/immersive_mode_controller.h

Issue 16998006: Add handling for immersive fullscreen to the zoom bubble (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 9
10 class BookmarkBarView; 10 class BookmarkBarView;
(...skipping 21 matching lines...) Expand all
32 // screen. The tab strip is optionally painted with miniature "tab indicator" 32 // screen. The tab strip is optionally painted with miniature "tab indicator"
33 // rectangles. 33 // rectangles.
34 // Currently, immersive mode is only available for Chrome OS. 34 // Currently, immersive mode is only available for Chrome OS.
35 class ImmersiveModeController { 35 class ImmersiveModeController {
36 public: 36 public:
37 enum AnimateReveal { 37 enum AnimateReveal {
38 ANIMATE_REVEAL_YES, 38 ANIMATE_REVEAL_YES,
39 ANIMATE_REVEAL_NO 39 ANIMATE_REVEAL_NO
40 }; 40 };
41 41
42 class Observer {
43 public:
44 virtual ~Observer() {}
45
46 // Called when a reveal of the top-of-window views has been initiated.
47 virtual void OnStartedImmersiveReveal() {}
James Cook 2013/06/17 16:13:41 nit: OnImmersiveRevealStarted()? Might be a bit m
48 };
49
42 class Delegate { 50 class Delegate {
43 public: 51 public:
44 // Returns the bookmark bar, or NULL if the window does not support one. 52 // Returns the bookmark bar, or NULL if the window does not support one.
45 virtual BookmarkBarView* GetBookmarkBar() = 0; 53 virtual BookmarkBarView* GetBookmarkBar() = 0;
46 54
47 // Returns the browser's FullscreenController. 55 // Returns the browser's FullscreenController.
48 virtual FullscreenController* GetFullscreenController() = 0; 56 virtual FullscreenController* GetFullscreenController() = 0;
49 57
50 // Notifies the delegate that fullscreen has been entered or exited. 58 // Notifies the delegate that fullscreen has been entered or exited.
51 virtual void FullscreenStateChanged() = 0; 59 virtual void FullscreenStateChanged() = 0;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 virtual void AnchorWidgetToTopContainer(views::Widget* widget, 121 virtual void AnchorWidgetToTopContainer(views::Widget* widget,
114 int y_offset) = 0; 122 int y_offset) = 0;
115 123
116 // Stops managing |widget|'s y position. 124 // Stops managing |widget|'s y position.
117 // Closes the top-of-window views if no locks or other anchored widgets are 125 // Closes the top-of-window views if no locks or other anchored widgets are
118 // keeping the top-of-window views revealed. 126 // keeping the top-of-window views revealed.
119 virtual void UnanchorWidgetFromTopContainer(views::Widget* widget) = 0; 127 virtual void UnanchorWidgetFromTopContainer(views::Widget* widget) = 0;
120 128
121 // Called by the TopContainerView to indicate that its bounds have changed. 129 // Called by the TopContainerView to indicate that its bounds have changed.
122 virtual void OnTopContainerBoundsChanged() = 0; 130 virtual void OnTopContainerBoundsChanged() = 0;
131
132 virtual void AddObserver(Observer* observer) = 0;
133 virtual void RemoveObserver(Observer* observer) = 0;
123 }; 134 };
124 135
125 namespace chrome { 136 namespace chrome {
126 137
127 // Implemented in immersive_mode_controller_factory.cc. 138 // Implemented in immersive_mode_controller_factory.cc.
128 ImmersiveModeController* CreateImmersiveModeController(); 139 ImmersiveModeController* CreateImmersiveModeController();
129 140
130 } // namespace chrome 141 } // namespace chrome
131 142
132 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_H_ 143 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698