OLD | NEW |
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 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 enum class Type { | 43 enum class Type { |
44 ASH, | 44 ASH, |
45 STUB, | 45 STUB, |
46 }; | 46 }; |
47 | 47 |
48 class Observer { | 48 class Observer { |
49 public: | 49 public: |
50 // Called when a reveal of the top-of-window views has been initiated. | 50 // Called when a reveal of the top-of-window views has been initiated. |
51 virtual void OnImmersiveRevealStarted() {} | 51 virtual void OnImmersiveRevealStarted() {} |
52 | 52 |
| 53 // Called when a reveal of the top-of-window views has finished. |
| 54 virtual void OnImmersiveRevealEnded() {} |
| 55 |
53 // Called when the immersive mode controller has been destroyed. | 56 // Called when the immersive mode controller has been destroyed. |
54 virtual void OnImmersiveModeControllerDestroyed() {} | 57 virtual void OnImmersiveModeControllerDestroyed() {} |
55 | 58 |
56 protected: | 59 protected: |
57 virtual ~Observer() {} | 60 virtual ~Observer() {} |
58 }; | 61 }; |
59 | 62 |
60 explicit ImmersiveModeController(Type type); | 63 explicit ImmersiveModeController(Type type); |
61 virtual ~ImmersiveModeController(); | 64 virtual ~ImmersiveModeController(); |
62 | 65 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 }; | 124 }; |
122 | 125 |
123 namespace chrome { | 126 namespace chrome { |
124 | 127 |
125 // Implemented in immersive_mode_controller_factory.cc. | 128 // Implemented in immersive_mode_controller_factory.cc. |
126 ImmersiveModeController* CreateImmersiveModeController(); | 129 ImmersiveModeController* CreateImmersiveModeController(); |
127 | 130 |
128 } // namespace chrome | 131 } // namespace chrome |
129 | 132 |
130 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_H_ | 133 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_H_ |
OLD | NEW |