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

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

Issue 22401002: Add GetTextInputMode function to TextInputClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reorder declaration Created 7 years, 4 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
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 <X11/Xlib.h> 5 #include <X11/Xlib.h>
6 #undef Bool 6 #undef Bool
7 #undef FocusIn 7 #undef FocusIn
8 #undef FocusOut 8 #undef FocusOut
9 #undef None 9 #undef None
10 10
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 virtual void InsertChar(char16 ch, int flags) OVERRIDE { 395 virtual void InsertChar(char16 ch, int flags) OVERRIDE {
396 inserted_char_ = ch; 396 inserted_char_ = ch;
397 inserted_char_flags_ = flags; 397 inserted_char_flags_ = flags;
398 } 398 }
399 virtual gfx::NativeWindow GetAttachedWindow() const OVERRIDE { 399 virtual gfx::NativeWindow GetAttachedWindow() const OVERRIDE {
400 return static_cast<gfx::NativeWindow>(NULL); 400 return static_cast<gfx::NativeWindow>(NULL);
401 } 401 }
402 virtual TextInputType GetTextInputType() const OVERRIDE { 402 virtual TextInputType GetTextInputType() const OVERRIDE {
403 return input_type_; 403 return input_type_;
404 } 404 }
405 virtual TextInputMode GetTextInputMode() const OVERRIDE {
406 return TEXT_INPUT_MODE_DEFAULT;
407 }
405 virtual bool CanComposeInline() const OVERRIDE { 408 virtual bool CanComposeInline() const OVERRIDE {
406 return can_compose_inline_; 409 return can_compose_inline_;
407 } 410 }
408 virtual gfx::Rect GetCaretBounds() OVERRIDE { 411 virtual gfx::Rect GetCaretBounds() OVERRIDE {
409 return caret_bounds_; 412 return caret_bounds_;
410 } 413 }
411 virtual bool GetCompositionCharacterBounds(uint32 index, 414 virtual bool GetCompositionCharacterBounds(uint32 index,
412 gfx::Rect* rect) OVERRIDE { 415 gfx::Rect* rect) OVERRIDE {
413 return false; 416 return false;
414 } 417 }
(...skipping 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after
1699 1702
1700 // Do callback. 1703 // Do callback.
1701 success_consume_handler.RunCallback(KEYEVENT_CONSUME); 1704 success_consume_handler.RunCallback(KEYEVENT_CONSUME);
1702 1705
1703 EXPECT_EQ(0, ime_->process_key_event_post_ime_call_count()); 1706 EXPECT_EQ(0, ime_->process_key_event_post_ime_call_count());
1704 } 1707 }
1705 1708
1706 // TODO(nona): Introduce ProcessKeyEventPostIME tests(crbug.com/156593). 1709 // TODO(nona): Introduce ProcessKeyEventPostIME tests(crbug.com/156593).
1707 1710
1708 } // namespace ui 1711 } // namespace ui
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | ui/base/ime/text_input_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698