Commit 2fb0d515 authored by Hassan Talat's avatar Hassan Talat Committed by Chromium LUCI CQ

WebShare: Move ShareError def to its own file

This CL moves the ShareError enum def to its own file so the macOS impl
(upcoming CLs) can import it in components//remote_cocoa without having
to import the other definitions

Bug: 1144920
Change-Id: I1f60916facdc34ce67aeb7ecec03e3795278d6f5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2626463Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarEric Willigers <ericwilligers@chromium.org>
Reviewed-by: default avatarDominick Ng <dominickn@chromium.org>
Commit-Queue: Hassan Talat <hatalat@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#843451}
parent 77accef8
......@@ -659,6 +659,7 @@ mojom("android_mojo_bindings") {
"payments/payment_handler_host.mojom",
"payments/payment_request.mojom",
"webauthn/authenticator.mojom",
"webshare/share_error.mojom",
"webshare/webshare.mojom",
]
......
// Copyright 2021 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;
enum ShareError {
// Share successful.
OK,
// Something went wrong in the implementation.
INTERNAL_ERROR,
// Potentially dangerous files.
PERMISSION_DENIED,
// Share was canceled by user.
CANCELED,
};
......@@ -6,19 +6,9 @@
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";
enum ShareError {
// Share successful.
OK,
// Something went wrong in the implementation.
INTERNAL_ERROR,
// Potentially dangerous files.
PERMISSION_DENIED,
// Share was canceled by user.
CANCELED,
};
struct SharedFile {
string name;
SerializedBlob blob;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment