arc_apps_private.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Copyright 2019 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.arcAppsPrivate.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: arcAppsPrivate */
  11. /** @const */
  12. chrome.arcAppsPrivate = {};
  13. /**
  14. * @typedef {{
  15. * packageName: string
  16. * }}
  17. */
  18. chrome.arcAppsPrivate.AppInfo;
  19. /**
  20. * Returns info of the installed ARC apps that are launchable, including ready
  21. * and non-ready apps.
  22. * @param {function(!Array<!chrome.arcAppsPrivate.AppInfo>): void} callback
  23. */
  24. chrome.arcAppsPrivate.getLaunchableApps = function(callback) {};
  25. /**
  26. * Launches the ARC app with its package name. The app is launched immediately
  27. * if it's ready, otherwise it will be launched when it becomes ready. The
  28. * callback is called as soon as the launch is scheduled.
  29. * @param {string} packageName
  30. * @param {function(): void=} callback
  31. */
  32. chrome.arcAppsPrivate.launchApp = function(packageName, callback) {};
  33. /**
  34. * Fires when a new app can be launched via $(ref:launchApp).
  35. * @type {!ChromeEvent}
  36. */
  37. chrome.arcAppsPrivate.onInstalled;