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

Unified Diff: ui/base/ime/input_method_delegate.h

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 | « ui/base/ime/input_method_chromeos_unittest.cc ('k') | ui/base/ime/remote_input_method_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/input_method_delegate.h
diff --git a/ui/base/ime/input_method_delegate.h b/ui/base/ime/input_method_delegate.h
index d64da926165f15f05b0bb873adae3441da46e4de..080a8f6f334836afccbd0978f738cd26ef55a9c7 100644
--- a/ui/base/ime/input_method_delegate.h
+++ b/ui/base/ime/input_method_delegate.h
@@ -5,12 +5,12 @@
#ifndef UI_BASE_IME_INPUT_METHOD_DELEGATE_H_
#define UI_BASE_IME_INPUT_METHOD_DELEGATE_H_
-#include "base/event_types.h"
#include "ui/base/ui_base_export.h"
-#include "ui/events/event_constants.h"
-#include "ui/events/keycodes/keyboard_codes.h"
namespace ui {
+
+class KeyEvent;
+
namespace internal {
// An interface implemented by the object that handles events sent back from an
@@ -21,13 +21,7 @@ class UI_BASE_EXPORT InputMethodDelegate {
// Dispatch a key event already processed by the input method.
// Returns true if the event was processed.
- virtual bool DispatchKeyEventPostIME(
- const base::NativeEvent& native_key_event) = 0;
-
- // TODO(komatsu): Unify this function to DispatchKeyEventPostIME.
- virtual bool DispatchFabricatedKeyEventPostIME(ui::EventType type,
- ui::KeyboardCode key_code,
- int flags) = 0;
+ virtual bool DispatchKeyEventPostIME(const ui::KeyEvent& key_event) = 0;
};
} // namespace internal
« no previous file with comments | « ui/base/ime/input_method_chromeos_unittest.cc ('k') | ui/base/ime/remote_input_method_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698