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

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

Issue 11148012: Introduce TsfEventRouter. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix win build break Created 8 years, 2 months 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
« no previous file with comments | « ui/base/win/mock_tsf_bridge.h ('k') | ui/base/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/win/mock_tsf_bridge.h" 5 #include "ui/base/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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 text_input_client_ = client; 45 text_input_client_ = client;
46 } 46 }
47 47
48 void MockTsfBridge::RemoveFocusedClient(TextInputClient* client) { 48 void MockTsfBridge::RemoveFocusedClient(TextInputClient* client) {
49 ++remove_focused_client_call_count_; 49 ++remove_focused_client_call_count_;
50 DCHECK_EQ(client, text_input_client_); 50 DCHECK_EQ(client, text_input_client_);
51 text_input_client_ = NULL; 51 text_input_client_ = NULL;
52 focused_window_ = NULL; 52 focused_window_ = NULL;
53 } 53 }
54 54
55 base::win::ScopedComPtr<ITfThreadMgr> MockTsfBridge::GetThreadManager() {
56 return thread_manager_;
57 }
58
55 void MockTsfBridge::Reset() { 59 void MockTsfBridge::Reset() {
56 shutdown_call_count_ = 0; 60 shutdown_call_count_ = 0;
57 enable_ime_call_count_ = 0; 61 enable_ime_call_count_ = 0;
58 disalbe_ime_call_count_ = 0; 62 disalbe_ime_call_count_ = 0;
59 cancel_composition_call_count_ = 0; 63 cancel_composition_call_count_ = 0;
60 associate_focus_call_count_ = 0; 64 associate_focus_call_count_ = 0;
61 set_focused_client_call_count_ = 0; 65 set_focused_client_call_count_ = 0;
62 remove_focused_client_call_count_ = 0; 66 remove_focused_client_call_count_ = 0;
63 text_input_client_ = NULL; 67 text_input_client_ = NULL;
64 focused_window_ = NULL; 68 focused_window_ = NULL;
65 latest_text_input_type_ = TEXT_INPUT_TYPE_NONE; 69 latest_text_input_type_ = TEXT_INPUT_TYPE_NONE;
66 } 70 }
67 71
68 } // namespace ui 72 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/win/mock_tsf_bridge.h ('k') | ui/base/win/tsf_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698