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

Side by Side Diff: content/browser/renderer_host/native_web_keyboard_event_gtk.cc

Issue 19776016: Add files. Does not compile yet! (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gtk links, may not work correctly Created 7 years, 5 months 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 | Annotate | Revision Log
OLDNEW
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 <gdk/gdk.h> 7 #include <gdk/gdk.h>
8 8
9 #include "third_party/WebKit/public/web/gtk/WebInputEventFactory.h" 9 #include "content/browser/renderer_host/web_input_event_factory_gtk.h"
10
11 using WebKit::WebInputEventFactory;
12 10
13 namespace { 11 namespace {
14 12
15 void CopyEventTo(gfx::NativeEvent in, gfx::NativeEvent* out) { 13 void CopyEventTo(gfx::NativeEvent in, gfx::NativeEvent* out) {
16 *out = in ? gdk_event_copy(in) : NULL; 14 *out = in ? gdk_event_copy(in) : NULL;
17 } 15 }
18 16
19 void FreeEvent(gfx::NativeEvent event) { 17 void FreeEvent(gfx::NativeEvent event) {
20 if (event) 18 if (event)
21 gdk_event_free(event); 19 gdk_event_free(event);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 match_edit_command = other.match_edit_command; 66 match_edit_command = other.match_edit_command;
69 67
70 return *this; 68 return *this;
71 } 69 }
72 70
73 NativeWebKeyboardEvent::~NativeWebKeyboardEvent() { 71 NativeWebKeyboardEvent::~NativeWebKeyboardEvent() {
74 FreeEvent(os_event); 72 FreeEvent(os_event);
75 } 73 }
76 74
77 } // namespace content 75 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698