| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <X11/Xlib.h> | 5 #include <X11/Xlib.h> |
| 6 #undef Bool | 6 #undef Bool |
| 7 #undef FocusIn | 7 #undef FocusIn |
| 8 #undef FocusOut | 8 #undef FocusOut |
| 9 #undef None | 9 #undef None |
| 10 | 10 |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 return true; | 315 return true; |
| 316 } | 316 } |
| 317 virtual void OnInputMethodChanged() OVERRIDE { | 317 virtual void OnInputMethodChanged() OVERRIDE { |
| 318 ++on_input_method_changed_call_count_; | 318 ++on_input_method_changed_call_count_; |
| 319 } | 319 } |
| 320 virtual bool ChangeTextDirectionAndLayoutAlignment( | 320 virtual bool ChangeTextDirectionAndLayoutAlignment( |
| 321 base::i18n::TextDirection direction) OVERRIDE { return false; } | 321 base::i18n::TextDirection direction) OVERRIDE { return false; } |
| 322 virtual void ExtendSelectionAndDelete(size_t before, | 322 virtual void ExtendSelectionAndDelete(size_t before, |
| 323 size_t after) OVERRIDE { } | 323 size_t after) OVERRIDE { } |
| 324 virtual void EnsureCaretInRect(const gfx::Rect& rect) OVERRIDE { } | 324 virtual void EnsureCaretInRect(const gfx::Rect& rect) OVERRIDE { } |
| 325 virtual void OnCandidateWindowShow() OVERRIDE { } |
| 326 virtual void OnCandidateWindowUpdate() OVERRIDE { } |
| 327 virtual void OnCandidateWindowHide() OVERRIDE { } |
| 325 | 328 |
| 326 bool HasNativeEvent() const { | 329 bool HasNativeEvent() const { |
| 327 base::NativeEvent empty; | 330 base::NativeEvent empty; |
| 328 std::memset(&empty, 0, sizeof(empty)); | 331 std::memset(&empty, 0, sizeof(empty)); |
| 329 return !!std::memcmp(&dispatched_native_event_, | 332 return !!std::memcmp(&dispatched_native_event_, |
| 330 &empty, | 333 &empty, |
| 331 sizeof(dispatched_native_event_)); | 334 sizeof(dispatched_native_event_)); |
| 332 } | 335 } |
| 333 | 336 |
| 334 void ResetFlags() { | 337 void ResetFlags() { |
| (...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1026 ime_->ResetContext(); | 1029 ime_->ResetContext(); |
| 1027 | 1030 |
| 1028 // Do callback. | 1031 // Do callback. |
| 1029 mock_ime_engine_handler_->last_passed_callback().Run(true); | 1032 mock_ime_engine_handler_->last_passed_callback().Run(true); |
| 1030 | 1033 |
| 1031 EXPECT_EQ(0, ime_->process_key_event_post_ime_call_count()); | 1034 EXPECT_EQ(0, ime_->process_key_event_post_ime_call_count()); |
| 1032 } | 1035 } |
| 1033 // TODO(nona): Introduce ProcessKeyEventPostIME tests(crbug.com/156593). | 1036 // TODO(nona): Introduce ProcessKeyEventPostIME tests(crbug.com/156593). |
| 1034 | 1037 |
| 1035 } // namespace ui | 1038 } // namespace ui |
| OLD | NEW |