Browse Source

chore: update `pdf_viewer_private.idl` (#45370)

chore: update pdf_viewer_private.idl

- https://chromium-review.googlesource.com/c/chromium/src/+/6160067
Shelley Vohr 2 months ago
parent
commit
43e328f363
1 changed files with 5 additions and 0 deletions
  1. 5 0
      shell/common/extensions/api/pdf_viewer_private.idl

+ 5 - 0
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);
   };
 };