Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: chrome/common/native_web_keyboard_event_linux.cc

Issue 387020: Upstreaming WebKit.gyp (Closed)
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/common/native_web_keyboard_event.h ('k') | chrome/common/native_web_keyboard_event_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698