From 43e328f3632f9380cae7ab0c91363fbe7acb9b11 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Thu, 30 Jan 2025 11:03:27 +0100 Subject: [PATCH] chore: update `pdf_viewer_private.idl` (#45370) chore: update pdf_viewer_private.idl - https://chromium-review.googlesource.com/c/chromium/src/+/6160067 --- shell/common/extensions/api/pdf_viewer_private.idl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shell/common/extensions/api/pdf_viewer_private.idl b/shell/common/extensions/api/pdf_viewer_private.idl index c3bcc770bbd3..0de5d9f6ce61 100644 --- a/shell/common/extensions/api/pdf_viewer_private.idl +++ b/shell/common/extensions/api/pdf_viewer_private.idl @@ -68,5 +68,10 @@ namespace pdfViewerPrivate { // Fired when the browser wants the listener to perform a save. // `streamUrl`: Unique ID for the instance that should perform the save. static void onSave(DOMString streamUrl); + + // Fired when the browser wants the listener to update the viewport based on + // a different PDF URL. + // `pdfUrl`: The string of the PDF URL that should update the viewport. + static void onShouldUpdateViewport(DOMString pdfUrl); }; };