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 #import <AppKit/AppKit.h> | 7 #import <AppKit/AppKit.h> |
8 | 8 |
9 #include "third_party/WebKit/Source/WebKit/chromium/public/mac/WebInputEventFact
ory.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/mac/WebInputEventFact
ory.h" |
10 | 10 |
11 using WebKit::WebInputEventFactory; | 11 using WebKit::WebInputEventFactory; |
12 | 12 |
| 13 namespace content { |
| 14 |
13 NativeWebKeyboardEvent::NativeWebKeyboardEvent() | 15 NativeWebKeyboardEvent::NativeWebKeyboardEvent() |
14 : os_event(NULL), | 16 : os_event(NULL), |
15 skip_in_browser(false) { | 17 skip_in_browser(false) { |
16 } | 18 } |
17 | 19 |
18 NativeWebKeyboardEvent::NativeWebKeyboardEvent(gfx::NativeEvent native_event) | 20 NativeWebKeyboardEvent::NativeWebKeyboardEvent(gfx::NativeEvent native_event) |
19 : WebKeyboardEvent(WebInputEventFactory::keyboardEvent(native_event)), | 21 : WebKeyboardEvent(WebInputEventFactory::keyboardEvent(native_event)), |
20 os_event([native_event retain]), | 22 os_event([native_event retain]), |
21 skip_in_browser(false) { | 23 skip_in_browser(false) { |
22 } | 24 } |
(...skipping 24 matching lines...) Expand all Loading... |
47 [previous release]; | 49 [previous release]; |
48 | 50 |
49 skip_in_browser = other.skip_in_browser; | 51 skip_in_browser = other.skip_in_browser; |
50 | 52 |
51 return *this; | 53 return *this; |
52 } | 54 } |
53 | 55 |
54 NativeWebKeyboardEvent::~NativeWebKeyboardEvent() { | 56 NativeWebKeyboardEvent::~NativeWebKeyboardEvent() { |
55 [os_event release]; | 57 [os_event release]; |
56 } | 58 } |
| 59 |
| 60 } // namespace content |
OLD | NEW |