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

Unified Diff: ui/views/mus/input_method_mus.h

Issue 2412593002: IME for Mus: Send ack for key events after IME driver processes the event. (Closed)
Patch Set: Addressed feedback. Created 4 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
Index: ui/views/mus/input_method_mus.h
diff --git a/ui/views/mus/input_method_mus.h b/ui/views/mus/input_method_mus.h
index aa5dd5d2efcecf0a0f6f4e2a5236904ccc85e577..1fbcb29759e672824c1a1f51f465469f717b203f 100644
--- a/ui/views/mus/input_method_mus.h
+++ b/ui/views/mus/input_method_mus.h
@@ -15,7 +15,10 @@
namespace ui {
class Window;
-} // namespace mojo
+namespace mojom {
+enum class EventResult;
+} // namespace mojom
+} // namespace ui
namespace views {
@@ -41,6 +44,11 @@ class VIEWS_MUS_EXPORT InputMethodMus : public ui::InputMethodBase {
void OnInputLocaleChanged() override;
bool IsCandidatePopupOpen() const override;
+ void DispatchKeyEvent(
sky 2016/10/14 22:15:51 move above overrides?
+ ui::KeyEvent* event,
+ std::unique_ptr<base::Callback<void(ui::mojom::EventResult)>>
+ ack_callback);
+
private:
friend TextInputClientImpl;
@@ -49,6 +57,11 @@ class VIEWS_MUS_EXPORT InputMethodMus : public ui::InputMethodBase {
ui::TextInputClient* focused) override;
void UpdateTextInputType();
+ void ProcessKeyEventCallback(
+ const ui::KeyEvent& event,
+ std::unique_ptr<base::Callback<void(ui::mojom::EventResult)>>
+ ack_callback,
+ bool handled);
// The toplevel window which is not owned by this class. This may be null
// for tests.

Powered by Google App Engine
This is Rietveld 408576698