OLD | NEW |
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/strings/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 namespace content { | 15 namespace content { |
16 | 16 |
17 GtkKeyBindingsHandler::GtkKeyBindingsHandler(GtkWidget* parent_widget) | 17 GtkKeyBindingsHandler::GtkKeyBindingsHandler(GtkWidget* parent_widget) |
18 : handler_(CreateNewHandler()) { | 18 : handler_(CreateNewHandler()) { |
19 DCHECK(GTK_IS_FIXED(parent_widget)); | 19 DCHECK(GTK_IS_FIXED(parent_widget)); |
20 // 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 |
21 // gtk_bindings_activate_event() can find correct display and keymaps from | 21 // gtk_bindings_activate_event() can find correct display and keymaps from |
22 // the |handler_| object. | 22 // the |handler_| object. |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 // Just for disabling the default handler. | 284 // Just for disabling the default handler. |
285 return FALSE; | 285 return FALSE; |
286 } | 286 } |
287 | 287 |
288 void GtkKeyBindingsHandler::MoveFocus(GtkWidget* widget, | 288 void GtkKeyBindingsHandler::MoveFocus(GtkWidget* widget, |
289 GtkDirectionType arg1) { | 289 GtkDirectionType arg1) { |
290 // Just for disabling the default handler. | 290 // Just for disabling the default handler. |
291 } | 291 } |
292 | 292 |
293 } // namespace content | 293 } // namespace content |
OLD | NEW |