| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |