Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: ui/base/ime/win/mock_tsf_bridge.h

Issue 80583002: [FYI] All-in-one OnCandidateWindow{Show,Update,Hide} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/base/ime/input_method_tsf.cc ('k') | ui/base/ime/win/mock_tsf_bridge.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 11 matching lines...) Expand all
22 // TSFBridge: 22 // TSFBridge:
23 virtual bool CancelComposition() OVERRIDE; 23 virtual bool CancelComposition() OVERRIDE;
24 virtual bool ConfirmComposition() OVERRIDE; 24 virtual bool ConfirmComposition() OVERRIDE;
25 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE; 25 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE;
26 virtual void OnTextLayoutChanged() OVERRIDE; 26 virtual void OnTextLayoutChanged() OVERRIDE;
27 virtual void SetFocusedClient(HWND focused_window, 27 virtual void SetFocusedClient(HWND focused_window,
28 TextInputClient* client) OVERRIDE; 28 TextInputClient* client) OVERRIDE;
29 virtual void RemoveFocusedClient(TextInputClient* client) OVERRIDE; 29 virtual void RemoveFocusedClient(TextInputClient* client) OVERRIDE;
30 virtual base::win::ScopedComPtr<ITfThreadMgr> GetThreadManager() OVERRIDE; 30 virtual base::win::ScopedComPtr<ITfThreadMgr> GetThreadManager() OVERRIDE;
31 virtual TextInputClient* GetFocusedTextInputClient() const OVERRIDE; 31 virtual TextInputClient* GetFocusedTextInputClient() const OVERRIDE;
32 virtual void OnCandidateWindowShown() OVERRIDE;
33 virtual void OnCandidateWindowUpdated() OVERRIDE;
34 virtual void OnCandidateWindowHidden() OVERRIDE;
32 35
33 // Resets MockTSFBridge state including function call counter. 36 // Resets MockTSFBridge state including function call counter.
34 void Reset(); 37 void Reset();
35 38
36 // Call count of EnableIME(). 39 // Call count of EnableIME().
37 int enable_ime_call_count() const { return enable_ime_call_count_; } 40 int enable_ime_call_count() const { return enable_ime_call_count_; }
38 41
39 // Call count of DisableIME(). 42 // Call count of DisableIME().
40 int disalbe_ime_call_count() const { return disalbe_ime_call_count_; } 43 int disalbe_ime_call_count() const { return disalbe_ime_call_count_; }
41 44
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 HWND focused_window_; 94 HWND focused_window_;
92 TextInputType latest_text_input_type_; 95 TextInputType latest_text_input_type_;
93 base::win::ScopedComPtr<ITfThreadMgr> thread_manager_; 96 base::win::ScopedComPtr<ITfThreadMgr> thread_manager_;
94 97
95 DISALLOW_COPY_AND_ASSIGN(MockTSFBridge); 98 DISALLOW_COPY_AND_ASSIGN(MockTSFBridge);
96 }; 99 };
97 100
98 } // namespace ui 101 } // namespace ui
99 102
100 #endif // UI_BASE_IME_WIN_MOCK_TSF_BRIDGE_H_ 103 #endif // UI_BASE_IME_WIN_MOCK_TSF_BRIDGE_H_
OLDNEW
« no previous file with comments | « ui/base/ime/input_method_tsf.cc ('k') | ui/base/ime/win/mock_tsf_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698