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

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
« no previous file with comments | « services/ui/public/interfaces/ime.mojom ('k') | ui/views/mus/input_method_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b1f74755b2d930af52efb8f7a154558bd355c447..9052e38473ba672bfc31a5114ebac87da4024bb4 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 {
@@ -28,6 +31,10 @@ class VIEWS_MUS_EXPORT InputMethodMus : public ui::InputMethodBase {
~InputMethodMus() override;
void Init(service_manager::Connector* connector);
+ void DispatchKeyEvent(
+ ui::KeyEvent* event,
+ std::unique_ptr<base::Callback<void(ui::mojom::EventResult)>>
+ ack_callback);
// Overridden from ui::InputMethod:
void OnFocus() override;
@@ -49,6 +56,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.
« no previous file with comments | « services/ui/public/interfaces/ime.mojom ('k') | ui/views/mus/input_method_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698