mime_handler_private.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. // This file was generated by:
  5. // tools/json_schema_compiler/compiler.py.
  6. // NOTE: The format of types has changed. 'FooType' is now
  7. // 'chrome.mimeHandlerPrivate.FooType'.
  8. // Please run the closure compiler before committing changes.
  9. // See https://chromium.googlesource.com/chromium/src/+/main/docs/closure_compilation.md
  10. /** @fileoverview Externs generated from namespace: mimeHandlerPrivate */
  11. /** @const */
  12. chrome.mimeHandlerPrivate = {};
  13. /**
  14. * @typedef {{
  15. * mimeType: string,
  16. * originalUrl: string,
  17. * streamUrl: string,
  18. * tabId: number,
  19. * responseHeaders: Object,
  20. * embedded: boolean
  21. * }}
  22. */
  23. chrome.mimeHandlerPrivate.StreamInfo;
  24. /**
  25. * @typedef {{
  26. * backgroundColor: number,
  27. * allowJavascript: boolean
  28. * }}
  29. */
  30. chrome.mimeHandlerPrivate.PdfPluginAttributes;
  31. /**
  32. * Returns the StreamInfo for the stream for this context if there is one.
  33. * @param {function(!chrome.mimeHandlerPrivate.StreamInfo): void} callback
  34. */
  35. chrome.mimeHandlerPrivate.getStreamInfo = function(callback) {};
  36. /**
  37. * Sets PDF plugin attributes in the stream for this context if there is one.
  38. * @param {!chrome.mimeHandlerPrivate.PdfPluginAttributes} pdfPluginAttributes
  39. */
  40. chrome.mimeHandlerPrivate.setPdfPluginAttributes = function(pdfPluginAttributes) {};
  41. /**
  42. * Instructs the PluginDocument, if running in one, to show a dialog in response
  43. * to beforeunload events.
  44. * @param {boolean} showDialog
  45. * @param {function(): void=} callback
  46. */
  47. chrome.mimeHandlerPrivate.setShowBeforeUnloadDialog = function(showDialog, callback) {};
  48. /**
  49. * Fired when the browser wants the listener to perform a save.
  50. * @type {!ChromeEvent}
  51. */
  52. chrome.mimeHandlerPrivate.onSave;