| 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 #ifndef CHROME_BROWSER_UI_LIBGTKUI_GTK_KEY_BINDINGS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_LIBGTKUI_GTK_KEY_BINDINGS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_LIBGTKUI_GTK_KEY_BINDINGS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_LIBGTKUI_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> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/event_types.h" | 13 #include "base/event_types.h" |
| 14 #include "ui/base/ime/linux/text_edit_command_auralinux.h" | 14 #include "ui/base/ime/linux/text_edit_command_auralinux.h" |
| 15 | 15 |
| 16 namespace content { | |
| 17 struct NativeWebKeyboardEvent; | |
| 18 } | |
| 19 | |
| 20 namespace ui { | 16 namespace ui { |
| 21 class Event; | 17 class Event; |
| 22 } | 18 } |
| 23 | 19 |
| 24 namespace libgtkui { | 20 namespace libgtkui { |
| 25 | 21 |
| 26 // This class is a convenience class for handling editor key bindings defined | 22 // This class is a convenience class for handling editor key bindings defined |
| 27 // in gtk keyboard theme. | 23 // in gtk keyboard theme. |
| 28 // In gtk, only GtkEntry and GtkTextView support customizing editor key bindings | 24 // In gtk, only GtkEntry and GtkTextView support customizing editor key bindings |
| 29 // through keyboard theme. And in gtk keyboard theme definition file, each key | 25 // through keyboard theme. And in gtk keyboard theme definition file, each key |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 // Buffer to store the match results. | 140 // Buffer to store the match results. |
| 145 std::vector<ui::TextEditCommandAuraLinux> edit_commands_; | 141 std::vector<ui::TextEditCommandAuraLinux> edit_commands_; |
| 146 | 142 |
| 147 // Whether the current X server has the XKeyboard extension. | 143 // Whether the current X server has the XKeyboard extension. |
| 148 bool has_xkb_; | 144 bool has_xkb_; |
| 149 }; | 145 }; |
| 150 | 146 |
| 151 } // namespace libgtkui | 147 } // namespace libgtkui |
| 152 | 148 |
| 153 #endif // CHROME_BROWSER_UI_LIBGTKUI_GTK_KEY_BINDINGS_HANDLER_H_ | 149 #endif // CHROME_BROWSER_UI_LIBGTKUI_GTK_KEY_BINDINGS_HANDLER_H_ |
| OLD | NEW |