chrome_send.js 570 B

123456789101112131415161718192021
  1. // Copyright 2014 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. /**
  5. * @fileoverview Externs for global |chrome| object. These methods are defined
  6. * in WebUIExtension::Install.
  7. * @externs
  8. */
  9. /**
  10. * @param {string} msg
  11. * @param {Array=} opt_args
  12. */
  13. chrome.send = function(msg, opt_args) {};
  14. /**
  15. * @param {string} name The name of the variable set with SetWebUIProperty()
  16. * @return {string} JSON variable value
  17. */
  18. chrome.getVariableValue = function(name) {};