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

Unified Diff: chrome/browser/ui/views/ime_driver_mus.cc

Issue 2539453002: IME for Mus: Add ui.mojom.CompositionText and its struct traits. (Closed)
Patch Set: Addressed feedback. 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: chrome/browser/ui/views/ime_driver_mus.cc
diff --git a/chrome/browser/ui/views/ime_driver_mus.cc b/chrome/browser/ui/views/ime_driver_mus.cc
index 0f339b9c1392655353b7a378eda07e5bb11d7573..2b618861a76850d9b05fd1729cbd5b9c099ef529 100644
--- a/chrome/browser/ui/views/ime_driver_mus.cc
+++ b/chrome/browser/ui/views/ime_driver_mus.cc
@@ -9,7 +9,7 @@
#include "mojo/public/cpp/bindings/strong_binding.h"
#include "services/service_manager/public/cpp/connector.h"
#include "services/ui/public/interfaces/constants.mojom.h"
-#include "services/ui/public/interfaces/ime.mojom.h"
+#include "services/ui/public/interfaces/ime/ime.mojom.h"
namespace {
@@ -31,11 +31,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);
« no previous file with comments | « chrome/browser/ui/views/ime_driver_mus.h ('k') | mojo/public/tools/bindings/chromium_bindings_configuration.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698