OLD | NEW |
(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 "content/browser/webshare/share_service_impl.h" |
| 6 |
| 7 namespace content { |
| 8 |
| 9 ShareServiceImpl::ShareServiceImpl(blink::mojom::ShareServiceRequest request) |
| 10 : binding_(this) { |
| 11 binding_.Bind(std::move(request)); |
| 12 } |
| 13 |
| 14 ShareServiceImpl::~ShareServiceImpl() {} |
| 15 |
| 16 // static |
| 17 void ShareServiceImpl::Create(mojo::InterfaceRequest<ShareService> request) { |
| 18 new ShareServiceImpl(std::move(request)); |
| 19 } |
| 20 |
| 21 void ShareServiceImpl::Share(const mojo::String& title, |
| 22 const mojo::String& text, |
| 23 const GURL& url, |
| 24 const ShareCallback& callback) { |
| 25 NOTIMPLEMENTED() << "Share called"; |
| 26 callback.Run("Not implemented: navigator.share"); |
| 27 } |
| 28 } |
OLD | NEW |