chromeos_info_private.js 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. // Copyright 2020 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.chromeosInfoPrivate.FooType'.
  8. // Please run the closure compiler before committing changes.
  9. // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_compilation.md
  10. /** @fileoverview Externs generated from namespace: chromeosInfoPrivate */
  11. /** @const */
  12. chrome.chromeosInfoPrivate = {};
  13. /**
  14. * @enum {string}
  15. */
  16. chrome.chromeosInfoPrivate.PropertyName = {
  17. TIMEZONE: 'timezone',
  18. A11Y_LARGE_CURSOR_ENABLED: 'a11yLargeCursorEnabled',
  19. A11Y_STICKY_KEYS_ENABLED: 'a11yStickyKeysEnabled',
  20. A11Y_SPOKEN_FEEDBACK_ENABLED: 'a11ySpokenFeedbackEnabled',
  21. A11Y_HIGH_CONTRAST_ENABLED: 'a11yHighContrastEnabled',
  22. A11Y_SCREEN_MAGNIFIER_ENABLED: 'a11yScreenMagnifierEnabled',
  23. A11Y_AUTO_CLICK_ENABLED: 'a11yAutoClickEnabled',
  24. A11Y_VIRTUAL_KEYBOARD_ENABLED: 'a11yVirtualKeyboardEnabled',
  25. A11Y_CARET_HIGHLIGHT_ENABLED: 'a11yCaretHighlightEnabled',
  26. A11Y_CURSOR_HIGHLIGHT_ENABLED: 'a11yCursorHighlightEnabled',
  27. A11Y_FOCUS_HIGHLIGHT_ENABLED: 'a11yFocusHighlightEnabled',
  28. A11Y_SELECT_TO_SPEAK_ENABLED: 'a11ySelectToSpeakEnabled',
  29. A11Y_SWITCH_ACCESS_ENABLED: 'a11ySwitchAccessEnabled',
  30. A11Y_CURSOR_COLOR_ENABLED: 'a11yCursorColorEnabled',
  31. A11Y_DOCKED_MAGNIFIER_ENABLED: 'a11yDockedMagnifierEnabled',
  32. SEND_FUNCTION_KEYS: 'sendFunctionKeys',
  33. };
  34. /**
  35. * @enum {string}
  36. */
  37. chrome.chromeosInfoPrivate.SessionType = {
  38. NORMAL: 'normal',
  39. KIOSK: 'kiosk',
  40. PUBLIC_SESSION: 'public session',
  41. };
  42. /**
  43. * @enum {string}
  44. */
  45. chrome.chromeosInfoPrivate.PlayStoreStatus = {
  46. NOT_AVAILABLE: 'not available',
  47. AVAILABLE: 'available',
  48. ENABLED: 'enabled',
  49. };
  50. /**
  51. * @enum {string}
  52. */
  53. chrome.chromeosInfoPrivate.ManagedDeviceStatus = {
  54. MANAGED: 'managed',
  55. NOT_MANAGED: 'not managed',
  56. };
  57. /**
  58. * @enum {string}
  59. */
  60. chrome.chromeosInfoPrivate.DeviceType = {
  61. CHROMEBASE: 'chromebase',
  62. CHROMEBIT: 'chromebit',
  63. CHROMEBOOK: 'chromebook',
  64. CHROMEBOX: 'chromebox',
  65. CHROMEDEVICE: 'chromedevice',
  66. };
  67. /**
  68. * @enum {string}
  69. */
  70. chrome.chromeosInfoPrivate.StylusStatus = {
  71. UNSUPPORTED: 'unsupported',
  72. SUPPORTED: 'supported',
  73. SEEN: 'seen',
  74. };
  75. /**
  76. * @enum {string}
  77. */
  78. chrome.chromeosInfoPrivate.AssistantStatus = {
  79. UNSUPPORTED: 'unsupported',
  80. SUPPORTED: 'supported',
  81. };
  82. /**
  83. * Fetches customization values for the given property names. See property names
  84. * in the declaration of the returned dictionary.
  85. * @param {!Array<string>} propertyNames Chrome OS Property names
  86. * @param {function({
  87. * board: (string|undefined),
  88. * customizationId: (string|undefined),
  89. * homeProvider: (string|undefined),
  90. * hwid: (string|undefined),
  91. * isMeetDevice: (boolean|undefined),
  92. * initialLocale: (string|undefined),
  93. * isOwner: (boolean|undefined),
  94. * sessionType: (!chrome.chromeosInfoPrivate.SessionType|undefined),
  95. * playStoreStatus: (!chrome.chromeosInfoPrivate.PlayStoreStatus|undefined),
  96. * managedDeviceStatus: (!chrome.chromeosInfoPrivate.ManagedDeviceStatus|undefined),
  97. * deviceType: (!chrome.chromeosInfoPrivate.DeviceType|undefined),
  98. * stylusStatus: (!chrome.chromeosInfoPrivate.StylusStatus|undefined),
  99. * assistantStatus: (!chrome.chromeosInfoPrivate.AssistantStatus|undefined),
  100. * clientId: (string|undefined),
  101. * timezone: (string|undefined),
  102. * a11yLargeCursorEnabled: (boolean|undefined),
  103. * a11yStickyKeysEnabled: (boolean|undefined),
  104. * a11ySpokenFeedbackEnabled: (boolean|undefined),
  105. * a11yHighContrastEnabled: (boolean|undefined),
  106. * a11yScreenMagnifierEnabled: (boolean|undefined),
  107. * a11yAutoClickEnabled: (boolean|undefined),
  108. * a11yVirtualKeyboardEnabled: (boolean|undefined),
  109. * a11yCaretHighlightEnabled: (boolean|undefined),
  110. * a11yCursorHighlightEnabled: (boolean|undefined),
  111. * a11yFocusHighlightEnabled: (boolean|undefined),
  112. * a11ySelectToSpeakEnabled: (boolean|undefined),
  113. * a11ySwitchAccessEnabled: (boolean|undefined),
  114. * a11yCursorColorEnabled: (boolean|undefined),
  115. * a11yDockedMagnifierEnabled: (boolean|undefined),
  116. * sendFunctionKeys: (boolean|undefined),
  117. * supportedTimezones: (!Array<!Array<string>>|undefined)
  118. * }): void} callback
  119. */
  120. chrome.chromeosInfoPrivate.get = function(propertyNames, callback) {};
  121. /**
  122. * Sets values for the given system property.
  123. * @param {!chrome.chromeosInfoPrivate.PropertyName} propertyName Chrome OS
  124. * system property name
  125. * @param {*} propertyValue Chrome OS system property value
  126. */
  127. chrome.chromeosInfoPrivate.set = function(propertyName, propertyValue) {};
  128. /**
  129. * Called to request tablet mode enabled status from the Chrome OS system.
  130. * @param {function(boolean): void} callback Returns tablet mode enabled status
  131. * as a boolean.
  132. */
  133. chrome.chromeosInfoPrivate.isTabletModeEnabled = function(callback) {};