| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/browser/renderer_host/web_input_event_aura.h" | 5 #include "content/browser/renderer_host/web_input_event_aura.h" |
| 6 | 6 |
| 7 #include "base/event_types.h" | 7 #include "base/event_types.h" |
| 8 #include "base/logging.h" |
| 8 #include "third_party/WebKit/Source/WebKit/chromium/public/win/WebInputEventFact
ory.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/win/WebInputEventFact
ory.h" |
| 9 | 10 |
| 10 namespace content { | 11 namespace content { |
| 11 | 12 |
| 12 // On Windows, we can just use the builtin WebKit factory methods to fully | 13 // On Windows, we can just use the builtin WebKit factory methods to fully |
| 13 // construct our pre-translated events. | 14 // construct our pre-translated events. |
| 14 | 15 |
| 15 WebKit::WebMouseEvent MakeUntranslatedWebMouseEventFromNativeEvent( | 16 WebKit::WebMouseEvent MakeUntranslatedWebMouseEventFromNativeEvent( |
| 16 base::NativeEvent native_event) { | 17 base::NativeEvent native_event) { |
| 17 return WebKit::WebInputEventFactory::mouseEvent(native_event.hwnd, | 18 return WebKit::WebInputEventFactory::mouseEvent(native_event.hwnd, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 36 native_event.lParam); | 37 native_event.lParam); |
| 37 } | 38 } |
| 38 | 39 |
| 39 WebKit::WebTouchPoint* UpdateWebTouchEventFromNativeEvent( | 40 WebKit::WebTouchPoint* UpdateWebTouchEventFromNativeEvent( |
| 40 base::NativeEvent native_event, WebKit::WebTouchEvent* web_event) { | 41 base::NativeEvent native_event, WebKit::WebTouchEvent* web_event) { |
| 41 NOTIMPLEMENTED(); | 42 NOTIMPLEMENTED(); |
| 42 return NULL; | 43 return NULL; |
| 43 } | 44 } |
| 44 | 45 |
| 45 } // namespace content | 46 } // namespace content |
| OLD | NEW |