| 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 "base/logging.h" | 7 #include "base/logging.h" | 
| 8 #include "content/browser/renderer_host/web_input_event_aura.h" | 8 #include "content/browser/renderer_host/web_input_event_aura.h" | 
| 9 #include "ui/base/events/event.h" | 9 #include "ui/base/events/event.h" | 
| 10 | 10 | 
| (...skipping 20 matching lines...) Expand all  Loading... | 
| 31 using WebKit::WebKeyboardEvent; | 31 using WebKit::WebKeyboardEvent; | 
| 32 | 32 | 
| 33 namespace content { | 33 namespace content { | 
| 34 | 34 | 
| 35 NativeWebKeyboardEvent::NativeWebKeyboardEvent() | 35 NativeWebKeyboardEvent::NativeWebKeyboardEvent() | 
| 36     : os_event(NULL), | 36     : os_event(NULL), | 
| 37       skip_in_browser(false) { | 37       skip_in_browser(false) { | 
| 38 } | 38 } | 
| 39 | 39 | 
| 40 NativeWebKeyboardEvent::NativeWebKeyboardEvent(gfx::NativeEvent native_event) | 40 NativeWebKeyboardEvent::NativeWebKeyboardEvent(gfx::NativeEvent native_event) | 
| 41     : WebKeyboardEvent(content::MakeWebKeyboardEvent( | 41     : WebKeyboardEvent(MakeWebKeyboardEvent( | 
| 42           static_cast<ui::KeyEvent*>(native_event))), | 42           static_cast<ui::KeyEvent*>(native_event))), | 
| 43       os_event(CopyEvent(native_event)), | 43       os_event(CopyEvent(native_event)), | 
| 44       skip_in_browser(false) { | 44       skip_in_browser(false) { | 
| 45 } | 45 } | 
| 46 | 46 | 
| 47 NativeWebKeyboardEvent::NativeWebKeyboardEvent( | 47 NativeWebKeyboardEvent::NativeWebKeyboardEvent( | 
| 48     const NativeWebKeyboardEvent& other) | 48     const NativeWebKeyboardEvent& other) | 
| 49     : WebKeyboardEvent(other), | 49     : WebKeyboardEvent(other), | 
| 50       os_event(CopyEvent(other.os_event)), | 50       os_event(CopyEvent(other.os_event)), | 
| 51       skip_in_browser(other.skip_in_browser) { | 51       skip_in_browser(other.skip_in_browser) { | 
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 88   skip_in_browser = other.skip_in_browser; | 88   skip_in_browser = other.skip_in_browser; | 
| 89 | 89 | 
| 90   return *this; | 90   return *this; | 
| 91 } | 91 } | 
| 92 | 92 | 
| 93 NativeWebKeyboardEvent::~NativeWebKeyboardEvent() { | 93 NativeWebKeyboardEvent::~NativeWebKeyboardEvent() { | 
| 94   delete os_event; | 94   delete os_event; | 
| 95 } | 95 } | 
| 96 | 96 | 
| 97 }  // namespace content | 97 }  // namespace content | 
| OLD | NEW | 
|---|