| OLD | NEW | 
|---|
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/common/native_web_keyboard_event.h" | 5 #include "chrome/common/native_web_keyboard_event.h" | 
| 6 | 6 | 
| 7 #include "webkit/api/public/gtk/WebInputEventFactory.h" | 7 #include "third_party/WebKit/WebKit/chromium/public/gtk/WebInputEventFactory.h" | 
| 8 | 8 | 
| 9 using WebKit::WebInputEventFactory; | 9 using WebKit::WebInputEventFactory; | 
| 10 | 10 | 
| 11 namespace { | 11 namespace { | 
| 12 | 12 | 
| 13 void CopyEventTo(const GdkEventKey* in, GdkEventKey** out) { | 13 void CopyEventTo(const GdkEventKey* in, GdkEventKey** out) { | 
| 14   if (in) { | 14   if (in) { | 
| 15     *out = reinterpret_cast<GdkEventKey*>( | 15     *out = reinterpret_cast<GdkEventKey*>( | 
| 16         gdk_event_copy( | 16         gdk_event_copy( | 
| 17             reinterpret_cast<GdkEvent*>(const_cast<GdkEventKey*>(in)))); | 17             reinterpret_cast<GdkEvent*>(const_cast<GdkEventKey*>(in)))); | 
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 57   WebKeyboardEvent::operator=(other); | 57   WebKeyboardEvent::operator=(other); | 
| 58 | 58 | 
| 59   FreeEvent(os_event); | 59   FreeEvent(os_event); | 
| 60   CopyEventTo(other.os_event, &os_event); | 60   CopyEventTo(other.os_event, &os_event); | 
| 61   return *this; | 61   return *this; | 
| 62 } | 62 } | 
| 63 | 63 | 
| 64 NativeWebKeyboardEvent::~NativeWebKeyboardEvent() { | 64 NativeWebKeyboardEvent::~NativeWebKeyboardEvent() { | 
| 65   FreeEvent(os_event); | 65   FreeEvent(os_event); | 
| 66 } | 66 } | 
| OLD | NEW | 
|---|