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 #ifndef UI_BASE_IME_WIN_MOCK_TSF_BRIDGE_H_ | 5 #ifndef UI_BASE_IME_WIN_MOCK_TSF_BRIDGE_H_ |
6 #define UI_BASE_IME_WIN_MOCK_TSF_BRIDGE_H_ | 6 #define UI_BASE_IME_WIN_MOCK_TSF_BRIDGE_H_ |
7 | 7 |
8 #include <msctf.h> | 8 #include <msctf.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 TextInputClient* text_input_clinet() const { return text_input_client_; } | 71 TextInputClient* text_input_clinet() const { return text_input_client_; } |
72 | 72 |
73 // Returns currently focused window handle. | 73 // Returns currently focused window handle. |
74 HWND focused_window() const { return focused_window_; } | 74 HWND focused_window() const { return focused_window_; } |
75 | 75 |
76 // Returns latest text input type. | 76 // Returns latest text input type. |
77 TextInputType latest_text_iput_type() const { | 77 TextInputType latest_text_iput_type() const { |
78 return latest_text_input_type_; | 78 return latest_text_input_type_; |
79 } | 79 } |
80 | 80 |
| 81 virtual void OnCandidateWindowShow() OVERRIDE {} |
| 82 virtual void OnCandidateWindowUpdate() OVERRIDE {} |
| 83 virtual void OnCandidateWindowHide() OVERRIDE {} |
| 84 |
81 private: | 85 private: |
82 int enable_ime_call_count_; | 86 int enable_ime_call_count_; |
83 int disalbe_ime_call_count_; | 87 int disalbe_ime_call_count_; |
84 int cancel_composition_call_count_; | 88 int cancel_composition_call_count_; |
85 int confirm_composition_call_count_; | 89 int confirm_composition_call_count_; |
86 int on_text_layout_changed_; | 90 int on_text_layout_changed_; |
87 int associate_focus_call_count_; | 91 int associate_focus_call_count_; |
88 int set_focused_client_call_count_; | 92 int set_focused_client_call_count_; |
89 int remove_focused_client_call_count_; | 93 int remove_focused_client_call_count_; |
90 TextInputClient* text_input_client_; | 94 TextInputClient* text_input_client_; |
91 HWND focused_window_; | 95 HWND focused_window_; |
92 TextInputType latest_text_input_type_; | 96 TextInputType latest_text_input_type_; |
93 base::win::ScopedComPtr<ITfThreadMgr> thread_manager_; | 97 base::win::ScopedComPtr<ITfThreadMgr> thread_manager_; |
94 | 98 |
95 DISALLOW_COPY_AND_ASSIGN(MockTSFBridge); | 99 DISALLOW_COPY_AND_ASSIGN(MockTSFBridge); |
96 }; | 100 }; |
97 | 101 |
98 } // namespace ui | 102 } // namespace ui |
99 | 103 |
100 #endif // UI_BASE_IME_WIN_MOCK_TSF_BRIDGE_H_ | 104 #endif // UI_BASE_IME_WIN_MOCK_TSF_BRIDGE_H_ |
OLD | NEW |