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

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

Issue 7669040: content: Move render_widget_host_view_gtk to content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chromeos fix. Created 9 years, 4 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 "chrome/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/common/native_web_keyboard_event.h" 13 #include "content/common/native_web_keyboard_event.h"
14 14
15 GtkKeyBindingsHandler::GtkKeyBindingsHandler(GtkWidget* parent_widget) 15 GtkKeyBindingsHandler::GtkKeyBindingsHandler(GtkWidget* parent_widget)
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 void GtkKeyBindingsHandler::MoveFocus(GtkWidget* widget, 316 void GtkKeyBindingsHandler::MoveFocus(GtkWidget* widget,
317 GtkDirectionType arg1) { 317 GtkDirectionType arg1) {
318 // Just for disabling the default handler. 318 // Just for disabling the default handler.
319 #if !GTK_CHECK_VERSION(2, 14, 0) 319 #if !GTK_CHECK_VERSION(2, 14, 0)
320 // Before gtk 2.14.0, there is no way to override a non-virtual default signal 320 // Before gtk 2.14.0, there is no way to override a non-virtual default signal
321 // handler, so we need stop the signal emission explicitly to prevent the 321 // handler, so we need stop the signal emission explicitly to prevent the
322 // default handler from being executed. 322 // default handler from being executed.
323 g_signal_stop_emission_by_name(widget, "move-focus"); 323 g_signal_stop_emission_by_name(widget, "move-focus");
324 #endif 324 #endif
325 } 325 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698