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

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

Issue 12210030: Linux/ChromeOS Chromium style checker cleanup, content/ edition. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser/renderer_host/gtk_key_bindings_handler.h" 5 #include "content/browser/renderer_host/gtk_key_bindings_handler.h"
6 6
7 #include <gdk/gdkkeysyms.h> 7 #include <gdk/gdkkeysyms.h>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 26 matching lines...) Expand all
37 EXPECT_TRUE(file_util::PathExists(gtkrc)); 37 EXPECT_TRUE(file_util::PathExists(gtkrc));
38 38
39 gtk_rc_parse(gtkrc.value().c_str()); 39 gtk_rc_parse(gtkrc.value().c_str());
40 40
41 GtkWidget* fixed = gtk_fixed_new(); 41 GtkWidget* fixed = gtk_fixed_new();
42 handler_ = new GtkKeyBindingsHandler(fixed); 42 handler_ = new GtkKeyBindingsHandler(fixed);
43 gtk_container_add(GTK_CONTAINER(window_), fixed); 43 gtk_container_add(GTK_CONTAINER(window_), fixed);
44 gtk_widget_show(fixed); 44 gtk_widget_show(fixed);
45 gtk_widget_show(window_); 45 gtk_widget_show(window_);
46 } 46 }
47 ~GtkKeyBindingsHandlerTest() { 47 virtual ~GtkKeyBindingsHandlerTest() {
48 gtk_widget_destroy(window_); 48 gtk_widget_destroy(window_);
49 delete handler_; 49 delete handler_;
50 } 50 }
51 51
52 NativeWebKeyboardEvent NewNativeWebKeyboardEvent(guint keyval, guint state) { 52 NativeWebKeyboardEvent NewNativeWebKeyboardEvent(guint keyval, guint state) {
53 GdkKeymap* keymap = 53 GdkKeymap* keymap =
54 gdk_keymap_get_for_display(gtk_widget_get_display(window_)); 54 gdk_keymap_get_for_display(gtk_widget_get_display(window_));
55 55
56 GdkKeymapKey *keys = NULL; 56 GdkKeymapKey *keys = NULL;
57 gint n_keys = 0; 57 gint n_keys = 0;
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 kSelectAll, arraysize(kSelectAll)); 217 kSelectAll, arraysize(kSelectAll));
218 218
219 static const EditCommand kSetAnchor[] = { 219 static const EditCommand kSetAnchor[] = {
220 { "SetMark", "" } 220 { "SetMark", "" }
221 }; 221 };
222 TestKeyBinding(NewNativeWebKeyboardEvent(GDK_9, GDK_CONTROL_MASK), 222 TestKeyBinding(NewNativeWebKeyboardEvent(GDK_9, GDK_CONTROL_MASK),
223 kSetAnchor, arraysize(kSetAnchor)); 223 kSetAnchor, arraysize(kSetAnchor));
224 } 224 }
225 225
226 } // namespace content 226 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/ppapi_plugin_process_host.cc ('k') | content/browser/renderer_host/image_transport_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698