| 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 CONTENT_BROWSER_RENDERER_HOST_GTK_IM_CONTEXT_WRAPPER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_GTK_IM_CONTEXT_WRAPPER_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_GTK_IM_CONTEXT_WRAPPER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_GTK_IM_CONTEXT_WRAPPER_H_ |
| 7 | 7 |
| 8 #include <gdk/gdk.h> | 8 #include <gdk/gdk.h> |
| 9 #include <pango/pango-attributes.h> | 9 #include <pango/pango-attributes.h> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 // Real code of "realize" signal handler, used for setting im context's client | 94 // Real code of "realize" signal handler, used for setting im context's client |
| 95 // window. | 95 // window. |
| 96 void HandleHostViewRealize(GtkWidget* widget); | 96 void HandleHostViewRealize(GtkWidget* widget); |
| 97 | 97 |
| 98 // Real code of "unrealize" signal handler, used for unsetting im context's | 98 // Real code of "unrealize" signal handler, used for unsetting im context's |
| 99 // client window. | 99 // client window. |
| 100 void HandleHostViewUnrealize(); | 100 void HandleHostViewUnrealize(); |
| 101 | 101 |
| 102 // Sends a fake composition key event with specified event type. A composition | 102 // Sends a fake composition key event with specified event type. A composition |
| 103 // key event is a key event with special key code 229. | 103 // key event is a key event with special key code 229. |
| 104 void SendFakeCompositionKeyEvent(WebKit::WebInputEvent::Type type); | 104 void SendFakeCompositionKeyEvent(blink::WebInputEvent::Type type); |
| 105 | 105 |
| 106 // Signal handlers of GtkIMContext object. | 106 // Signal handlers of GtkIMContext object. |
| 107 static void HandleCommitThunk(GtkIMContext* context, gchar* text, | 107 static void HandleCommitThunk(GtkIMContext* context, gchar* text, |
| 108 GtkIMContextWrapper* self); | 108 GtkIMContextWrapper* self); |
| 109 static void HandlePreeditStartThunk(GtkIMContext* context, | 109 static void HandlePreeditStartThunk(GtkIMContext* context, |
| 110 GtkIMContextWrapper* self); | 110 GtkIMContextWrapper* self); |
| 111 static void HandlePreeditChangedThunk(GtkIMContext* context, | 111 static void HandlePreeditChangedThunk(GtkIMContext* context, |
| 112 GtkIMContextWrapper* self); | 112 GtkIMContextWrapper* self); |
| 113 static void HandlePreeditEndThunk(GtkIMContext* context, | 113 static void HandlePreeditEndThunk(GtkIMContext* context, |
| 114 GtkIMContextWrapper* self); | 114 GtkIMContextWrapper* self); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 int last_key_code_; | 192 int last_key_code_; |
| 193 bool last_key_was_up_; | 193 bool last_key_was_up_; |
| 194 bool last_key_filtered_no_result_; | 194 bool last_key_filtered_no_result_; |
| 195 | 195 |
| 196 DISALLOW_COPY_AND_ASSIGN(GtkIMContextWrapper); | 196 DISALLOW_COPY_AND_ASSIGN(GtkIMContextWrapper); |
| 197 }; | 197 }; |
| 198 | 198 |
| 199 } // namespace content | 199 } // namespace content |
| 200 | 200 |
| 201 #endif // CONTENT_BROWSER_RENDERER_HOST_GTK_IM_CONTEXT_WRAPPER_H_ | 201 #endif // CONTENT_BROWSER_RENDERER_HOST_GTK_IM_CONTEXT_WRAPPER_H_ |
| OLD | NEW |