| Index: ui/views/ime/mock_input_method.cc
|
| ===================================================================
|
| --- ui/views/ime/mock_input_method.cc (revision 150588)
|
| +++ ui/views/ime/mock_input_method.cc (working copy)
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "base/basictypes.h"
|
| #include "base/logging.h"
|
| +#include "ui/base/event.h"
|
| #include "ui/base/ime/text_input_client.h"
|
| #include "ui/base/keycodes/keyboard_codes.h"
|
| #include "ui/views/events/event.h"
|
| @@ -43,13 +44,13 @@
|
| InputMethodBase::Init(widget);
|
| }
|
|
|
| -void MockInputMethod::DispatchKeyEvent(const KeyEvent& key) {
|
| +void MockInputMethod::DispatchKeyEvent(const ui::KeyEvent& key) {
|
| bool handled = (composition_changed_ || result_text_.length()) &&
|
| !IsTextInputTypeNone();
|
|
|
| ClearStates();
|
| if (handled) {
|
| - KeyEvent mock_key(ui::ET_KEY_PRESSED, ui::VKEY_PROCESSKEY, key.flags());
|
| + ui::KeyEvent mock_key(ui::ET_KEY_PRESSED, ui::VKEY_PROCESSKEY, key.flags());
|
| DispatchKeyEventPostIME(mock_key);
|
| } else {
|
| DispatchKeyEventPostIME(key);
|
|
|