| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_IMMERSIVE_MODE_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_IMMERSIVE_MODE_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_IMMERSIVE_MODE_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_IMMERSIVE_MODE_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/timer.h" | 10 #include "base/timer.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 // Returns the view that contains the top UI components (tabstrip, toolbar | 42 // Returns the view that contains the top UI components (tabstrip, toolbar |
| 43 // etc.) during an immersive mode reveal. Can return NULL when not in a | 43 // etc.) during an immersive mode reveal. Can return NULL when not in a |
| 44 // revealing state. | 44 // revealing state. |
| 45 views::View* reveal_view(); | 45 views::View* reveal_view(); |
| 46 | 46 |
| 47 // If the controller is temporarily revealing the top views ensures that | 47 // If the controller is temporarily revealing the top views ensures that |
| 48 // the reveal view's layer is on top and hence visible over web contents. | 48 // the reveal view's layer is on top and hence visible over web contents. |
| 49 void MaybeStackViewAtTop(); | 49 void MaybeStackViewAtTop(); |
| 50 | 50 |
| 51 // ui::EventHandler overrides: | 51 // ui::EventHandler overrides: |
| 52 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | 52 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; |
| 53 | 53 |
| 54 // ui::ImplicitAnimationObserver overrides: | 54 // ui::ImplicitAnimationObserver overrides: |
| 55 virtual void OnImplicitAnimationsCompleted() OVERRIDE; | 55 virtual void OnImplicitAnimationsCompleted() OVERRIDE; |
| 56 | 56 |
| 57 // Testing interface. | 57 // Testing interface. |
| 58 void StartRevealForTest(); | 58 void StartRevealForTest(); |
| 59 void OnRevealViewLostMouseForTest(); | 59 void OnRevealViewLostMouseForTest(); |
| 60 void EndRevealForTest(); | 60 void EndRevealForTest(); |
| 61 | 61 |
| 62 private: | 62 private: |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 #if defined(USE_AURA) | 115 #if defined(USE_AURA) |
| 116 // Observer to disable immersive mode when window leaves the maximized state. | 116 // Observer to disable immersive mode when window leaves the maximized state. |
| 117 class WindowObserver; | 117 class WindowObserver; |
| 118 scoped_ptr<WindowObserver> window_observer_; | 118 scoped_ptr<WindowObserver> window_observer_; |
| 119 #endif | 119 #endif |
| 120 | 120 |
| 121 DISALLOW_COPY_AND_ASSIGN(ImmersiveModeController); | 121 DISALLOW_COPY_AND_ASSIGN(ImmersiveModeController); |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 #endif // CHROME_BROWSER_UI_VIEWS_IMMERSIVE_MODE_CONTROLLER_H_ | 124 #endif // CHROME_BROWSER_UI_VIEWS_IMMERSIVE_MODE_CONTROLLER_H_ |
| OLD | NEW |