| 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 | 251 |
| 252 // Binds DispatchShiftSearchKeyEvent to a specific third key. | 252 // Binds DispatchShiftSearchKeyEvent to a specific third key. |
| 253 base::Closure BindShiftSearchKeyEvent(const ui::KeyboardCode third_key); | 253 base::Closure BindShiftSearchKeyEvent(const ui::KeyboardCode third_key); |
| 254 | 254 |
| 255 // Dispatches a single key with the given flags. | 255 // Dispatches a single key with the given flags. |
| 256 void DispatchKeyWithFlags(const ui::KeyboardCode key, int flags); | 256 void DispatchKeyWithFlags(const ui::KeyboardCode key, int flags); |
| 257 | 257 |
| 258 // Binds DispatchKeyWithFlags to a specific key and flags. | 258 // Binds DispatchKeyWithFlags to a specific key and flags. |
| 259 base::Closure BindKeyEventWithFlags(const ui::KeyboardCode key, int flags); | 259 base::Closure BindKeyEventWithFlags(const ui::KeyboardCode key, int flags); |
| 260 | 260 |
| 261 scoped_ptr<ui::Event> CreateMouseMoveEvent(const gfx::PointF& location, | 261 scoped_ptr<ui::MouseEvent> CreateMouseMoveEvent(const gfx::PointF& location, |
| 262 int flags); | 262 int flags); |
| 263 | 263 |
| 264 void EnterTouchToMouseMode(); | 264 void EnterTouchToMouseMode(); |
| 265 | 265 |
| 266 void PlaySoundForTimer(); | 266 void PlaySoundForTimer(); |
| 267 | 267 |
| 268 // Some constants used in touch_exploration_controller: | 268 // Some constants used in touch_exploration_controller: |
| 269 | 269 |
| 270 // Within this many dips of the screen edge, the release event generated will | 270 // Within this many dips of the screen edge, the release event generated will |
| 271 // reset the state to NoFingersDown. | 271 // reset the state to NoFingersDown. |
| 272 const float kLeavingScreenEdge = 6; | 272 const float kLeavingScreenEdge = 6; |
| (...skipping 197 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 |