OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // MSVC++ requires this to be set before any other includes to get M_PI. | 5 // MSVC++ requires this to be set before any other includes to get M_PI. |
6 #define _USE_MATH_DEFINES | 6 #define _USE_MATH_DEFINES |
7 | 7 |
8 #include "ui/events/blink/blink_event_util.h" | 8 #include "ui/events/blink/blink_event_util.h" |
9 | 9 |
10 #include <stddef.h> | 10 #include <stddef.h> |
11 | 11 |
12 #include <algorithm> | 12 #include <algorithm> |
13 #include <cmath> | 13 #include <cmath> |
14 | 14 |
15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 17 #include "third_party/WebKit/public/platform/WebGestureEvent.h" |
17 #include "third_party/WebKit/public/platform/WebInputEvent.h" | 18 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
18 #include "ui/events/base_event_utils.h" | 19 #include "ui/events/base_event_utils.h" |
19 #include "ui/events/event_constants.h" | 20 #include "ui/events/event_constants.h" |
20 #include "ui/events/gesture_detection/gesture_event_data.h" | 21 #include "ui/events/gesture_detection/gesture_event_data.h" |
21 #include "ui/events/gesture_detection/motion_event.h" | 22 #include "ui/events/gesture_detection/motion_event.h" |
22 #include "ui/events/gesture_event_details.h" | 23 #include "ui/events/gesture_event_details.h" |
23 #include "ui/events/keycodes/dom/keycode_converter.h" | 24 #include "ui/events/keycodes/dom/keycode_converter.h" |
24 #include "ui/gfx/geometry/safe_integer_conversions.h" | 25 #include "ui/gfx/geometry/safe_integer_conversions.h" |
25 #include "ui/gfx/geometry/vector2d.h" | 26 #include "ui/gfx/geometry/vector2d.h" |
26 | 27 |
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 return blink::WebInputEvent::IsRight; | 610 return blink::WebInputEvent::IsRight; |
610 case DomKeyLocation::NUMPAD: | 611 case DomKeyLocation::NUMPAD: |
611 return blink::WebInputEvent::IsKeyPad; | 612 return blink::WebInputEvent::IsKeyPad; |
612 case DomKeyLocation::STANDARD: | 613 case DomKeyLocation::STANDARD: |
613 break; | 614 break; |
614 } | 615 } |
615 return static_cast<blink::WebInputEvent::Modifiers>(0); | 616 return static_cast<blink::WebInputEvent::Modifiers>(0); |
616 } | 617 } |
617 | 618 |
618 } // namespace ui | 619 } // namespace ui |
OLD | NEW |