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

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

Issue 302293003: MacViews: Extend TextInputClient protocol with support for editing commands. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, fixes for ben Created 6 years, 6 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/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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 ++on_input_method_changed_call_count_; 309 ++on_input_method_changed_call_count_;
310 } 310 }
311 virtual bool ChangeTextDirectionAndLayoutAlignment( 311 virtual bool ChangeTextDirectionAndLayoutAlignment(
312 base::i18n::TextDirection direction) OVERRIDE { return false; } 312 base::i18n::TextDirection direction) OVERRIDE { return false; }
313 virtual void ExtendSelectionAndDelete(size_t before, 313 virtual void ExtendSelectionAndDelete(size_t before,
314 size_t after) OVERRIDE {} 314 size_t after) OVERRIDE {}
315 virtual void EnsureCaretInRect(const gfx::Rect& rect) OVERRIDE {} 315 virtual void EnsureCaretInRect(const gfx::Rect& rect) OVERRIDE {}
316 virtual void OnCandidateWindowShown() OVERRIDE {} 316 virtual void OnCandidateWindowShown() OVERRIDE {}
317 virtual void OnCandidateWindowUpdated() OVERRIDE {} 317 virtual void OnCandidateWindowUpdated() OVERRIDE {}
318 virtual void OnCandidateWindowHidden() OVERRIDE {} 318 virtual void OnCandidateWindowHidden() OVERRIDE {}
319 virtual bool IsEditingCommandEnabled(int command_id) OVERRIDE {
320 return false;
321 }
322 virtual void ExecuteEditingCommand(int command_id) OVERRIDE {}
319 323
320 bool HasNativeEvent() const { 324 bool HasNativeEvent() const {
321 return dispatched_key_event_.HasNativeEvent(); 325 return dispatched_key_event_.HasNativeEvent();
322 } 326 }
323 327
324 void ResetFlags() { 328 void ResetFlags() {
325 dispatched_key_event_ = ui::KeyEvent(ui::ET_UNKNOWN, ui::VKEY_UNKNOWN, 0, 329 dispatched_key_event_ = ui::KeyEvent(ui::ET_UNKNOWN, ui::VKEY_UNKNOWN, 0,
326 false); 330 false);
327 331
328 composition_text_.Clear(); 332 composition_text_.Clear();
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
1014 ime_->ResetContext(); 1018 ime_->ResetContext();
1015 1019
1016 // Do callback. 1020 // Do callback.
1017 mock_ime_engine_handler_->last_passed_callback().Run(true); 1021 mock_ime_engine_handler_->last_passed_callback().Run(true);
1018 1022
1019 EXPECT_EQ(0, ime_->process_key_event_post_ime_call_count()); 1023 EXPECT_EQ(0, ime_->process_key_event_post_ime_call_count());
1020 } 1024 }
1021 // TODO(nona): Introduce ProcessKeyEventPostIME tests(crbug.com/156593). 1025 // TODO(nona): Introduce ProcessKeyEventPostIME tests(crbug.com/156593).
1022 1026
1023 } // namespace ui 1027 } // 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