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

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

Issue 428643008: Revert of Fix Touch Exploration tests so they don't break eager gesture detection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 | Annotate | Revision Log
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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 // The last synthesized mouse move event. When the user double-taps, 367 // The last synthesized mouse move event. When the user double-taps,
368 // we send the passed-through tap to the location of this event. 368 // we send the passed-through tap to the location of this event.
369 scoped_ptr<ui::TouchEvent> last_touch_exploration_; 369 scoped_ptr<ui::TouchEvent> last_touch_exploration_;
370 370
371 // A timer to fire the mouse move event after the double-tap delay. 371 // A timer to fire the mouse move event after the double-tap delay.
372 base::OneShotTimer<TouchExplorationController> tap_timer_; 372 base::OneShotTimer<TouchExplorationController> tap_timer_;
373 373
374 // A timer to fire an indicating sound when sliding to change volume. 374 // A timer to fire an indicating sound when sliding to change volume.
375 base::RepeatingTimer<TouchExplorationController> sound_timer_; 375 base::RepeatingTimer<TouchExplorationController> sound_timer_;
376 376
377 // For testing only, an event handler to use for generated events
378 // outside of the normal event rewriting flow.
379 ui::EventHandler* event_handler_for_testing_;
380
377 // A default gesture detector config, so we can share the same 381 // A default gesture detector config, so we can share the same
378 // timeout and pixel slop constants. 382 // timeout and pixel slop constants.
379 ui::GestureDetector::Config gesture_detector_config_; 383 ui::GestureDetector::Config gesture_detector_config_;
380 384
381 // Gesture Handler to interpret the touch events. 385 // Gesture Handler to interpret the touch events.
382 ui::GestureProviderAura gesture_provider_; 386 ui::GestureProviderAura gesture_provider_;
383 387
384 // The previous state entered. 388 // The previous state entered.
385 State prev_state_; 389 State prev_state_;
386 390
387 // A copy of the previous event passed. 391 // A copy of the previous event passed.
388 scoped_ptr<ui::TouchEvent> prev_event_; 392 scoped_ptr<ui::TouchEvent> prev_event_;
389 393
390 // This toggles whether VLOGS are turned on or not. 394 // This toggles whether VLOGS are turned on or not.
391 bool VLOG_on_; 395 bool VLOG_on_;
392 396
393 // When touch_exploration_controller gets time relative to real time during 397 // When touch_exploration_controller gets time relative to real time during
394 // testing, this clock is set to the simulated clock and used. 398 // testing, this clock is set to the simulated clock and used.
395 base::TickClock* tick_clock_; 399 base::TickClock* tick_clock_;
396 400
397 DISALLOW_COPY_AND_ASSIGN(TouchExplorationController); 401 DISALLOW_COPY_AND_ASSIGN(TouchExplorationController);
398 }; 402 };
399 403
400 } // namespace ui 404 } // namespace ui
401 405
402 #endif // UI_CHROMEOS_TOUCH_EXPLORATION_CONTROLLER_H_ 406 #endif // UI_CHROMEOS_TOUCH_EXPLORATION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698