command_line_private.js 960 B

123456789101112131415161718192021222324
  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.commandLinePrivate.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: commandLinePrivate */
  11. /** @const */
  12. chrome.commandLinePrivate = {};
  13. /**
  14. * Returns whether a switch is specified on the command line when launching
  15. * Chrome.
  16. * @param {string} name The name of a command line switch, without leading "--",
  17. * such as "enable-experimental-extension-apis".
  18. * @param {function(boolean): void} callback
  19. */
  20. chrome.commandLinePrivate.hasSwitch = function(name, callback) {};