IndexedDBFactory now ForceCloses databases.
[chromium-blink-merge.git] / content / browser / renderer_host / web_input_event_aurawin.cc
blob06e2dbf4592e82add507e017231da8d5f3c04cae
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"
11 namespace content {
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 base::NativeEvent native_event) {
18 return WebMouseEventBuilder::Build(native_event.hwnd,
19 native_event.message,
20 native_event.wParam,
21 native_event.lParam);
24 blink::WebMouseWheelEvent MakeUntranslatedWebMouseWheelEventFromNativeEvent(
25 base::NativeEvent native_event) {
26 return WebMouseWheelEventBuilder::Build(native_event.hwnd,
27 native_event.message,
28 native_event.wParam,
29 native_event.lParam);
32 blink::WebKeyboardEvent MakeWebKeyboardEventFromNativeEvent(
33 base::NativeEvent native_event) {
34 return WebKeyboardEventBuilder::Build(native_event.hwnd,
35 native_event.message,
36 native_event.wParam,
37 native_event.lParam);
40 blink::WebGestureEvent MakeWebGestureEventFromNativeEvent(
41 base::NativeEvent native_event) {
42 // TODO: Create gestures from native event.
43 NOTIMPLEMENTED();
44 return blink::WebGestureEvent();
47 } // namespace content