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/macros.h" | 8 #include "base/macros.h" |
9 #include "base/time/tick_clock.h" | |
10 #include "base/timer/timer.h" | 9 #include "base/timer/timer.h" |
11 #include "base/values.h" | 10 #include "base/values.h" |
12 #include "ui/accessibility/ax_enums.h" | 11 #include "ui/accessibility/ax_enums.h" |
13 #include "ui/chromeos/ui_chromeos_export.h" | 12 #include "ui/chromeos/ui_chromeos_export.h" |
14 #include "ui/events/event.h" | 13 #include "ui/events/event.h" |
15 #include "ui/events/event_rewriter.h" | 14 #include "ui/events/event_rewriter.h" |
16 #include "ui/events/gesture_detection/gesture_detector.h" | 15 #include "ui/events/gesture_detection/gesture_detector.h" |
17 #include "ui/events/gestures/gesture_provider_aura.h" | 16 #include "ui/events/gestures/gesture_provider_aura.h" |
18 #include "ui/gfx/geometry/point.h" | 17 #include "ui/gfx/geometry/point.h" |
19 | 18 |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 | 493 |
495 // The previous state entered. | 494 // The previous state entered. |
496 State prev_state_; | 495 State prev_state_; |
497 | 496 |
498 // A copy of the previous event passed. | 497 // A copy of the previous event passed. |
499 std::unique_ptr<ui::TouchEvent> prev_event_; | 498 std::unique_ptr<ui::TouchEvent> prev_event_; |
500 | 499 |
501 // This toggles whether VLOGS are turned on or not. | 500 // This toggles whether VLOGS are turned on or not. |
502 bool VLOG_on_; | 501 bool VLOG_on_; |
503 | 502 |
504 // When touch_exploration_controller gets time relative to real time during | |
505 // testing, this clock is set to the simulated clock and used. | |
506 base::TickClock* tick_clock_; | |
507 | |
508 DISALLOW_COPY_AND_ASSIGN(TouchExplorationController); | 503 DISALLOW_COPY_AND_ASSIGN(TouchExplorationController); |
509 }; | 504 }; |
510 | 505 |
511 } // namespace ui | 506 } // namespace ui |
512 | 507 |
513 #endif // UI_CHROMEOS_TOUCH_EXPLORATION_CONTROLLER_H_ | 508 #endif // UI_CHROMEOS_TOUCH_EXPLORATION_CONTROLLER_H_ |
OLD | NEW |