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

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

Issue 11343017: Move remaining files in content\browser\renderer_host to content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac 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; 15 namespace content {
16 using content::EditCommands;
17 using content::NativeWebKeyboardEvent;
18 16
19 GtkKeyBindingsHandler::GtkKeyBindingsHandler(GtkWidget* parent_widget) 17 GtkKeyBindingsHandler::GtkKeyBindingsHandler(GtkWidget* parent_widget)
20 : handler_(CreateNewHandler()) { 18 : handler_(CreateNewHandler()) {
21 DCHECK(GTK_IS_FIXED(parent_widget)); 19 DCHECK(GTK_IS_FIXED(parent_widget));
22 // We need add the |handler_| object into gtk widget hierarchy, so that 20 // We need add the |handler_| object into gtk widget hierarchy, so that
23 // gtk_bindings_activate_event() can find correct display and keymaps from 21 // gtk_bindings_activate_event() can find correct display and keymaps from
24 // the |handler_| object. 22 // the |handler_| object.
25 gtk_fixed_put(GTK_FIXED(parent_widget), handler_.get(), -1, -1); 23 gtk_fixed_put(GTK_FIXED(parent_widget), handler_.get(), -1, -1);
26 } 24 }
27 25
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 gboolean GtkKeyBindingsHandler::ShowHelp(GtkWidget* widget, 281 gboolean GtkKeyBindingsHandler::ShowHelp(GtkWidget* widget,
284 GtkWidgetHelpType arg1) { 282 GtkWidgetHelpType arg1) {
285 // Just for disabling the default handler. 283 // Just for disabling the default handler.
286 return FALSE; 284 return FALSE;
287 } 285 }
288 286
289 void GtkKeyBindingsHandler::MoveFocus(GtkWidget* widget, 287 void GtkKeyBindingsHandler::MoveFocus(GtkWidget* widget,
290 GtkDirectionType arg1) { 288 GtkDirectionType arg1) {
291 // Just for disabling the default handler. 289 // Just for disabling the default handler.
292 } 290 }
291
292 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698