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

Unified Diff: ui/views/ime/mock_input_method.cc

Issue 10825254: Remove views::KeyEvent, replacing uses of it with ui::KeyEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/ime/mock_input_method.h ('k') | ui/views/view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « ui/views/ime/mock_input_method.h ('k') | ui/views/view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698