| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 int32 x, |
| 203 int32 y, | 203 int32 y, |
| 204 int32 w, | 204 int32 w, |
| 205 int32 h) { | 205 int32 h, |
| 206 const gfx::Rect& composition_head) { |
| 206 ++set_cursor_location_call_count_; | 207 ++set_cursor_location_call_count_; |
| 207 } | 208 } |
| 208 | 209 |
| 209 void MockIBusClient::SendKeyEvent(IBusInputContext* context, | 210 void MockIBusClient::SendKeyEvent(IBusInputContext* context, |
| 210 uint32 keyval, | 211 uint32 keyval, |
| 211 uint32 keycode, | 212 uint32 keycode, |
| 212 uint32 state, | 213 uint32 state, |
| 213 PendingKeyEvent* pending_key) { | 214 PendingKeyEvent* pending_key) { |
| 214 // TODO(yusukes): implement this function. | 215 // TODO(yusukes): implement this function. |
| 215 } | 216 } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 237 destroy_proxy_call_count_ = 0; | 238 destroy_proxy_call_count_ = 0; |
| 238 set_capabilities_call_count_ = 0; | 239 set_capabilities_call_count_ = 0; |
| 239 focus_in_call_count_ = 0; | 240 focus_in_call_count_ = 0; |
| 240 focus_out_call_count_ = 0; | 241 focus_out_call_count_ = 0; |
| 241 reset_call_count_ = 0; | 242 reset_call_count_ = 0; |
| 242 set_cursor_location_call_count_ = 0; | 243 set_cursor_location_call_count_ = 0; |
| 243 } | 244 } |
| 244 | 245 |
| 245 } // namespace internal | 246 } // namespace internal |
| 246 } // namespace ui | 247 } // namespace ui |
| OLD | NEW |