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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 virtual void ExtendSelectionAndDelete(size_t before, | 326 virtual void ExtendSelectionAndDelete(size_t before, |
327 size_t after) override {} | 327 size_t after) override {} |
328 virtual void EnsureCaretInRect(const gfx::Rect& rect) override {} | 328 virtual void EnsureCaretInRect(const gfx::Rect& rect) override {} |
329 virtual void OnCandidateWindowShown() override {} | 329 virtual void OnCandidateWindowShown() override {} |
330 virtual void OnCandidateWindowUpdated() override {} | 330 virtual void OnCandidateWindowUpdated() override {} |
331 virtual void OnCandidateWindowHidden() override {} | 331 virtual void OnCandidateWindowHidden() override {} |
332 virtual bool IsEditingCommandEnabled(int command_id) override { | 332 virtual bool IsEditingCommandEnabled(int command_id) override { |
333 return false; | 333 return false; |
334 } | 334 } |
335 virtual void ExecuteEditingCommand(int command_id) override {} | 335 virtual void ExecuteEditingCommand(int command_id) override {} |
| 336 virtual void OnKeyboardBoundsUnchanged() override {} |
336 | 337 |
337 bool HasNativeEvent() const { | 338 bool HasNativeEvent() const { |
338 return dispatched_key_event_.HasNativeEvent(); | 339 return dispatched_key_event_.HasNativeEvent(); |
339 } | 340 } |
340 | 341 |
341 void ResetFlags() { | 342 void ResetFlags() { |
342 dispatched_key_event_ = ui::KeyEvent(ui::ET_UNKNOWN, ui::VKEY_UNKNOWN, | 343 dispatched_key_event_ = ui::KeyEvent(ui::ET_UNKNOWN, ui::VKEY_UNKNOWN, |
343 ui::EF_NONE); | 344 ui::EF_NONE); |
344 | 345 |
345 composition_text_.Clear(); | 346 composition_text_.Clear(); |
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1066 ime_->ResetContext(); | 1067 ime_->ResetContext(); |
1067 | 1068 |
1068 // Do callback. | 1069 // Do callback. |
1069 mock_ime_engine_handler_->last_passed_callback().Run(true); | 1070 mock_ime_engine_handler_->last_passed_callback().Run(true); |
1070 | 1071 |
1071 EXPECT_EQ(0, ime_->process_key_event_post_ime_call_count()); | 1072 EXPECT_EQ(0, ime_->process_key_event_post_ime_call_count()); |
1072 } | 1073 } |
1073 // TODO(nona): Introduce ProcessKeyEventPostIME tests(crbug.com/156593). | 1074 // TODO(nona): Introduce ProcessKeyEventPostIME tests(crbug.com/156593). |
1074 | 1075 |
1075 } // namespace ui | 1076 } // namespace ui |
OLD | NEW |