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

Unified Diff: services/ui/ime/test_ime_driver/test_ime_driver.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
« no previous file with comments | « services/ui/ime/test_ime_driver/test_ime_driver.h ('k') | services/ui/public/interfaces/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ime/test_ime_driver/test_ime_driver.cc
diff --git a/services/ui/ime/test_ime_driver/test_ime_driver.cc b/services/ui/ime/test_ime_driver/test_ime_driver.cc
index 3d47dc084f0f99bb36caabaf4bbe2f72290460ab..0c7355689bb127f9ca9309513ac3ec13590be0d3 100644
--- a/services/ui/ime/test_ime_driver/test_ime_driver.cc
+++ b/services/ui/ime/test_ime_driver/test_ime_driver.cc
@@ -4,7 +4,7 @@
#include "services/ui/ime/test_ime_driver/test_ime_driver.h"
-#include "services/ui/public/interfaces/ime.mojom.h"
+#include "services/ui/public/interfaces/ime/ime.mojom.h"
namespace ui {
namespace test {
@@ -25,11 +25,7 @@ class TestInputMethod : public mojom::InputMethod {
DCHECK(key_event->IsKeyEvent());
if (key_event->AsKeyEvent()->is_char()) {
- mojom::CompositionEventPtr composition_event =
- mojom::CompositionEvent::New();
- composition_event->type = 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 | « services/ui/ime/test_ime_driver/test_ime_driver.h ('k') | services/ui/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698