system_private.js 1.7 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.systemPrivate.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: systemPrivate */
  11. /** @const */
  12. chrome.systemPrivate = {};
  13. /**
  14. * @enum {string}
  15. */
  16. chrome.systemPrivate.UpdateStatusState = {
  17. NOT_AVAILABLE: 'NotAvailable',
  18. UPDATING: 'Updating',
  19. NEED_RESTART: 'NeedRestart',
  20. };
  21. /**
  22. * @enum {string}
  23. */
  24. chrome.systemPrivate.GetIncognitoModeAvailabilityValue = {
  25. ENABLED: 'enabled',
  26. DISABLED: 'disabled',
  27. FORCED: 'forced',
  28. };
  29. /**
  30. * Information about the system update.
  31. * @typedef {{
  32. * state: !chrome.systemPrivate.UpdateStatusState,
  33. * downloadProgress: number
  34. * }}
  35. */
  36. chrome.systemPrivate.UpdateStatus;
  37. /**
  38. * Returns whether the incognito mode is enabled, disabled or forced
  39. * @param {function(!chrome.systemPrivate.GetIncognitoModeAvailabilityValue): void}
  40. * callback Called with the result.
  41. */
  42. chrome.systemPrivate.getIncognitoModeAvailability = function(callback) {};
  43. /**
  44. * Gets information about the system update.
  45. * @param {function(!chrome.systemPrivate.UpdateStatus): void} callback
  46. */
  47. chrome.systemPrivate.getUpdateStatus = function(callback) {};
  48. /**
  49. * Gets Chrome's API key to use for requests to Google services.
  50. * @param {function(string): void} callback
  51. */
  52. chrome.systemPrivate.getApiKey = function(callback) {};