| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |