pending_polymer.js 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. /**
  5. * @fileoverview Externs for Polymer not added to the polymer-1.0.js file.
  6. * @externs
  7. */
  8. /**
  9. * @see
  10. * https://www.polymer-project.org/2.0/docs/api/namespaces/Polymer.RenderStatus
  11. * Queue a function call to be run before the next render.
  12. * @param {!Element} element The element on which the function call is made.
  13. * @param {!function()} fn The function called on next render.
  14. * @param {...*} args The function arguments.
  15. * TODO(rbpotter): Remove this once it is added to Closure Compiler itself.
  16. */
  17. Polymer.RenderStatus.beforeNextRender = function(element, fn, args) {};
  18. /**
  19. * @see
  20. * https://polymer-library.polymer-project.org/2.0/api/namespaces/Polymer.Templatize
  21. * @constructor
  22. * TODO(rbpotter): Remove this once it is added to Closure Compiler itself.
  23. */
  24. Polymer.Templatize = function() {};
  25. /**
  26. * @param {!HTMLTemplateElement} template
  27. * @param {Object=} owner
  28. * @param {Object=} options
  29. * @return {!Function}
  30. * TODO(rbpotter): Remove this once it is added to Closure Compiler itself.
  31. */
  32. Polymer.Templatize.templatize = function(template, owner, options) {};
  33. /**
  34. * @see
  35. * https://polymer-library.polymer-project.org/2.0/api/namespaces/Polymer.Templatize
  36. * @constructor
  37. * TODO(rbpotter): Remove this once it is added to Closure Compiler itself.
  38. */
  39. let TemplateInstanceBase = function() {};
  40. /**
  41. * @see
  42. * https://polymer-library.polymer-project.org/2.0/api/elements/Polymer.DomIf
  43. * @constructor
  44. */
  45. Polymer.DomIf = function() {};
  46. /**
  47. * @param {!HTMLTemplateElement} template
  48. * @return {!HTMLElement}
  49. * TODO(dpapad): Figure out if there is a better way to type-check Polymer2
  50. * while still using legacy Polymer1 syntax.
  51. */
  52. Polymer.DomIf._contentForTemplate = function(template) {};
  53. /**
  54. * From:
  55. * https://github.com/Polymer/polymer/blob/2.x/lib/mixins/property-effects.html
  56. *
  57. * @param {Object} props Bag of one or more key-value pairs whose key is
  58. * a property and value is the new value to set for that property.
  59. * @param {boolean=} setReadOnly When true, any private values set in
  60. * `props` will be set. By default, `setProperties` will not set
  61. * `readOnly: true` root properties.
  62. * @return {void}
  63. * @public
  64. */
  65. PolymerElement.prototype.setProperties = function(props, setReadOnly) {};