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

Unified Diff: shell/android/native_viewport_application_loader.cc

Issue 856063002: Adding keyboard service. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix local variable Created 5 years, 11 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
« no previous file with comments | « shell/android/native_viewport_application_loader.h ('k') | sky/engine/core/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/android/native_viewport_application_loader.cc
diff --git a/shell/android/native_viewport_application_loader.cc b/shell/android/native_viewport_application_loader.cc
index e84fa90cb70e8fe3681e0f05341f45f25c225ca9..9f96417d48cf9568ef2a0f80c4a7dfc8bf02c5c9 100644
--- a/shell/android/native_viewport_application_loader.cc
+++ b/shell/android/native_viewport_application_loader.cc
@@ -6,6 +6,7 @@
#include "mojo/public/cpp/application/application_impl.h"
#include "services/native_viewport/native_viewport_impl.h"
+#include "shell/android/keyboard_impl.h"
namespace mojo {
namespace shell {
@@ -33,6 +34,7 @@ bool NativeViewportApplicationLoader::ConfigureIncomingConnection(
mojo::ApplicationConnection* connection) {
connection->AddService<NativeViewport>(this);
connection->AddService<Gpu>(this);
+ connection->AddService<Keyboard>(this);
return true;
}
@@ -45,7 +47,12 @@ void NativeViewportApplicationLoader::Create(
void NativeViewportApplicationLoader::Create(
ApplicationConnection* connection,
- InterfaceRequest<Gpu> request) {
+ InterfaceRequest<Keyboard> request) {
+ new KeyboardImpl(request.Pass());
+}
+
+void NativeViewportApplicationLoader::Create(ApplicationConnection* connection,
+ InterfaceRequest<Gpu> request) {
if (!gpu_state_)
gpu_state_ = new gles2::GpuImpl::State;
new gles2::GpuImpl(request.Pass(), gpu_state_);
« no previous file with comments | « shell/android/native_viewport_application_loader.h ('k') | sky/engine/core/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698