| 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 // MSVC++ requires this to be set before any other includes to get M_PI. | |
| 6 #define _USE_MATH_DEFINES | |
| 7 | |
| 8 #include "content/browser/renderer_host/input/motion_event_web.h" | 5 #include "content/browser/renderer_host/input/motion_event_web.h" |
| 9 | 6 |
| 10 #include <cmath> | 7 #include <cmath> |
| 11 | 8 |
| 12 #include "base/logging.h" | 9 #include "base/logging.h" |
| 13 #include "content/common/input/web_touch_event_traits.h" | 10 #include "content/common/input/web_touch_event_traits.h" |
| 14 #include "ui/events/blink/blink_event_util.h" | 11 #include "ui/events/blink/blink_event_util.h" |
| 15 | 12 |
| 16 using blink::WebInputEvent; | 13 using blink::WebInputEvent; |
| 17 using blink::WebPointerProperties; | 14 using blink::WebPointerProperties; |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 | 213 |
| 217 int MotionEventWeb::GetButtonState() const { | 214 int MotionEventWeb::GetButtonState() const { |
| 218 return 0; | 215 return 0; |
| 219 } | 216 } |
| 220 | 217 |
| 221 int MotionEventWeb::GetFlags() const { | 218 int MotionEventWeb::GetFlags() const { |
| 222 return ui::WebEventModifiersToEventFlags(event_.GetModifiers()); | 219 return ui::WebEventModifiersToEventFlags(event_.GetModifiers()); |
| 223 } | 220 } |
| 224 | 221 |
| 225 } // namespace content | 222 } // namespace content |
| OLD | NEW |