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

Side by Side Diff: chromeos/dbus/ibus/mock_ibus_client.cc

Issue 10692123: Implement RegisterComponent method call. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: CL for review Created 8 years, 5 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
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 "chromeos/dbus/ibus/mock_ibus_client.h" 5 #include "chromeos/dbus/ibus/mock_ibus_client.h"
6 6
7 namespace chromeos { 7 namespace chromeos {
8 8
9 MockIBusClient::MockIBusClient() 9 MockIBusClient::MockIBusClient()
10 : create_input_context_call_count_(0) { 10 : create_input_context_call_count_(0) {
11 } 11 }
12 12
13 MockIBusClient::~MockIBusClient() {} 13 MockIBusClient::~MockIBusClient() {}
14 14
15 void MockIBusClient::CreateInputContext( 15 void MockIBusClient::CreateInputContext(
16 const std::string& client_name, 16 const std::string& client_name,
17 const CreateInputContextCallback& callback, 17 const CreateInputContextCallback& callback,
18 const ErrorCallback& error_callback) { 18 const ErrorCallback& error_callback) {
19 create_input_context_call_count_ ++; 19 create_input_context_call_count_ ++;
20 if (!create_input_context_handler_.is_null()) 20 if (!create_input_context_handler_.is_null())
21 create_input_context_handler_.Run(client_name, callback, error_callback); 21 create_input_context_handler_.Run(client_name, callback, error_callback);
22 } 22 }
23 23
24 void MockIBusClient::RegisterComponent(
25 const ibus::IBusComponent& ibus_component,
26 const RegisterComponentCallback& callback,
27 const ErrorCallback& error_callback) {
28 register_component_call_count_ ++;
29 if (!register_component_handler_.is_null())
30 register_component_handler_.Run(ibus_component, callback, error_callback);
31 }
32
24 } // namespace chromeos 33 } // namespace chromeos
OLDNEW
« chromeos/dbus/ibus/mock_ibus_client.h ('K') | « chromeos/dbus/ibus/mock_ibus_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698