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

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

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/win/mock_tsf_bridge.h ('k') | ui/base/ime/win/tsf_bridge.h » ('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 #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
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
OLDNEW
« no previous file with comments | « ui/base/ime/win/mock_tsf_bridge.h ('k') | ui/base/ime/win/tsf_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698