зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1744524: part 4) Propagate from the JS side to the C++ side whether the user clicked or dismissed the "Paste" button. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D136617
This commit is contained in:
Родитель
0389d40d57
Коммит
eeb75692f4
|
@ -26,11 +26,15 @@ class ClipboardReadTextPasteChild extends JSWindowActorChild {
|
|||
receiveMessage(value) {
|
||||
switch (value.name) {
|
||||
case "ClipboardReadTextPaste:PasteMenuItemClicked": {
|
||||
// TODO: notify C++ side.
|
||||
this.contentWindow.navigator.clipboard.onUserReactedToPasteMenuPopup(
|
||||
true
|
||||
);
|
||||
break;
|
||||
}
|
||||
case "ClipboardReadTextPaste:PasteMenuItemDismissed": {
|
||||
// TODO: notify C++ side.
|
||||
this.contentWindow.navigator.clipboard.onUserReactedToPasteMenuPopup(
|
||||
false
|
||||
);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче