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

Side by Side Diff: ash/wm/immersive_fullscreen_controller.h

Issue 59043013: Add flag to enable immersive fullscreen for v2 apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « ash/wm/custom_frame_view_ash.cc ('k') | ash/wm/immersive_fullscreen_controller_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 ASH_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_H_ 5 #ifndef ASH_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_H_
6 #define ASH_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_H_ 6 #define ASH_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 virtual void OnImmersiveFullscreenExited() = 0; 59 virtual void OnImmersiveFullscreenExited() = 0;
60 60
61 // Called to update the fraction of the top-of-window views height which is 61 // Called to update the fraction of the top-of-window views height which is
62 // visible. 62 // visible.
63 virtual void SetVisibleFraction(double visible_fraction) = 0; 63 virtual void SetVisibleFraction(double visible_fraction) = 0;
64 64
65 // Returns a list of rects whose union makes up the top-of-window views. 65 // Returns a list of rects whose union makes up the top-of-window views.
66 // The returned list is used for hittesting when the top-of-window views 66 // The returned list is used for hittesting when the top-of-window views
67 // are revealed. GetVisibleBoundsInScreen() must return a valid value when 67 // are revealed. GetVisibleBoundsInScreen() must return a valid value when
68 // not in immersive fullscreen for the sake of SetupForTest(). 68 // not in immersive fullscreen for the sake of SetupForTest().
69 virtual std::vector<gfx::Rect> GetVisibleBoundsInScreen() = 0; 69 virtual std::vector<gfx::Rect> GetVisibleBoundsInScreen() const = 0;
70 70
71 protected: 71 protected:
72 virtual ~Delegate() {} 72 virtual ~Delegate() {}
73 }; 73 };
74 74
75 ImmersiveFullscreenController(); 75 ImmersiveFullscreenController();
76 virtual ~ImmersiveFullscreenController(); 76 virtual ~ImmersiveFullscreenController();
77 77
78 // Initializes the controller. Must be called prior to enabling immersive 78 // Initializes the controller. Must be called prior to enabling immersive
79 // fullscreen via SetEnabled(). |top_container| is used to keep the 79 // fullscreen via SetEnabled(). |top_container| is used to keep the
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 scoped_ptr<BubbleManager> bubble_manager_; 286 scoped_ptr<BubbleManager> bubble_manager_;
287 287
288 base::WeakPtrFactory<ImmersiveFullscreenController> weak_ptr_factory_; 288 base::WeakPtrFactory<ImmersiveFullscreenController> weak_ptr_factory_;
289 289
290 DISALLOW_COPY_AND_ASSIGN(ImmersiveFullscreenController); 290 DISALLOW_COPY_AND_ASSIGN(ImmersiveFullscreenController);
291 }; 291 };
292 292
293 } // namespace ash 293 } // namespace ash
294 294
295 #endif // ASH_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_H_ 295 #endif // ASH_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/wm/custom_frame_view_ash.cc ('k') | ash/wm/immersive_fullscreen_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698