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

Unified Diff: chrome/browser/ui/ash/ime_driver_ash.cc

Issue 2539453002: IME for Mus: Add ui.mojom.CompositionText and its struct traits. (Closed)
Patch Set: cleanup. Created 4 years, 1 month 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: chrome/browser/ui/ash/ime_driver_ash.cc
diff --git a/chrome/browser/ui/ash/ime_driver_ash.cc b/chrome/browser/ui/ash/ime_driver_ash.cc
index 2366dff5c2107c77d4f7fc63fbe1027eabd6a76f..5be3f00aa09d54d3f63af0feba51282ea3222208 100644
--- a/chrome/browser/ui/ash/ime_driver_ash.cc
+++ b/chrome/browser/ui/ash/ime_driver_ash.cc
@@ -4,7 +4,7 @@
#include "chrome/browser/ui/ash/ime_driver_ash.h"
-#include "services/ui/public/interfaces/ime.mojom.h"
+#include "services/ui/public/interfaces/ime/ime.mojom.h"
namespace {
@@ -26,11 +26,7 @@ class InputMethod : public ui::mojom::InputMethod {
DCHECK(key_event->IsKeyEvent());
if (key_event->AsKeyEvent()->is_char()) {
- ui::mojom::CompositionEventPtr composition_event =
- ui::mojom::CompositionEvent::New();
- composition_event->type = ui::mojom::CompositionEventType::INSERT_CHAR;
- composition_event->key_event = std::move(key_event);
- client_->OnCompositionEvent(std::move(composition_event));
+ client_->InsertChar(std::move(key_event));
callback.Run(true);
} else {
callback.Run(false);

Powered by Google App Engine
This is Rietveld 408576698