Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view_gtk.h

Issue 151010: A quick fix for Issue 15531 and 10953... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_widget_host_view_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_widget_host_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698