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

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

Issue 11231077: Move a bunch more code into the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 | 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 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/string_util.h" 12 #include "base/string_util.h"
13 #include "content/public/browser/native_web_keyboard_event.h" 13 #include "content/public/browser/native_web_keyboard_event.h"
14 14
15 using content::EditCommand;
16 using content::EditCommands;
15 using content::NativeWebKeyboardEvent; 17 using content::NativeWebKeyboardEvent;
16 18
17 GtkKeyBindingsHandler::GtkKeyBindingsHandler(GtkWidget* parent_widget) 19 GtkKeyBindingsHandler::GtkKeyBindingsHandler(GtkWidget* parent_widget)
18 : handler_(CreateNewHandler()) { 20 : handler_(CreateNewHandler()) {
19 DCHECK(GTK_IS_FIXED(parent_widget)); 21 DCHECK(GTK_IS_FIXED(parent_widget));
20 // We need add the |handler_| object into gtk widget hierarchy, so that 22 // We need add the |handler_| object into gtk widget hierarchy, so that
21 // gtk_bindings_activate_event() can find correct display and keymaps from 23 // gtk_bindings_activate_event() can find correct display and keymaps from
22 // the |handler_| object. 24 // the |handler_| object.
23 gtk_fixed_put(GTK_FIXED(parent_widget), handler_.get(), -1, -1); 25 gtk_fixed_put(GTK_FIXED(parent_widget), handler_.get(), -1, -1);
24 } 26 }
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 gboolean GtkKeyBindingsHandler::ShowHelp(GtkWidget* widget, 283 gboolean GtkKeyBindingsHandler::ShowHelp(GtkWidget* widget,
282 GtkWidgetHelpType arg1) { 284 GtkWidgetHelpType arg1) {
283 // Just for disabling the default handler. 285 // Just for disabling the default handler.
284 return FALSE; 286 return FALSE;
285 } 287 }
286 288
287 void GtkKeyBindingsHandler::MoveFocus(GtkWidget* widget, 289 void GtkKeyBindingsHandler::MoveFocus(GtkWidget* widget,
288 GtkDirectionType arg1) { 290 GtkDirectionType arg1) {
289 // Just for disabling the default handler. 291 // Just for disabling the default handler.
290 } 292 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698