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

Side by Side 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, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "services/ui/ime/test_ime_driver/test_ime_application.h"
6
7 #include "services/shell/public/cpp/connector.h"
8 #include "services/ui/ime/test_ime_driver/test_ime_driver.h"
9 #include "services/ui/public/interfaces/ime.mojom.h"
10
11 namespace ui {
12 namespace test {
13
14 TestIMEApplication::TestIMEApplication() {}
15
16 TestIMEApplication::~TestIMEApplication() {}
17
18 bool TestIMEApplication::OnConnect(const shell::Identity& remote_identity,
19 shell::InterfaceRegistry* registry) {
20 return true;
21 }
22
23 void TestIMEApplication::OnStart(const shell::Identity& identity) {
24 mojom::IMEDriverPtr ime_driver_ptr;
25 new TestIMEDriver(GetProxy(&ime_driver_ptr));
26
27 ui::mojom::IMERegistrarPtr ime_registrar;
28 connector()->ConnectToInterface("mojo:ui", &ime_registrar);
29 ime_registrar->RegisterDriver(std::move(ime_driver_ptr));
30 }
31
32 } // namespace test
33 } // namespace ui
OLDNEW
« 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