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

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

Issue 11183049: Changes on the Input method for metro ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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/base/ime/mock_input_method.h ('k') | ui/base/test/dummy_input_method.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "base/string16.h"
+#include "ui/base/events/event.h"
#include "ui/base/events/event_constants.h"
#include "ui/base/glib/glib_integers.h"
#include "ui/base/ime/input_method_delegate.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() {}
« no previous file with comments | « ui/base/ime/mock_input_method.h ('k') | ui/base/test/dummy_input_method.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698