| // Copyright 2018 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 "chrome/services/app_service/public/cpp/app_service_proxy.h" |
| |
| #include <utility> |
| |
| namespace apps { |
| |
| AppServiceProxy::AppServiceProxy() = default; |
| |
| AppServiceProxy::~AppServiceProxy() = default; |
| |
| apps::mojom::AppServicePtr& AppServiceProxy::AppService() { |
| return app_service_; |
| } |
| |
| apps::AppRegistryCache& AppServiceProxy::AppRegistryCache() { |
| return cache_; |
| } |
| |
| apps::mojom::IconKeyPtr AppServiceProxy::GetIconKey(const std::string& app_id) { |
| return apps::mojom::IconKey::New(); |
| } |
| |
| std::unique_ptr<apps::IconLoader::Releaser> |
| AppServiceProxy::LoadIconFromIconKey( |
| apps::mojom::AppType app_type, |
| const std::string& app_id, |
| apps::mojom::IconKeyPtr icon_key, |
| apps::mojom::IconCompression icon_compression, |
| int32_t size_hint_in_dip, |
| bool allow_placeholder_icon, |
| apps::mojom::Publisher::LoadIconCallback callback) { |
| std::move(callback).Run(apps::mojom::IconValue::New()); |
| return nullptr; |
| } |
| |
| void AppServiceProxy::Launch(const std::string& app_id, |
| int32_t event_flags, |
| apps::mojom::LaunchSource launch_source, |
| int64_t display_id) {} |
| |
| void AppServiceProxy::SetPermission(const std::string& app_id, |
| apps::mojom::PermissionPtr permission) {} |
| |
| void AppServiceProxy::Uninstall(const std::string& app_id) {} |
| |
| void AppServiceProxy::OpenNativeSettings(const std::string& app_id) {} |
| |
| } // namespace apps |