resources_private.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  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.resourcesPrivate.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: resourcesPrivate */
  11. /** @const */
  12. chrome.resourcesPrivate = {};
  13. /**
  14. * @enum {string}
  15. */
  16. chrome.resourcesPrivate.Component = {
  17. IDENTITY: 'identity',
  18. PDF: 'pdf',
  19. };
  20. /**
  21. * Gets localized strings for a component extension. Includes default WebUI
  22. * loadTimeData values for text and language settings (fontsize, fontfamily,
  23. * language, textdirection). See
  24. * chrome/browser/extensions/api/resources_private/resources_private_api.cc for
  25. * instructions on adding a new component to this API.
  26. * @param {!chrome.resourcesPrivate.Component} component Internal Chrome
  27. * component to get strings for.
  28. * @param {function(Object): void} callback Called with a dictionary mapping
  29. * names to strings.
  30. */
  31. chrome.resourcesPrivate.getStrings = function(component, callback) {};