| 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 | 252 |
| 253 // True when in immersive fullscreen. | 253 // True when in immersive fullscreen. |
| 254 bool enabled_; | 254 bool enabled_; |
| 255 | 255 |
| 256 // State machine for the revealed/closed animations. | 256 // State machine for the revealed/closed animations. |
| 257 RevealState reveal_state_; | 257 RevealState reveal_state_; |
| 258 | 258 |
| 259 int revealed_lock_count_; | 259 int revealed_lock_count_; |
| 260 | 260 |
| 261 // Timer to track cursor being held at the top edge of the screen. | 261 // Timer to track cursor being held at the top edge of the screen. |
| 262 base::OneShotTimer<ImmersiveFullscreenController> top_edge_hover_timer_; | 262 base::OneShotTimer top_edge_hover_timer_; |
| 263 | 263 |
| 264 // The cursor x position in screen coordinates when the cursor first hit the | 264 // The cursor x position in screen coordinates when the cursor first hit the |
| 265 // top edge of the screen. | 265 // top edge of the screen. |
| 266 int mouse_x_when_hit_top_in_screen_; | 266 int mouse_x_when_hit_top_in_screen_; |
| 267 | 267 |
| 268 // Tracks if the controller has seen a ET_GESTURE_SCROLL_BEGIN, without the | 268 // Tracks if the controller has seen a ET_GESTURE_SCROLL_BEGIN, without the |
| 269 // following events. | 269 // following events. |
| 270 bool gesture_begun_; | 270 bool gesture_begun_; |
| 271 | 271 |
| 272 // Lock which keeps the top-of-window views revealed based on the current | 272 // Lock which keeps the top-of-window views revealed based on the current |
| (...skipping 18 matching lines...) Expand all Loading... |
| 291 scoped_ptr<BubbleManager> bubble_manager_; | 291 scoped_ptr<BubbleManager> bubble_manager_; |
| 292 | 292 |
| 293 base::WeakPtrFactory<ImmersiveFullscreenController> weak_ptr_factory_; | 293 base::WeakPtrFactory<ImmersiveFullscreenController> weak_ptr_factory_; |
| 294 | 294 |
| 295 DISALLOW_COPY_AND_ASSIGN(ImmersiveFullscreenController); | 295 DISALLOW_COPY_AND_ASSIGN(ImmersiveFullscreenController); |
| 296 }; | 296 }; |
| 297 | 297 |
| 298 } // namespace ash | 298 } // namespace ash |
| 299 | 299 |
| 300 #endif // ASH_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_H_ | 300 #endif // ASH_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_H_ |
| OLD | NEW |