OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "public/platform/WebMouseWheelEvent.h" |
| 6 |
| 7 namespace blink { |
| 8 |
| 9 float WebMouseWheelEvent::deltaXInRootFrame() const { |
| 10 return deltaX / m_frameScale; |
| 11 } |
| 12 |
| 13 float WebMouseWheelEvent::deltaYInRootFrame() const { |
| 14 return deltaY / m_frameScale; |
| 15 } |
| 16 |
| 17 WebMouseWheelEvent WebMouseWheelEvent::flattenTransform() const { |
| 18 WebMouseWheelEvent result = *this; |
| 19 result.deltaX /= result.m_frameScale; |
| 20 result.deltaY /= result.m_frameScale; |
| 21 result.flattenTransformSelf(); |
| 22 return result; |
| 23 } |
| 24 |
| 25 } // namespace blink |
OLD | NEW |