| Index: third_party/WebKit/Source/platform/WebMouseEvent.cpp
|
| diff --git a/third_party/WebKit/Source/platform/WebMouseEvent.cpp b/third_party/WebKit/Source/platform/WebMouseEvent.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..73f74e4f03967e1f1ccce685643418742e3fa638
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/platform/WebMouseEvent.cpp
|
| @@ -0,0 +1,18 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "public/platform/WebInputEvent.h"
|
| +
|
| +namespace blink {
|
| +
|
| +WebFloatPoint WebMouseEvent::movementInRootFrame() const {
|
| + return WebFloatPoint((movementX / m_frameScale), (movementY / m_frameScale));
|
| +}
|
| +
|
| +WebFloatPoint WebMouseEvent::positionInRootFrame() const {
|
| + return WebFloatPoint((x / m_frameScale) + m_frameTranslate.x,
|
| + (y / m_frameScale) + m_frameTranslate.y);
|
| +}
|
| +
|
| +} // namespace blink
|
|
|