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 "ui/base/ime/win/mock_tsf_bridge.h" | 5 #include "ui/base/ime/win/mock_tsf_bridge.h" |
6 | 6 |
7 #include "ui/base/ime/text_input_client.h" | 7 #include "ui/base/ime/text_input_client.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 | 9 |
10 namespace ui { | 10 namespace ui { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 } | 59 } |
60 | 60 |
61 base::win::ScopedComPtr<ITfThreadMgr> MockTSFBridge::GetThreadManager() { | 61 base::win::ScopedComPtr<ITfThreadMgr> MockTSFBridge::GetThreadManager() { |
62 return thread_manager_; | 62 return thread_manager_; |
63 } | 63 } |
64 | 64 |
65 TextInputClient* MockTSFBridge::GetFocusedTextInputClient() const { | 65 TextInputClient* MockTSFBridge::GetFocusedTextInputClient() const { |
66 return text_input_client_; | 66 return text_input_client_; |
67 } | 67 } |
68 | 68 |
| 69 void MockTSFBridge::OnCandidateWindowShown() { |
| 70 } |
| 71 |
| 72 void MockTSFBridge::OnCandidateWindowUpdated() { |
| 73 } |
| 74 |
| 75 void MockTSFBridge::OnCandidateWindowHidden() { |
| 76 } |
| 77 |
69 void MockTSFBridge::Reset() { | 78 void MockTSFBridge::Reset() { |
70 enable_ime_call_count_ = 0; | 79 enable_ime_call_count_ = 0; |
71 disalbe_ime_call_count_ = 0; | 80 disalbe_ime_call_count_ = 0; |
72 cancel_composition_call_count_ = 0; | 81 cancel_composition_call_count_ = 0; |
73 confirm_composition_call_count_ = 0; | 82 confirm_composition_call_count_ = 0; |
74 on_text_layout_changed_ = 0; | 83 on_text_layout_changed_ = 0; |
75 associate_focus_call_count_ = 0; | 84 associate_focus_call_count_ = 0; |
76 set_focused_client_call_count_ = 0; | 85 set_focused_client_call_count_ = 0; |
77 remove_focused_client_call_count_ = 0; | 86 remove_focused_client_call_count_ = 0; |
78 text_input_client_ = NULL; | 87 text_input_client_ = NULL; |
79 focused_window_ = NULL; | 88 focused_window_ = NULL; |
80 latest_text_input_type_ = TEXT_INPUT_TYPE_NONE; | 89 latest_text_input_type_ = TEXT_INPUT_TYPE_NONE; |
81 } | 90 } |
82 | 91 |
83 } // namespace ui | 92 } // namespace ui |
OLD | NEW |