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

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

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 months 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
« no previous file with comments | « ash/wm/gestures/long_press_affordance_handler.h ('k') | ash/wm/lock_state_controller.h » ('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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « ash/wm/gestures/long_press_affordance_handler.h ('k') | ash/wm/lock_state_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698