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

Side by Side Diff: ui/chromeos/touch_exploration_controller.h

Issue 429633002: Added multi-finger gestures to touch_exploration_controller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@passthrough
Patch Set: fixed weird indents Created 6 years, 4 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
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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 // input their gesture corresponded to. 205 // input their gesture corresponded to.
206 virtual void OnGestureEvent(ui::GestureEvent* gesture) OVERRIDE; 206 virtual void OnGestureEvent(ui::GestureEvent* gesture) OVERRIDE;
207 207
208 // Process the gesture events that have been created. 208 // Process the gesture events that have been created.
209 void ProcessGestureEvents(); 209 void ProcessGestureEvents();
210 210
211 void OnSwipeEvent(ui::GestureEvent* swipe_gesture); 211 void OnSwipeEvent(ui::GestureEvent* swipe_gesture);
212 212
213 void SideSlideControl(ui::GestureEvent* gesture); 213 void SideSlideControl(ui::GestureEvent* gesture);
214 214
215 // Dispatches the keyboard short cut Shift+Search+<arrow key> 215 // Dispatches the keyboard short cut Shift+Search+<key>
216 // outside the event rewritting flow. 216 // outside the event rewritting flow.
217 void DispatchShiftSearchKeyEvent(const ui::KeyboardCode direction); 217 void DispatchShiftSearchKeyEvent(const ui::KeyboardCode third_key);
218
219 // Dispatches a single key with no flags.
220 void DispatchKeyWithNoFlags(const ui::KeyboardCode key);
218 221
219 scoped_ptr<ui::Event> CreateMouseMoveEvent(const gfx::PointF& location, 222 scoped_ptr<ui::Event> CreateMouseMoveEvent(const gfx::PointF& location,
220 int flags); 223 int flags);
221 224
222 void EnterTouchToMouseMode(); 225 void EnterTouchToMouseMode();
223 226
224 // Set the state to NO_FINGERS_DOWN and reset any other fields to their 227 // Set the state to NO_FINGERS_DOWN and reset any other fields to their
225 // default value. 228 // default value.
226 void ResetToNoFingersDown(); 229 void ResetToNoFingersDown();
227 230
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 390
388 // The previous state entered. 391 // The previous state entered.
389 State prev_state_; 392 State prev_state_;
390 393
391 // A copy of the previous event passed. 394 // A copy of the previous event passed.
392 scoped_ptr<ui::TouchEvent> prev_event_; 395 scoped_ptr<ui::TouchEvent> prev_event_;
393 396
394 // This toggles whether VLOGS are turned on or not. 397 // This toggles whether VLOGS are turned on or not.
395 bool VLOG_on_; 398 bool VLOG_on_;
396 399
400 // This will ensure touch events continue to be sent to the gesture
401 // provider after a gesture ends, so that pointer ids are updated.
402 // It's initialized to false and set to false in ResetToNoFingersDown.
aboxhall 2014/07/30 00:25:16 Where is it set to true?
evy 2014/08/04 23:06:30 (this variable was removed, the code flow should b
403 bool send_gesture_events_;
404
397 // When touch_exploration_controller gets time relative to real time during 405 // When touch_exploration_controller gets time relative to real time during
398 // testing, this clock is set to the simulated clock and used. 406 // testing, this clock is set to the simulated clock and used.
399 base::TickClock* tick_clock_; 407 base::TickClock* tick_clock_;
400 408
401 DISALLOW_COPY_AND_ASSIGN(TouchExplorationController); 409 DISALLOW_COPY_AND_ASSIGN(TouchExplorationController);
402 }; 410 };
403 411
404 } // namespace ui 412 } // namespace ui
405 413
406 #endif // UI_CHROMEOS_TOUCH_EXPLORATION_CONTROLLER_H_ 414 #endif // UI_CHROMEOS_TOUCH_EXPLORATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ui/chromeos/touch_exploration_controller.cc » ('j') | ui/chromeos/touch_exploration_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698