| 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 base::i18n::TextDirection direction) override { | 309 base::i18n::TextDirection direction) override { |
| 310 return false; | 310 return false; |
| 311 } | 311 } |
| 312 void ExtendSelectionAndDelete(size_t before, size_t after) override {} | 312 void ExtendSelectionAndDelete(size_t before, size_t after) override {} |
| 313 void EnsureCaretInRect(const gfx::Rect& rect) override {} | 313 void EnsureCaretInRect(const gfx::Rect& rect) override {} |
| 314 void OnCandidateWindowShown() override {} | 314 void OnCandidateWindowShown() override {} |
| 315 void OnCandidateWindowUpdated() override {} | 315 void OnCandidateWindowUpdated() override {} |
| 316 void OnCandidateWindowHidden() override {} | 316 void OnCandidateWindowHidden() override {} |
| 317 bool IsEditingCommandEnabled(int command_id) override { return false; } | 317 bool IsEditingCommandEnabled(int command_id) override { return false; } |
| 318 void ExecuteEditingCommand(int command_id) override {} | 318 void ExecuteEditingCommand(int command_id) override {} |
| 319 bool HandleAsKeyEventOnly(const ui::KeyEvent& key_event) override { |
| 320 return false; |
| 321 } |
| 319 | 322 |
| 320 bool HasNativeEvent() const { | 323 bool HasNativeEvent() const { |
| 321 return dispatched_key_event_.HasNativeEvent(); | 324 return dispatched_key_event_.HasNativeEvent(); |
| 322 } | 325 } |
| 323 | 326 |
| 324 void ResetFlags() { | 327 void ResetFlags() { |
| 325 dispatched_key_event_ = ui::KeyEvent(ui::ET_UNKNOWN, ui::VKEY_UNKNOWN, | 328 dispatched_key_event_ = ui::KeyEvent(ui::ET_UNKNOWN, ui::VKEY_UNKNOWN, |
| 326 ui::EF_NONE); | 329 ui::EF_NONE); |
| 327 | 330 |
| 328 composition_text_.Clear(); | 331 composition_text_.Clear(); |
| (...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1049 ime_->ResetContext(); | 1052 ime_->ResetContext(); |
| 1050 | 1053 |
| 1051 // Do callback. | 1054 // Do callback. |
| 1052 mock_ime_engine_handler_->last_passed_callback().Run(true); | 1055 mock_ime_engine_handler_->last_passed_callback().Run(true); |
| 1053 | 1056 |
| 1054 EXPECT_EQ(0, ime_->process_key_event_post_ime_call_count()); | 1057 EXPECT_EQ(0, ime_->process_key_event_post_ime_call_count()); |
| 1055 } | 1058 } |
| 1056 // TODO(nona): Introduce ProcessKeyEventPostIME tests(crbug.com/156593). | 1059 // TODO(nona): Introduce ProcessKeyEventPostIME tests(crbug.com/156593). |
| 1057 | 1060 |
| 1058 } // namespace ui | 1061 } // namespace ui |
| OLD | NEW |