Chromium Code Reviews| Index: ui/base/ime/mock_input_method.cc |
| =================================================================== |
| --- ui/base/ime/mock_input_method.cc (revision 162597) |
| +++ ui/base/ime/mock_input_method.cc (working copy) |
| @@ -8,6 +8,7 @@ |
| #include "base/string16.h" |
| #include "ui/base/events/event_constants.h" |
| #include "ui/base/glib/glib_integers.h" |
| +#include "ui/base/events/event.h" |
|
Yusuke Sato
2012/10/19 01:38:22
nit: wrong order
|
| #include "ui/base/ime/input_method_delegate.h" |
| #include "ui/base/ime/text_input_client.h" |
| #include "ui/base/keycodes/keyboard_code_conversion.h" |
| @@ -92,6 +93,14 @@ |
| #endif |
| } |
| +void MockInputMethod::DispatchFabricatedKeyEvent(const ui::KeyEvent& event) { |
| +#if defined(OS_WIN) |
| + delegate_->DispatchFabricatedKeyEventPostIME(event.type(), |
| + event.key_code(), |
| + event.flags()); |
| +#endif |
| +} |
| + |
| void MockInputMethod::Init(bool focused) {} |
| void MockInputMethod::OnFocus() {} |
| void MockInputMethod::OnBlur() {} |