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

Side by Side Diff: ui/base/ime/input_method_ibus.cc

Issue 11183049: Changes on the Input method for metro ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 | « ui/base/ime/input_method_ibus.h ('k') | ui/base/ime/mock_input_method.h » ('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) 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 #include "ui/base/ime/input_method_ibus.h" 5 #include "ui/base/ime/input_method_ibus.h"
6 6
7 #include <X11/X.h> 7 #include <X11/X.h>
8 #include <X11/Xlib.h> 8 #include <X11/Xlib.h>
9 #include <X11/Xutil.h> 9 #include <X11/Xutil.h>
10 #undef FocusIn 10 #undef FocusIn
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 base::Bind(&InputMethodIBus::ProcessKeyEventDone, 270 base::Bind(&InputMethodIBus::ProcessKeyEventDone,
271 base::Unretained(pending_key)), 271 base::Unretained(pending_key)),
272 base::Bind(&InputMethodIBus::ProcessKeyEventFail, 272 base::Bind(&InputMethodIBus::ProcessKeyEventFail,
273 base::Unretained(pending_key))); 273 base::Unretained(pending_key)));
274 274
275 // We don't want to suppress the result generated by this key event, but it 275 // We don't want to suppress the result generated by this key event, but it
276 // may cause problem. See comment in ResetContext() method. 276 // may cause problem. See comment in ResetContext() method.
277 suppress_next_result_ = false; 277 suppress_next_result_ = false;
278 } 278 }
279 279
280 void InputMethodIBus::DispatchFabricatedKeyEvent(const ui::KeyEvent& event) {
281 }
282
280 void InputMethodIBus::OnTextInputTypeChanged(const TextInputClient* client) { 283 void InputMethodIBus::OnTextInputTypeChanged(const TextInputClient* client) {
281 if (IsContextReady() && IsTextInputClientFocused(client)) { 284 if (IsContextReady() && IsTextInputClientFocused(client)) {
282 ResetContext(); 285 ResetContext();
283 UpdateContextFocusState(); 286 UpdateContextFocusState();
284 } 287 }
285 InputMethodBase::OnTextInputTypeChanged(client); 288 InputMethodBase::OnTextInputTypeChanged(client);
286 } 289 }
287 290
288 void InputMethodIBus::OnCaretBoundsChanged(const TextInputClient* client) { 291 void InputMethodIBus::OnCaretBoundsChanged(const TextInputClient* client) {
289 if (!context_focused_ || !IsTextInputClientFocused(client)) 292 if (!context_focused_ || !IsTextInputClientFocused(client))
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 } 1001 }
999 1002
1000 // Use a black thin underline by default. 1003 // Use a black thin underline by default.
1001 if (out_composition->underlines.empty()) { 1004 if (out_composition->underlines.empty()) {
1002 out_composition->underlines.push_back(CompositionUnderline( 1005 out_composition->underlines.push_back(CompositionUnderline(
1003 0, length, SK_ColorBLACK, false /* thick */)); 1006 0, length, SK_ColorBLACK, false /* thick */));
1004 } 1007 }
1005 } 1008 }
1006 1009
1007 } // namespace ui 1010 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/ime/input_method_ibus.h ('k') | ui/base/ime/mock_input_method.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698