blob: 18b826f54b4f01d998cb9154d56026e4fd21dc04 [file] [log] [blame]
// Copyright 2015 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 "base/logging.h"
#include "sky/shell/platform/mac/view_service_provider.h"
namespace sky {
namespace shell {
ViewServiceProvider::ViewServiceProvider(
mojo::InterfaceRequest<mojo::ServiceProvider> request)
: binding_(this, request.Pass()) {}
ViewServiceProvider::~ViewServiceProvider() {}
void ViewServiceProvider::ConnectToService(
const mojo::String& service_name,
mojo::ScopedMessagePipeHandle client_handle) {
#if TARGET_OS_IPHONE
if (service_name == ::editing::Keyboard::Name_) {
keyboard_.Create(
nullptr, mojo::MakeRequest<::editing::Keyboard>(client_handle.Pass()));
return;
}
#endif
}
} // namespace shell
} // namespace sky