| 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
|
|
|