1 // Copyright (c) 2012 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.
5 #include "content/browser/renderer_host/web_input_event_aura.h"
7 #include "base/event_types.h"
8 #include "base/logging.h"
9 #include "content/browser/renderer_host/input/web_input_event_builders_win.h"
13 // On Windows, we can just use the builtin WebKit factory methods to fully
14 // construct our pre-translated events.
16 blink::WebMouseEvent
MakeUntranslatedWebMouseEventFromNativeEvent(
17 const base::NativeEvent
& native_event
) {
18 return WebMouseEventBuilder::Build(native_event
.hwnd
,
25 blink::WebMouseWheelEvent
MakeUntranslatedWebMouseWheelEventFromNativeEvent(
26 const base::NativeEvent
& native_event
) {
27 return WebMouseWheelEventBuilder::Build(native_event
.hwnd
,
34 blink::WebKeyboardEvent
MakeWebKeyboardEventFromNativeEvent(
35 const base::NativeEvent
& native_event
) {
36 return WebKeyboardEventBuilder::Build(native_event
.hwnd
,
43 blink::WebGestureEvent
MakeWebGestureEventFromNativeEvent(
44 const base::NativeEvent
& native_event
) {
45 // TODO: Create gestures from native event.
47 return blink::WebGestureEvent();
50 } // namespace content