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/public/browser/native_web_keyboard_event.h" | 5 #include "content/public/browser/native_web_keyboard_event.h" |
6 | 6 |
7 #include "third_party/WebKit/Source/WebKit/chromium/public/win/WebInputEventFact
ory.h" | 7 #include "third_party/WebKit/Source/WebKit/chromium/public/win/WebInputEventFact
ory.h" |
8 | 8 |
9 using WebKit::WebInputEventFactory; | 9 using WebKit::WebInputEventFactory; |
10 using WebKit::WebKeyboardEvent; | 10 using WebKit::WebKeyboardEvent; |
11 | 11 |
| 12 namespace content { |
| 13 |
12 NativeWebKeyboardEvent::NativeWebKeyboardEvent() | 14 NativeWebKeyboardEvent::NativeWebKeyboardEvent() |
13 : skip_in_browser(false) { | 15 : skip_in_browser(false) { |
14 memset(&os_event, 0, sizeof(os_event)); | 16 memset(&os_event, 0, sizeof(os_event)); |
15 } | 17 } |
16 | 18 |
17 NativeWebKeyboardEvent::NativeWebKeyboardEvent(gfx::NativeEvent native_event) | 19 NativeWebKeyboardEvent::NativeWebKeyboardEvent(gfx::NativeEvent native_event) |
18 : WebKeyboardEvent( | 20 : WebKeyboardEvent( |
19 WebInputEventFactory::keyboardEvent(native_event.hwnd, | 21 WebInputEventFactory::keyboardEvent(native_event.hwnd, |
20 native_event.message, | 22 native_event.message, |
21 native_event.wParam, | 23 native_event.wParam, |
(...skipping 15 matching lines...) Expand all Loading... |
37 | 39 |
38 os_event = other.os_event; | 40 os_event = other.os_event; |
39 skip_in_browser = other.skip_in_browser; | 41 skip_in_browser = other.skip_in_browser; |
40 | 42 |
41 return *this; | 43 return *this; |
42 } | 44 } |
43 | 45 |
44 NativeWebKeyboardEvent::~NativeWebKeyboardEvent() { | 46 NativeWebKeyboardEvent::~NativeWebKeyboardEvent() { |
45 // Noop under windows | 47 // Noop under windows |
46 } | 48 } |
| 49 |
| 50 } // namespace content |
OLD | NEW |