| 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 #include "ui/base/ime/mock_ibus_client.h" | 5 #include "ui/base/ime/mock_ibus_client.h" |
| 6 | 6 |
| 7 #include <glib-object.h> | 7 #include <glib-object.h> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 | 192 |
| 193 void MockIBusClient::Reset(IBusInputContext* context) { | 193 void MockIBusClient::Reset(IBusInputContext* context) { |
| 194 ++reset_call_count_; | 194 ++reset_call_count_; |
| 195 } | 195 } |
| 196 | 196 |
| 197 IBusClient::InputMethodType MockIBusClient::GetInputMethodType() { | 197 IBusClient::InputMethodType MockIBusClient::GetInputMethodType() { |
| 198 return input_method_type_; | 198 return input_method_type_; |
| 199 } | 199 } |
| 200 | 200 |
| 201 void MockIBusClient::SetCursorLocation(IBusInputContext* context, | 201 void MockIBusClient::SetCursorLocation(IBusInputContext* context, |
| 202 int32 x, | 202 const gfx::Rect& cursor_location, |
| 203 int32 y, | 203 const gfx::Rect& composition_head) { |
| 204 int32 w, | |
| 205 int32 h) { | |
| 206 ++set_cursor_location_call_count_; | 204 ++set_cursor_location_call_count_; |
| 207 } | 205 } |
| 208 | 206 |
| 209 void MockIBusClient::SendKeyEvent(IBusInputContext* context, | 207 void MockIBusClient::SendKeyEvent(IBusInputContext* context, |
| 210 uint32 keyval, | 208 uint32 keyval, |
| 211 uint32 keycode, | 209 uint32 keycode, |
| 212 uint32 state, | 210 uint32 state, |
| 213 PendingKeyEvent* pending_key) { | 211 PendingKeyEvent* pending_key) { |
| 214 // TODO(yusukes): implement this function. | 212 // TODO(yusukes): implement this function. |
| 215 } | 213 } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 237 destroy_proxy_call_count_ = 0; | 235 destroy_proxy_call_count_ = 0; |
| 238 set_capabilities_call_count_ = 0; | 236 set_capabilities_call_count_ = 0; |
| 239 focus_in_call_count_ = 0; | 237 focus_in_call_count_ = 0; |
| 240 focus_out_call_count_ = 0; | 238 focus_out_call_count_ = 0; |
| 241 reset_call_count_ = 0; | 239 reset_call_count_ = 0; |
| 242 set_cursor_location_call_count_ = 0; | 240 set_cursor_location_call_count_ = 0; |
| 243 } | 241 } |
| 244 | 242 |
| 245 } // namespace internal | 243 } // namespace internal |
| 246 } // namespace ui | 244 } // namespace ui |
| OLD | NEW |