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

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

Issue 45733008: sk6_charactercomposer: Merged DispatchKeyEvent and its fabricated version. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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/input_method.h ('k') | ui/base/ime/input_method_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/input_method_base.h
diff --git a/ui/base/ime/input_method_base.h b/ui/base/ime/input_method_base.h
index 1aebb9756de7c5226a8d0411fbce27b023714e55..4c601333805d1392a0702acc290e109b5a7b1a99 100644
--- a/ui/base/ime/input_method_base.h
+++ b/ui/base/ime/input_method_base.h
@@ -72,15 +72,11 @@ class UI_EXPORT InputMethodBase : NON_EXPORTED_BASE(public InputMethod) {
// input type is not TEXT_INPUT_TYPE_NONE.
void OnInputMethodChanged() const;
- // Convenience method to call delegate_->DispatchKeyEventPostIME().
- // Returns true if the event was processed
- bool DispatchKeyEventPostIME(const base::NativeEvent& native_event) const;
-
- // Convenience method to call delegate_->DispatchFabricatedKeyEventPostIME().
- // Returns true if the event was processed
- bool DispatchFabricatedKeyEventPostIME(EventType type,
- KeyboardCode key_code,
- int flags) const;
+ // Convenience method to call delegate_->DispatchKeyEventPostIME()
+ // or delegate_->DispatchFabricatedKeyEventPostIME() considering if
+ // |event| contains the native event or not. Returns true if the
+ // event was processed.
+ bool DispatchKeyEventPostIME(const ui::KeyEvent& event) const;
// Convenience method to notify all observers of TextInputClient changes.
void NotifyTextInputStateChanged(const TextInputClient* client);
« no previous file with comments | « ui/base/ime/input_method.h ('k') | ui/base/ime/input_method_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698