| 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 CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "content/browser/renderer_host/input/touch_emulator_client.h" | 11 #include "content/browser/renderer_host/input/touch_emulator_client.h" |
| 12 #include "content/common/cursors/webcursor.h" | 12 #include "content/common/cursors/webcursor.h" |
| 13 #include "content/common/input/input_event_ack_state.h" | 13 #include "content/common/input/input_event_ack_state.h" |
| 14 #include "third_party/WebKit/public/platform/WebInputEvent.h" | 14 #include "third_party/WebKit/public/platform/WebTouchEvent.h" |
| 15 #include "ui/events/gesture_detection/filtered_gesture_provider.h" | 15 #include "ui/events/gesture_detection/filtered_gesture_provider.h" |
| 16 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" | 16 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" |
| 17 #include "ui/gfx/geometry/size_f.h" | 17 #include "ui/gfx/geometry/size_f.h" |
| 18 | 18 |
| 19 namespace blink { | 19 namespace blink { |
| 20 class WebKeyboardEvent; |
| 20 class WebMouseEvent; | 21 class WebMouseEvent; |
| 21 class WebMouseWheelEvent; | 22 class WebMouseWheelEvent; |
| 22 } | 23 } |
| 23 | 24 |
| 24 namespace content { | 25 namespace content { |
| 25 | 26 |
| 26 // Emulates touch input with mouse and keyboard. | 27 // Emulates touch input with mouse and keyboard. |
| 27 class CONTENT_EXPORT TouchEmulator : public ui::GestureProviderClient { | 28 class CONTENT_EXPORT TouchEmulator : public ui::GestureProviderClient { |
| 28 public: | 29 public: |
| 29 TouchEmulator(TouchEmulatorClient* client, float device_scale_factor); | 30 TouchEmulator(TouchEmulatorClient* client, float device_scale_factor); |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // The cumulative scale change from the start of pinch gesture. | 127 // The cumulative scale change from the start of pinch gesture. |
| 127 float pinch_scale_; | 128 float pinch_scale_; |
| 128 bool pinch_gesture_active_; | 129 bool pinch_gesture_active_; |
| 129 | 130 |
| 130 DISALLOW_COPY_AND_ASSIGN(TouchEmulator); | 131 DISALLOW_COPY_AND_ASSIGN(TouchEmulator); |
| 131 }; | 132 }; |
| 132 | 133 |
| 133 } // namespace content | 134 } // namespace content |
| 134 | 135 |
| 135 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_H_ | 136 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EMULATOR_H_ |
| OLD | NEW |