| 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_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
| 7 | 7 |
| 8 #include <gdk/gdk.h> | 8 #include <gdk/gdk.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 // composed by an IME. | 125 // composed by an IME. |
| 126 GtkIMContext* im_context_; | 126 GtkIMContext* im_context_; |
| 127 | 127 |
| 128 // Whether or not the above GtkIMContext is composing a CJK text with an IME. | 128 // Whether or not the above GtkIMContext is composing a CJK text with an IME. |
| 129 // The GtkIMContext object sends a "preedit_start" before it starts composing | 129 // The GtkIMContext object sends a "preedit_start" before it starts composing |
| 130 // a CJK text and a "preedit_end" signal after it finishes composing it. | 130 // a CJK text and a "preedit_end" signal after it finishes composing it. |
| 131 // On the other hand, the GtkIMContext object doesn't send them when | 131 // On the other hand, the GtkIMContext object doesn't send them when |
| 132 // composing Latin texts. So, we monitor the above signals to check whether | 132 // composing Latin texts. So, we monitor the above signals to check whether |
| 133 // or not the GtkIMContext object is composing a CJK text. | 133 // or not the GtkIMContext object is composing a CJK text. |
| 134 bool im_is_composing_cjk_text_; | 134 bool im_is_composing_cjk_text_; |
| 135 |
| 136 // Represents the current modifier-key state. |
| 137 // This state is used when GtkIMContext signal handlers create Char events |
| 138 // because they don't use the GdkEventKey objects and cannot get the state. |
| 139 int im_modifier_state_; |
| 135 }; | 140 }; |
| 136 | 141 |
| 137 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ | 142 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ |
| OLD | NEW |