| 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/WebKeyboardEvent.h" |
| 14 #include "third_party/WebKit/public/platform/WebMouseEvent.h" | 15 #include "third_party/WebKit/public/platform/WebMouseEvent.h" |
| 15 #include "ui/events/base_event_utils.h" | 16 #include "ui/events/base_event_utils.h" |
| 16 #include "ui/events/blink/blink_event_util.h" | 17 #include "ui/events/blink/blink_event_util.h" |
| 17 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" | 18 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" |
| 18 #include "ui/gfx/image/image.h" | 19 #include "ui/gfx/image/image.h" |
| 19 | 20 |
| 20 using blink::WebGestureEvent; | 21 using blink::WebGestureEvent; |
| 21 using blink::WebInputEvent; | 22 using blink::WebInputEvent; |
| 22 using blink::WebKeyboardEvent; | 23 using blink::WebKeyboardEvent; |
| 23 using blink::WebMouseEvent; | 24 using blink::WebMouseEvent; |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 point.tiltX = 0; | 470 point.tiltX = 0; |
| 470 point.tiltY = 0; | 471 point.tiltY = 0; |
| 471 point.pointerType = blink::WebPointerProperties::PointerType::Touch; | 472 point.pointerType = blink::WebPointerProperties::PointerType::Touch; |
| 472 } | 473 } |
| 473 | 474 |
| 474 bool TouchEmulator::InPinchGestureMode() const { | 475 bool TouchEmulator::InPinchGestureMode() const { |
| 475 return shift_pressed_; | 476 return shift_pressed_; |
| 476 } | 477 } |
| 477 | 478 |
| 478 } // namespace content | 479 } // namespace content |
| OLD | NEW |