OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |