chromium/third_party/blink/public/mojom/webshare/webshare.mojom

// Copyright 2016 The Chromium Authors
// 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 "mojo/public/mojom/base/safe_base_name.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 {
  mojo_base.mojom.SafeBaseName 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);
};