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

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

Issue 2557493002: IME for Mus: Use ui::InputMethodChromeOS to provide logic for ime driver. (Closed)
Patch Set: More cleanup. Created 4 years 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
Index: ui/base/ime/input_method_chromeos.h
diff --git a/ui/base/ime/input_method_chromeos.h b/ui/base/ime/input_method_chromeos.h
index a4145cdd68a6948914ed140434d9dcdf431dde3c..e3a87283c031c8e6aae502e075842771b8584c07 100644
--- a/ui/base/ime/input_method_chromeos.h
+++ b/ui/base/ime/input_method_chromeos.h
@@ -27,6 +27,10 @@ class UI_BASE_IME_EXPORT InputMethodChromeOS : public InputMethodBase {
explicit InputMethodChromeOS(internal::InputMethodDelegate* delegate);
~InputMethodChromeOS() override;
+ using AckCallback = base::Callback<void(bool)>;
+ void DispatchKeyEvent(ui::KeyEvent* event,
+ std::unique_ptr<AckCallback> ack_callback);
+
// Overridden from InputMethod:
bool OnUntranslatedIMEMessage(const base::NativeEvent& event,
NativeEventResult* result) override;
@@ -100,7 +104,9 @@ class UI_BASE_IME_EXPORT InputMethodChromeOS : public InputMethodBase {
void HidePreeditText();
// Callback function for IMEEngineHandlerInterface::ProcessKeyEvent.
- void ProcessKeyEventDone(ui::KeyEvent* event, bool is_handled);
+ void ProcessKeyEventDone(ui::KeyEvent* event,
+ std::unique_ptr<AckCallback> ack_callback,
+ bool is_handled);
// Returns whether an non-password input field is focused.
bool IsNonPasswordInputFieldFocused();

Powered by Google App Engine
This is Rietveld 408576698