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

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

Issue 145283006: Remove ui::TextInputClient::GetAttachedWindow Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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
« no previous file with comments | « ui/base/ime/dummy_text_input_client.cc ('k') | ui/base/ime/text_input_client.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_chromeos.h" 5 #include "ui/base/ime/input_method_chromeos.h"
6 6
7 #include <X11/Xlib.h> 7 #include <X11/Xlib.h>
8 #undef Bool 8 #undef Bool
9 #undef FocusIn 9 #undef FocusIn
10 #undef FocusOut 10 #undef FocusOut
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 virtual void ClearCompositionText() OVERRIDE { 251 virtual void ClearCompositionText() OVERRIDE {
252 composition_text_.Clear(); 252 composition_text_.Clear();
253 } 253 }
254 virtual void InsertText(const base::string16& text) OVERRIDE { 254 virtual void InsertText(const base::string16& text) OVERRIDE {
255 inserted_text_ = text; 255 inserted_text_ = text;
256 } 256 }
257 virtual void InsertChar(base::char16 ch, int flags) OVERRIDE { 257 virtual void InsertChar(base::char16 ch, int flags) OVERRIDE {
258 inserted_char_ = ch; 258 inserted_char_ = ch;
259 inserted_char_flags_ = flags; 259 inserted_char_flags_ = flags;
260 } 260 }
261 virtual gfx::NativeWindow GetAttachedWindow() const OVERRIDE {
262 return static_cast<gfx::NativeWindow>(NULL);
263 }
264 virtual TextInputType GetTextInputType() const OVERRIDE { 261 virtual TextInputType GetTextInputType() const OVERRIDE {
265 return input_type_; 262 return input_type_;
266 } 263 }
267 virtual TextInputMode GetTextInputMode() const OVERRIDE { 264 virtual TextInputMode GetTextInputMode() const OVERRIDE {
268 return input_mode_; 265 return input_mode_;
269 } 266 }
270 virtual bool CanComposeInline() const OVERRIDE { 267 virtual bool CanComposeInline() const OVERRIDE {
271 return can_compose_inline_; 268 return can_compose_inline_;
272 } 269 }
273 virtual gfx::Rect GetCaretBounds() const OVERRIDE { 270 virtual gfx::Rect GetCaretBounds() const OVERRIDE {
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 ime_->ResetContext(); 1013 ime_->ResetContext();
1017 1014
1018 // Do callback. 1015 // Do callback.
1019 mock_ime_engine_handler_->last_passed_callback().Run(true); 1016 mock_ime_engine_handler_->last_passed_callback().Run(true);
1020 1017
1021 EXPECT_EQ(0, ime_->process_key_event_post_ime_call_count()); 1018 EXPECT_EQ(0, ime_->process_key_event_post_ime_call_count());
1022 } 1019 }
1023 // TODO(nona): Introduce ProcessKeyEventPostIME tests(crbug.com/156593). 1020 // TODO(nona): Introduce ProcessKeyEventPostIME tests(crbug.com/156593).
1024 1021
1025 } // namespace ui 1022 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/ime/dummy_text_input_client.cc ('k') | ui/base/ime/text_input_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698