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

Unified Diff: services/ui/ime/test_ime_driver/test_ime_application.cc

Issue 2230393002: IME for Mus: Make InputMethodMus use the IME Mojo API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update mash_browser_tests_manifest. Created 4 years, 4 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: services/ui/ime/test_ime_driver/test_ime_application.cc
diff --git a/services/ui/ime/test_ime_driver/test_ime_application.cc b/services/ui/ime/test_ime_driver/test_ime_application.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a0b067ef58e9461aa431540e13ba1f2c9dd6c471
--- /dev/null
+++ b/services/ui/ime/test_ime_driver/test_ime_application.cc
@@ -0,0 +1,33 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "services/ui/ime/test_ime_driver/test_ime_application.h"
+
+#include "services/shell/public/cpp/connector.h"
+#include "services/ui/ime/test_ime_driver/test_ime_driver.h"
+#include "services/ui/public/interfaces/ime.mojom.h"
+
+namespace ui {
+namespace test {
+
+TestIMEApplication::TestIMEApplication() {}
+
+TestIMEApplication::~TestIMEApplication() {}
+
+bool TestIMEApplication::OnConnect(const shell::Identity& remote_identity,
+ shell::InterfaceRegistry* registry) {
+ return true;
+}
+
+void TestIMEApplication::OnStart(const shell::Identity& identity) {
+ mojom::IMEDriverPtr ime_driver_ptr;
+ new TestIMEDriver(GetProxy(&ime_driver_ptr));
+
+ ui::mojom::IMERegistrarPtr ime_registrar;
+ connector()->ConnectToInterface("mojo:ui", &ime_registrar);
+ ime_registrar->RegisterDriver(std::move(ime_driver_ptr));
+}
+
+} // namespace test
+} // namespace ui
« no previous file with comments | « services/ui/ime/test_ime_driver/test_ime_application.h ('k') | services/ui/ime/test_ime_driver/test_ime_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698