| 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 #include "sky/engine/config.h" | 5 #include "sky/engine/config.h" |
| 6 #include "sky/engine/core/dom/Element.h" | 6 #include "sky/engine/core/dom/Element.h" |
| 7 #include "sky/engine/core/events/GestureEvent.h" | 7 #include "sky/engine/core/events/GestureEvent.h" |
| 8 #include "sky/engine/wtf/text/AtomicString.h" | 8 #include "sky/engine/wtf/text/AtomicString.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 } else if (event.type == WebInputEvent::GestureScrollUpdate | 80 } else if (event.type == WebInputEvent::GestureScrollUpdate |
| 81 || event.type == WebInputEvent::GestureScrollUpdateWithoutPropagatio
n) { | 81 || event.type == WebInputEvent::GestureScrollUpdateWithoutPropagatio
n) { |
| 82 m_dx = event.data.scrollUpdate.deltaX; | 82 m_dx = event.data.scrollUpdate.deltaX; |
| 83 m_dy = event.data.scrollUpdate.deltaY; | 83 m_dy = event.data.scrollUpdate.deltaY; |
| 84 m_velocityX = event.data.scrollUpdate.velocityX; | 84 m_velocityX = event.data.scrollUpdate.velocityX; |
| 85 m_velocityY = event.data.scrollUpdate.velocityY; | 85 m_velocityY = event.data.scrollUpdate.velocityY; |
| 86 } | 86 } |
| 87 } | 87 } |
| 88 | 88 |
| 89 GestureEvent::GestureEvent(const AtomicString& type, const GestureEventInit& ini
tializer) | 89 GestureEvent::GestureEvent(const AtomicString& type, const GestureEventInit& ini
tializer) |
| 90 : Event(type, true, true) | 90 : Event(type, initializer) |
| 91 , m_x(initializer.x) | 91 , m_x(initializer.x) |
| 92 , m_y(initializer.y) | 92 , m_y(initializer.y) |
| 93 , m_dx(initializer.dx) | 93 , m_dx(initializer.dx) |
| 94 , m_dy(initializer.dy) | 94 , m_dy(initializer.dy) |
| 95 , m_velocityX(initializer.velocityX) | 95 , m_velocityX(initializer.velocityX) |
| 96 , m_velocityY(initializer.velocityY) | 96 , m_velocityY(initializer.velocityY) |
| 97 { | 97 { |
| 98 } | 98 } |
| 99 | 99 |
| 100 } // namespace blink | 100 } // namespace blink |
| OLD | NEW |