| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 110 |
| 111 // Handler of "set-anchor" signal. | 111 // Handler of "set-anchor" signal. |
| 112 static void SetAnchor(GtkTextView* text_view); | 112 static void SetAnchor(GtkTextView* text_view); |
| 113 | 113 |
| 114 // Handler of "toggle-cursor-visible" signal. | 114 // Handler of "toggle-cursor-visible" signal. |
| 115 static void ToggleCursorVisible(GtkTextView* text_view); | 115 static void ToggleCursorVisible(GtkTextView* text_view); |
| 116 | 116 |
| 117 // Handler of "toggle-overwrite" signal. | 117 // Handler of "toggle-overwrite" signal. |
| 118 static void ToggleOverwrite(GtkTextView* text_view); | 118 static void ToggleOverwrite(GtkTextView* text_view); |
| 119 | 119 |
| 120 // Handler of "show-help" signal. |
| 121 static gboolean ShowHelp(GtkWidget* widget, GtkWidgetHelpType arg1); |
| 122 |
| 123 // Handler of "move-focus" signal. |
| 124 static void MoveFocus(GtkWidget* widget, GtkDirectionType arg1); |
| 125 |
| 120 OwnedWidgetGtk handler_; | 126 OwnedWidgetGtk handler_; |
| 121 | 127 |
| 122 // Buffer to store the match results. | 128 // Buffer to store the match results. |
| 123 EditCommands edit_commands_; | 129 EditCommands edit_commands_; |
| 124 | 130 |
| 125 // Indicates if key bindings handler is enabled or not. | 131 // Indicates if key bindings handler is enabled or not. |
| 126 // It'll only be enabled if IME is enabled by webkit. | 132 // It'll only be enabled if IME is enabled by webkit. |
| 127 bool enabled_; | 133 bool enabled_; |
| 128 }; | 134 }; |
| 129 | 135 |
| 130 #endif // CHROME_BROWSER_RENDERER_HOST_GTK_KEY_BINDINGS_HANDLER_H_ | 136 #endif // CHROME_BROWSER_RENDERER_HOST_GTK_KEY_BINDINGS_HANDLER_H_ |
| OLD | NEW |