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 #include "content/browser/renderer_host/input/touch_emulator.h" | 5 #include "content/browser/renderer_host/input/touch_emulator.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 #include "content/browser/renderer_host/input/motion_event_web.h" | 8 #include "content/browser/renderer_host/input/motion_event_web.h" |
9 #include "content/common/input/web_touch_event_traits.h" | 9 #include "content/common/input/web_touch_event_traits.h" |
10 #include "content/grit/content_resources.h" | 10 #include "content/grit/content_resources.h" |
11 #include "content/public/common/content_client.h" | 11 #include "content/public/common/content_client.h" |
12 #include "content/public/common/content_switches.h" | 12 #include "content/public/common/content_switches.h" |
13 #include "third_party/WebKit/public/platform/WebCursorInfo.h" | 13 #include "third_party/WebKit/public/platform/WebCursorInfo.h" |
| 14 #include "third_party/WebKit/public/platform/WebMouseEvent.h" |
14 #include "ui/events/base_event_utils.h" | 15 #include "ui/events/base_event_utils.h" |
15 #include "ui/events/blink/blink_event_util.h" | 16 #include "ui/events/blink/blink_event_util.h" |
16 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" | 17 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" |
17 #include "ui/gfx/image/image.h" | 18 #include "ui/gfx/image/image.h" |
18 | 19 |
19 using blink::WebGestureEvent; | 20 using blink::WebGestureEvent; |
20 using blink::WebInputEvent; | 21 using blink::WebInputEvent; |
21 using blink::WebKeyboardEvent; | 22 using blink::WebKeyboardEvent; |
22 using blink::WebMouseEvent; | 23 using blink::WebMouseEvent; |
23 using blink::WebMouseWheelEvent; | 24 using blink::WebMouseWheelEvent; |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 point.tiltX = 0; | 468 point.tiltX = 0; |
468 point.tiltY = 0; | 469 point.tiltY = 0; |
469 point.pointerType = blink::WebPointerProperties::PointerType::Touch; | 470 point.pointerType = blink::WebPointerProperties::PointerType::Touch; |
470 } | 471 } |
471 | 472 |
472 bool TouchEmulator::InPinchGestureMode() const { | 473 bool TouchEmulator::InPinchGestureMode() const { |
473 return shift_pressed_; | 474 return shift_pressed_; |
474 } | 475 } |
475 | 476 |
476 } // namespace content | 477 } // namespace content |
OLD | NEW |