| 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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 | 417 |
| 418 // A copy of the event from the initial touch press. | 418 // A copy of the event from the initial touch press. |
| 419 scoped_ptr<ui::TouchEvent> initial_press_; | 419 scoped_ptr<ui::TouchEvent> initial_press_; |
| 420 | 420 |
| 421 // Map of touch ids to where its initial press occurred relative to the | 421 // Map of touch ids to where its initial press occurred relative to the |
| 422 // screen. | 422 // screen. |
| 423 std::map<int, gfx::Point> initial_presses_; | 423 std::map<int, gfx::Point> initial_presses_; |
| 424 | 424 |
| 425 // In one finger passthrough, the touch is displaced relative to the | 425 // In one finger passthrough, the touch is displaced relative to the |
| 426 // last touch exploration location. | 426 // last touch exploration location. |
| 427 gfx::Vector2d passthrough_offset_; | 427 gfx::Vector2dF passthrough_offset_; |
| 428 | 428 |
| 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 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |