commit | 562fcd794a53423132b8b46b5016be3a4410857f | [log] [tgz] |
---|---|---|
author | Ingvar Stepanyan <[email protected]> | Wed Jun 06 22:52:09 2018 |
committer | Commit Bot <[email protected]> | Wed Jun 06 22:52:09 2018 |
tree | edf93be524a1b844c145e16d9202eb533618723a | |
parent | 3415ee28e86a3f4bcc2e15b652d22069938df3a6 [diff] [blame] |
Enable copyText in hosted mode Now that new clipboard API is available in stable Chrome, it can be used to enable copy actions by default even in hosted mode. Change-Id: Ifacb15f7db990c03df21f97560a6e81e9b7746f0 Reviewed-on: https://chromium-review.googlesource.com/1068946 Reviewed-by: Dmitry Gozman <[email protected]> Commit-Queue: Dmitry Gozman <[email protected]> Cr-Original-Commit-Position: refs/heads/master@{#565076} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: 831241e74851285dbd9a0562e86f0f9b9f674887
diff --git a/front_end/externs.js b/front_end/externs.js index 19bc4f0..ae58b8b 100644 --- a/front_end/externs.js +++ b/front_end/externs.js
@@ -1027,3 +1027,17 @@ * }} */ DetailsRenderer.OpportunitySummary; + + +// Clipboard API + +/** @constructor */ +const Clipboard = function() {}; +/** + * @param {string} data + * @return {!Promise} + */ +Clipboard.prototype.writeText = function(data) {}; + +/** @type {Clipboard} */ +Navigator.prototype.clipboard;