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

Side by Side Diff: ui/chromeos/touch_exploration_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, 2 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 | « ui/chromeos/ime/mode_indicator_view.h ('k') | ui/display/chromeos/display_configurator.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 UI_CHROMEOS_TOUCH_EXPLORATION_CONTROLLER_H_ 5 #ifndef UI_CHROMEOS_TOUCH_EXPLORATION_CONTROLLER_H_
6 #define UI_CHROMEOS_TOUCH_EXPLORATION_CONTROLLER_H_ 6 #define UI_CHROMEOS_TOUCH_EXPLORATION_CONTROLLER_H_
7 7
8 #include "base/time/tick_clock.h" 8 #include "base/time/tick_clock.h"
9 #include "base/timer/timer.h" 9 #include "base/timer/timer.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 // Stores the most recent event from a finger that is currently not 429 // Stores the most recent event from a finger that is currently not
430 // sending events through, but might in the future (e.g. before a finger 430 // sending events through, but might in the future (e.g. before a finger
431 // enters double-tap-hold passthrough, we need to update its location.) 431 // enters double-tap-hold passthrough, we need to update its location.)
432 scoped_ptr<ui::TouchEvent> last_unused_finger_event_; 432 scoped_ptr<ui::TouchEvent> last_unused_finger_event_;
433 433
434 // The last synthesized mouse move event. When the user double-taps, 434 // The last synthesized mouse move event. When the user double-taps,
435 // we send the passed-through tap to the location of this event. 435 // we send the passed-through tap to the location of this event.
436 scoped_ptr<ui::TouchEvent> last_touch_exploration_; 436 scoped_ptr<ui::TouchEvent> last_touch_exploration_;
437 437
438 // A timer that fires after the double-tap delay. 438 // A timer that fires after the double-tap delay.
439 base::OneShotTimer<TouchExplorationController> tap_timer_; 439 base::OneShotTimer tap_timer_;
440 440
441 // A timer that fires to enter passthrough. 441 // A timer that fires to enter passthrough.
442 base::OneShotTimer<TouchExplorationController> passthrough_timer_; 442 base::OneShotTimer passthrough_timer_;
443 443
444 // A timer to fire an indicating sound when sliding to change volume. 444 // A timer to fire an indicating sound when sliding to change volume.
445 base::RepeatingTimer<TouchExplorationController> sound_timer_; 445 base::RepeatingTimer sound_timer_;
446 446
447 // A default gesture detector config, so we can share the same 447 // A default gesture detector config, so we can share the same
448 // timeout and pixel slop constants. 448 // timeout and pixel slop constants.
449 ui::GestureDetector::Config gesture_detector_config_; 449 ui::GestureDetector::Config gesture_detector_config_;
450 450
451 // Gesture Handler to interpret the touch events. 451 // Gesture Handler to interpret the touch events.
452 scoped_ptr<ui::GestureProviderAura> gesture_provider_; 452 scoped_ptr<ui::GestureProviderAura> gesture_provider_;
453 453
454 // The previous state entered. 454 // The previous state entered.
455 State prev_state_; 455 State prev_state_;
(...skipping 14 matching lines...) Expand all
470 std::map<int, base::Closure> right_swipe_gestures_; 470 std::map<int, base::Closure> right_swipe_gestures_;
471 std::map<int, base::Closure> up_swipe_gestures_; 471 std::map<int, base::Closure> up_swipe_gestures_;
472 std::map<int, base::Closure> down_swipe_gestures_; 472 std::map<int, base::Closure> down_swipe_gestures_;
473 473
474 DISALLOW_COPY_AND_ASSIGN(TouchExplorationController); 474 DISALLOW_COPY_AND_ASSIGN(TouchExplorationController);
475 }; 475 };
476 476
477 } // namespace ui 477 } // namespace ui
478 478
479 #endif // UI_CHROMEOS_TOUCH_EXPLORATION_CONTROLLER_H_ 479 #endif // UI_CHROMEOS_TOUCH_EXPLORATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ui/chromeos/ime/mode_indicator_view.h ('k') | ui/display/chromeos/display_configurator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698