| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_IM_CONTEXT_WRAPPER_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_GTK_IM_CONTEXT_WRAPPER_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_GTK_IM_CONTEXT_WRAPPER_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_GTK_IM_CONTEXT_WRAPPER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gdk/gdk.h> | 9 #include <gdk/gdk.h> |
| 10 #include <pango/pango-attributes.h> | 10 #include <pango/pango-attributes.h> |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 // most recent preedit text. | 189 // most recent preedit text. |
| 190 std::vector<WebKit::WebCompositionUnderline> preedit_underlines_; | 190 std::vector<WebKit::WebCompositionUnderline> preedit_underlines_; |
| 191 | 191 |
| 192 // Whether or not the preedit has been changed since last key event. | 192 // Whether or not the preedit has been changed since last key event. |
| 193 bool is_preedit_changed_; | 193 bool is_preedit_changed_; |
| 194 | 194 |
| 195 // Stores a copy of the most recent commit text received by commit signal | 195 // Stores a copy of the most recent commit text received by commit signal |
| 196 // handler. | 196 // handler. |
| 197 string16 commit_text_; | 197 string16 commit_text_; |
| 198 | 198 |
| 199 // If it's true then the next "commit" signal will be suppressed. |
| 200 // It's only used to workaround http://crbug.com/50485. |
| 201 // TODO(suzhe): Remove it after input methods get fixed. |
| 202 bool suppress_next_commit_; |
| 203 |
| 199 DISALLOW_COPY_AND_ASSIGN(GtkIMContextWrapper); | 204 DISALLOW_COPY_AND_ASSIGN(GtkIMContextWrapper); |
| 200 }; | 205 }; |
| 201 | 206 |
| 202 #endif // CHROME_BROWSER_RENDERER_HOST_GTK_IM_CONTEXT_WRAPPER_H_ | 207 #endif // CHROME_BROWSER_RENDERER_HOST_GTK_IM_CONTEXT_WRAPPER_H_ |
| OLD | NEW |