OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 [JavaPackage="org.chromium.mojom.webshare"] | 5 [JavaPackage="org.chromium.webshare.mojom"] |
6 module blink.mojom; | 6 module blink.mojom; |
7 | 7 |
8 import "url/mojo/url.mojom"; | 8 import "url/mojo/url.mojom"; |
9 | 9 |
10 interface ShareService { | 10 interface ShareService { |
11 // The web contents has requested to send a share text action. Returns null on | 11 // The web contents has requested to send a share text action. Returns null on |
12 // success, or an error message on failure. | 12 // success, or an error message on failure. |
13 // TODO(mgiuca): Return an error enum, instead of a string (so the actual | 13 // TODO(mgiuca): Return an error enum, instead of a string (so the actual |
14 // error messages are generated in a single place, rather than many service | 14 // error messages are generated in a single place, rather than many service |
15 // handlers). | 15 // handlers). |
16 Share(string title, string text, url.mojom.Url url) => (string? error); | 16 Share(string title, string text, url.mojom.Url url) => (string? error); |
17 }; | 17 }; |
OLD | NEW |