| OLD | NEW |
| 1 // Copyright (c) 2006-2009 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 #ifndef CHROME_BROWSER_RENDERER_HOST_GTK_KEY_BINDINGS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_GTK_KEY_BINDINGS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_GTK_KEY_BINDINGS_HANDLER_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_GTK_KEY_BINDINGS_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "chrome/browser/gtk/owned_widget_gtk.h" | 13 #include "chrome/browser/ui/gtk/owned_widget_gtk.h" |
| 14 #include "chrome/common/edit_command.h" | 14 #include "chrome/common/edit_command.h" |
| 15 | 15 |
| 16 struct NativeWebKeyboardEvent; | 16 struct NativeWebKeyboardEvent; |
| 17 | 17 |
| 18 // This class is a convenience class for handling editor key bindings defined | 18 // This class is a convenience class for handling editor key bindings defined |
| 19 // in gtk keyboard theme. | 19 // in gtk keyboard theme. |
| 20 // In gtk, only GtkEntry and GtkTextView support customizing editor key bindings | 20 // In gtk, only GtkEntry and GtkTextView support customizing editor key bindings |
| 21 // through keyboard theme. And in gtk keyboard theme definition file, each key | 21 // through keyboard theme. And in gtk keyboard theme definition file, each key |
| 22 // binding must be bound to a specific class or object. So existing keyboard | 22 // binding must be bound to a specific class or object. So existing keyboard |
| 23 // themes only define editor key bindings exactly for GtkEntry and GtkTextView. | 23 // themes only define editor key bindings exactly for GtkEntry and GtkTextView. |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // Handler of "move-focus" signal. | 119 // Handler of "move-focus" signal. |
| 120 static void MoveFocus(GtkWidget* widget, GtkDirectionType arg1); | 120 static void MoveFocus(GtkWidget* widget, GtkDirectionType arg1); |
| 121 | 121 |
| 122 OwnedWidgetGtk handler_; | 122 OwnedWidgetGtk handler_; |
| 123 | 123 |
| 124 // Buffer to store the match results. | 124 // Buffer to store the match results. |
| 125 EditCommands edit_commands_; | 125 EditCommands edit_commands_; |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 #endif // CHROME_BROWSER_RENDERER_HOST_GTK_KEY_BINDINGS_HANDLER_H_ | 128 #endif // CHROME_BROWSER_RENDERER_HOST_GTK_KEY_BINDINGS_HANDLER_H_ |
| OLD | NEW |