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

Unified Diff: mojo/examples/launcher/launcher.cc

Issue 142043006: Refactors ui::internal::InputMethodDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed an issue of unsigned/signed comparison. Created 6 years, 11 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 | « content/shell/browser/shell_platform_data_aura.cc ('k') | ui/base/ime/dummy_input_method_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/launcher/launcher.cc
diff --git a/mojo/examples/launcher/launcher.cc b/mojo/examples/launcher/launcher.cc
index 85ea6021a915fce6f0ed33424003bd3fb5bb0eff..242aea381d5f7ccc0fe6904b5bd284014d3c8f87 100644
--- a/mojo/examples/launcher/launcher.cc
+++ b/mojo/examples/launcher/launcher.cc
@@ -95,19 +95,9 @@ class MinimalInputEventFilter : public ui::internal::InputMethodDelegate,
}
}
- // ui::InputMethodDelegate:
- virtual bool DispatchKeyEventPostIME(
- const base::NativeEvent& event) OVERRIDE {
- ui::TranslatedKeyEvent aura_event(event, false /* is_char */);
- return root_->GetDispatcher()->AsWindowTreeHostDelegate()->OnHostKeyEvent(
- &aura_event);
- }
-
- virtual bool DispatchFabricatedKeyEventPostIME(ui::EventType type,
- ui::KeyboardCode key_code,
- int flags) OVERRIDE {
- ui::TranslatedKeyEvent aura_event(type == ui::ET_KEY_PRESSED, key_code,
- flags);
+ // ui::internal::InputMethodDelegate:
+ virtual bool DispatchKeyEventPostIME(const ui::KeyEvent& event) OVERRIDE {
+ ui::TranslatedKeyEvent aura_event(event);
return root_->GetDispatcher()->AsWindowTreeHostDelegate()->OnHostKeyEvent(
&aura_event);
}
« no previous file with comments | « content/shell/browser/shell_platform_data_aura.cc ('k') | ui/base/ime/dummy_input_method_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698