| // 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. |
| |
| [JavaPackage="org.chromium.webshare.mojom"] |
| module blink.mojom; |
| |
| import "third_party/blink/public/mojom/blob/serialized_blob.mojom"; |
| import "third_party/blink/public/mojom/webshare/share_error.mojom"; |
| import "url/mojom/url.mojom"; |
| |
| struct SharedFile { |
| string name; |
| SerializedBlob blob; |
| }; |
| |
| interface ShareService { |
| // The web contents has requested to send a share text action. |
| Share(string title, string text, url.mojom.Url url, array<SharedFile> files) |
| => (ShareError error); |
| }; |