Skip to content
Browse files

Version 1.0.3

 * added update-closure-library.sh script
 * closure-library updated to r1647
 * closure-compiler updated to r1810
 * fixed urmuzov/closure-maven#1
  • Loading branch information...
1 parent ed15bc8 commit 0e8bd3456f1611f0af05cef19a79bda28720161f @urmuzov committed Mar 10, 2012
Showing with 8,885 additions and 6,435 deletions.
  1. +1 −1 README.rus.md
  2. +1 −1 archetype/README.rus.md
  3. +1 −1 archetype/pom.xml
  4. +1 −2 archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
  5. 0 ...nrpc_test.gif → archetype/src/main/resources/archetype-resources/src/main/resources/css/style.css
  6. +28 −0 archetype/src/main/resources/archetype-resources/src/main/resources/externs/webkit_console.js
  7. BIN archetype/src/main/resources/archetype-resources/src/main/resources/img/closure_logo.png
  8. +1 −1 compiler-plugin/pom.xml
  9. +1 −1 compiler-plugin/src/main/java/com/github/urmuzov/closurecompilermavenplugin/ClosureCompilerMojo.java
  10. +9 −8 compiler-plugin/src/main/java/com/github/urmuzov/closurecompilermavenplugin/JSFileCollector.java
  11. +2 −2 examples/compiler-plugin-example1/pom.xml
  12. +2 −2 examples/compiler-plugin-example2/pom.xml
  13. +1 −1 package-plugin/pom.xml
  14. +7 −2 package-plugin/src/main/java/com/github/urmuzov/closuremaven/packageplugin/ClosurePackageMojo.java
  15. +1 −1 packages/closure-bootstrap/pom.xml
  16. +1 −1 packages/closure-library/pom.xml
  17. 0 ...s/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/autocomplete.css
  18. 0 ...sources/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/bubble.css
  19. 0 ...sources/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/button.css
  20. 0 ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/charpicker.css
  21. 0 ...urces/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/checkbox.css
  22. 0 ...om/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/colormenubutton.css
  23. 0 ...s/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/colorpalette.css
  24. 0 ...ub/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/colorpicker-simplegrid.css
  25. 0 ...urces/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/combobox.css
  26. 0 ...sources/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/common.css
  27. 0 ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/css3button.css
  28. 0 ...com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/css3menubutton.css
  29. 0 ...s/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/custombutton.css
  30. 0 ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/datepicker.css
  31. 0 ...sources/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/dialog.css
  32. 0 ...om/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/dimensionpicker.css
  33. 0 ...m/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/dragdropdetector.css
  34. 0 .../com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/editor/bubble.css
  35. 0 .../com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/editor/dialog.css
  36. 0 ...hub/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/editor/equationeditor.css
  37. 0 .../github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/editor/linkdialog.css
  38. 0 .../com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/editortoolbar.css
  39. 0 ...s/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/filteredmenu.css
  40. 0 ...b/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/filterobservingmenuitem.css
  41. 0 ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/flatbutton.css
  42. 0 ...com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/flatmenubutton.css
  43. 0 ...rces/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/hovercard.css
  44. 0 ...es/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/hsvapalette.css
  45. 0 ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/hsvpalette.css
  46. 0 ...om/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/imagelessbutton.css
  47. 0 ...ithub/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/imagelessmenubutton.css
  48. 0 ...om/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/inputdatepicker.css
  49. 0 ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/linkbutton.css
  50. 0 ...resources/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/menu.css
  51. 0 ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/menubutton.css
  52. +11 −0 ...urces/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/menuitem.css
  53. 0 .../com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/menuseparator.css
  54. 0 ...om/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/multitestrunner.css
  55. 0 ...ources/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/offline.css
  56. 0 ...ources/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/palette.css
  57. 0 ...om/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/popupdatepicker.css
  58. 0 ...s/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/roundedpanel.css
  59. 0 ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/roundedtab.css
  60. 0 ...ources/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/submenu.css
  61. 0 .../resources/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/tab.css
  62. 0 ...sources/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/tabbar.css
  63. 0 ...es/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/tablesorter.css
  64. 0 ...ources/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/toolbar.css
  65. 0 ...ources/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/tooltip.css
  66. 0 ...resources/com/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/tree.css
  67. 0 ...m/github/urmuzov/closuremaven/closurelibrarypackage/{javascript/goog → }/css/tristatemenuitem.css
  68. +9 −9 ...in/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/array/array.js
  69. +1 −1 ...esources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/asserts/asserts.js
  70. +1 −1 ...s/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/async/conditionaldelay.js
  71. +1 −0 ...in/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/async/delay.js
  72. +1 −1 ...resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/async/throttle.js
  73. +62 −66 .../src/main/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/base.js
  74. +14 −0 ...in/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/color/color.js
  75. +2 −0 ...n/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/crypt/base64.js
  76. +5 −5 ...sources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/crypt/blobhasher.js
  77. +0 −83 ...esources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/crypt/hash_test.js
  78. +3 −3 ...ain/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/crypt/hmac.js
  79. +54 −28 ...main/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/crypt/md5.js
  80. +3 −3 ...ain/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/crypt/sha1.js
  81. +0 −11 ...m/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/cssom/cssom_test_import_1.css
  82. +0 −10 ...m/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/cssom/cssom_test_import_2.css
  83. +0 −10 ...com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/cssom/cssom_test_link_1.css
  84. +0 −10 ...hub/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/cssom/iframe/style_test_import.css
  85. +22 −22 ...es/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/datasource/datasource.js
  86. +4 −4 .../com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/datasource/fastdatanode.js
  87. +1 −1 .../com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/datasource/jsdatasource.js
  88. +1 −1 ...thub/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/datasource/jsxmlhttpdatasource.js
  89. +1 −1 ...com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/datasource/xmldatasource.js
  90. +3 −1 ...main/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/date/date.js
  91. +7 −7 ...resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/date/daterange.js
  92. +6 −5 .../resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/date/relative.js
  93. +17 −17 ...sources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/date/utcdatetime.js
  94. +1 −0 ...src/main/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/db/db.js
  95. +48 −11 .../main/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/db/error.js
  96. +6 −7 ...resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/db/transaction.js
  97. +1 −1 .../resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/debug/console.js
  98. +10 −4 ...in/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/debug/debug.js
  99. +13 −4 ...ources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/debug/debugwindow.js
  100. +1 −1 ...in/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/debug/error.js
  101. +3 −3 ...urces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/debug/errorhandler.js
  102. +9 −2 ...rces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/debug/errorreporter.js
  103. +151 −0 ...sources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/debug/fpsdisplay.js
  104. +106 −69 .../src/main/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/deps.js
  105. +1 −0 ...es/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/disposable/disposable.js
  106. +1 −0 ...s/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/disposable/idisposable.js
  107. +1 −1 .../main/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/dom/a11y.js
  108. +3 −3 ...s/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/dom/abstractmultirange.js
  109. +7 −0 ...urces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/dom/browserfeature.js
  110. +1 −1 .../github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/dom/browserrange/geckorange.js
  111. +18 −18 ...com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/dom/browserrange/ierange.js
  112. +1 −1 .../github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/dom/browserrange/operarange.js
  113. +16 −16 ...om/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/dom/browserrange/w3crange.js
  114. +2 −2 ...github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/dom/browserrange/webkitrange.js
  115. +21 −34 ...in/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/dom/classes.js
  116. +28 −28 ...sources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/dom/controlrange.js
  117. +93 −61 ...c/main/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/dom/dom.js
  118. +0 −1,313 ...n/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/dom/dom_test.js
  119. +3 −3 ...rces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/dom/fontsizemonitor.js
  120. +3 −0 ...main/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/dom/forms.js
  121. +2 −1 ...ain/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/dom/iframe.js
  122. +2 −2 .../main/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/dom/iter.js
  123. +27 −27 ...resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/dom/multirange.js
  124. +1 −1 ...resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/dom/nodeoffset.js
  125. +3 −1 ...in/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/dom/tagname.js
  126. +25 −25 .../resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/dom/textrange.js
  127. +6 −6 ...es/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/dom/textrangeiterator.js
  128. +3 −2 .../com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/dom/viewportsizemonitor.js
  129. +11 −6 ...es/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/browserfeature.js
  130. +3 −4 ...om/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/clicktoeditwrapper.js
  131. +1 −0 ...resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/command.js
  132. +33 −11 ...n/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/field.js
  133. +14 −4 ...esources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/icontent.js
  134. +36 −0 ...in/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/link.js
  135. +0 −22 ...in/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/node.js
  136. +2 −7 .../resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/plugin.js
  137. +7 −7 ...urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/plugins/abstractbubbleplugin.js
  138. +2 −2 ...urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/plugins/abstractdialogplugin.js
  139. +2 −2 ...b/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/plugins/abstracttabhandler.js
  140. +6 −6 ...b/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/plugins/basictextformatter.js
  141. +69 −16 ...om/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/plugins/blockquote.js
  142. +2 −2 ...com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/plugins/emoticons.js
  143. +3 −3 .../github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/plugins/enterhandler.js
  144. +5 −5 ...urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/plugins/equationeditorbubble.js
  145. +4 −4 ...urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/plugins/equationeditorplugin.js
  146. +2 −2 ...thub/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/plugins/headerformatter.js
  147. +105 −7 ...om/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/plugins/linkbubble.js
  148. +196 −6 ...hub/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/plugins/linkdialogplugin.js
  149. +63 −0 ...b/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/plugins/linkshortcutplugin.js
  150. +2 −2 ...ithub/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/plugins/listtabhandler.js
  151. +3 −3 ...om/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/plugins/loremipsum.js
  152. +4 −4 ...hub/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/plugins/removeformatting.js
  153. +2 −2 ...hub/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/plugins/spacestabhandler.js
  154. +4 −4 ...m/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/plugins/tableeditor.js
  155. +15 −11 ...ub/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/plugins/tagonenterhandler.js
  156. +9 −9 .../com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/plugins/undoredo.js
  157. +10 −0 ...n/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/range.js
  158. +46 −31 ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/seamlessfield.js
  159. +0 −393 ...om/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/seamlessfield_test.js
  160. +1 −0 ...n/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/editor/table.js
  161. +10 −6 ...om/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/events/actioneventwrapper.js
  162. +1 −1 ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/events/actionhandler.js
  163. +11 −6 ...rces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/events/browserevent.js
  164. +29 −1 ...es/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/events/browserfeature.js
  165. +1 −1 ...n/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/events/event.js
  166. +48 −56 .../resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/events/events.js
  167. +35 −31 ...urces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/events/eventtarget.js
  168. +8 −1 ...sources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/events/eventtype.js
  169. +1 −0 ...rces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/events/eventwrapper.js
  170. +1 −1 ...s/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/events/filedrophandler.js
  171. +2 −1 ...rces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/events/focushandler.js
  172. +1 −1 ...ources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/events/imehandler.js
  173. +2 −1 ...rces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/events/inputhandler.js
  174. +43 −4 ...esources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/events/keycodes.js
  175. +9 −21 ...ources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/events/keyhandler.js
  176. +7 −0 ...esources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/events/keynames.js
  177. +2 −1 ...com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/events/mousewheelhandler.js
  178. +23 −28 ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/events/onlinehandler.js
  179. +1 −1 ...rces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/events/pastehandler.js
  180. +0 −356 ...n/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/events/pools.js
  181. +2 −2 .../resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/format/format.js
  182. +288 −0 .../resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/fs/filereader.js
  183. +5 −43 ...n/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/fs/filesaver.js
  184. +3 −10 ...src/main/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/fs/fs.js
  185. +68 −0 ...sources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/fs/progressevent.js
  186. +2 −1 ...rces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/functions/functions.js
  187. +50 −16 ...rces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/fx/abstractdragdrop.js
  188. +336 −0 ...n/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/fx/anim/anim.js
  189. +46 −306 ...n/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/fx/animation.js
  190. +174 −216 ...ources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/fx/animationqueue.js
  191. +3 −4 ...ain/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/fx/css3/fx.js
  192. +40 −28 ...urces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/fx/css3/transition.js
  193. +8 −7 ...es/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/fx/cssspriteanimation.js
  194. +9 −9 ...rc/main/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/fx/dom.js
  195. +1 −0 ...in/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/fx/dragdrop.js
  196. +2 −1 ...sources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/fx/dragdropgroup.js
  197. +16 −6 ...ain/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/fx/dragger.js
  198. +1 −1 ...sources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/fx/draglistgroup.js
  199. +21 −3 ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/fx/dragscrollsupport.js
  200. +1 −0 ...src/main/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/fx/fx.js
  201. +235 −0 ...ources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/fx/transitionbase.js
  202. +2 −2 ...esources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/gears/basestore.js
  203. +1 −1 ...resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/gears/database.js
  204. +3 −2 ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/gears/fakeworkerpool.js
  205. +3 −3 ...in/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/gears/gears.js
  206. +2 −1 ...urces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/gears/loggerclient.js
  207. +2 −1 ...urces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/gears/loggerserver.js
  208. +2 −2 ...resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/gears/logstore.js
  209. +1 −1 ...m/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/gears/managedresourcestore.js
  210. +1 −0 .../com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/gears/multipartformdata.js
  211. +2 −1 ...n/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/gears/worker.js
  212. +2 −2 ...rces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/gears/workerchannel.js
  213. +2 −1 ...sources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/gears/workerpool.js
  214. +1 −0 ...om/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/graphics/abstractgraphics.js
  215. +2 −2 .../com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/graphics/canvasgraphics.js
  216. +6 −3 ...sources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/graphics/element.js
  217. +2 −0 .../com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/graphics/ellipseelement.js
  218. +1 −1 ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/graphics/ext/element.js
  219. +1 −0 .../resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/graphics/fill.js
  220. +2 −1 .../resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/graphics/font.js
  221. +1 −0 ...ources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/graphics/graphics.js
  222. +2 −0 ...es/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/graphics/groupelement.js
  223. +1 −0 .../com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/graphics/lineargradient.js
  224. +2 −0 .../resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/graphics/path.js
  225. +2 −0 ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/graphics/pathelement.js
  226. +2 −0 ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/graphics/rectelement.js
  227. +1 −0 ...urces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/graphics/solidfill.js
  228. +1 −0 ...esources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/graphics/stroke.js
  229. +2 −0 ...ithub/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/graphics/strokeandfillelement.js
  230. +2 −0 ...rces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/graphics/svgelement.js
  231. +25 −11 ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/graphics/svggraphics.js
  232. +2 −0 ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/graphics/textelement.js
  233. +8 −6 ...rces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/graphics/vmlelement.js
  234. +5 −3 ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/graphics/vmlgraphics.js
  235. +9 −2 ...esources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/history/history.js
  236. +1 −1 ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/history/html5history.js
  237. +6 −6 ...main/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/i18n/bidi.js
  238. +127 −106 .../resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/i18n/currency.js
  239. +1 −2 ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/i18n/currencycodemap.js
  240. +116 −56 ...es/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/i18n/datetimepatterns.js
  241. +1,299 −259 ...com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/i18n/datetimepatternsext.js
  242. +188 −78 ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/i18n/datetimesymbols.js
  243. +1,866 −399 .../com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/i18n/datetimesymbolsext.js
  244. +85 −31 ...urces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/i18n/messageformat.js
  245. +85 −15 ...ources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/i18n/numberformat.js
  246. +178 −111 ...com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/i18n/numberformatsymbols.js
  247. +1,022 −1,598 .../github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/i18n/numberformatsymbolsext.js
  248. BIN .../resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/blank.gif
  249. BIN ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/bubble_close.jpg
  250. BIN ...rces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/bubble_left.gif
  251. BIN ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/bubble_right.gif
  252. BIN ...ources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/button-bg.gif
  253. BIN ...es/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/check-outline.gif
  254. BIN ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/check-sprite.gif
  255. BIN .../resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/check.gif
  256. BIN ...ources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/close_box.gif
  257. BIN ...om/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/color-swatch-tick.gif
  258. BIN ...com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/dialog_close_box.gif
  259. BIN ...ithub/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/dimension-highlighted.png
  260. BIN ...hub/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/dimension-unhighlighted.png
  261. BIN ...resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/dropdn.gif
  262. BIN .../com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/dropdn_disabled.gif
  263. BIN ...sources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/dropdown.gif
  264. BIN ...es/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/gears_bluedot.gif
  265. BIN ...es/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/gears_offline.gif
  266. BIN ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/gears_online.gif
  267. BIN ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/gears_paused.gif
  268. BIN ...es/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/gears_syncing.gif
  269. BIN ...es/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/hsv-sprite-sm.gif
  270. BIN ...es/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/hsv-sprite-sm.png
  271. BIN ...urces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/hsv-sprite.gif
  272. BIN ...urces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/hsv-sprite.png
  273. BIN ...s/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/hsva-sprite-sm.gif
  274. BIN ...s/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/hsva-sprite-sm.png
  275. BIN ...rces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/hsva-sprite.gif
  276. BIN ...rces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/hsva-sprite.png
  277. BIN ...thub/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/left_anchor_bubble_bot.gif
  278. BIN ...thub/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/left_anchor_bubble_top.gif
  279. BIN ...rces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/menu-arrows.gif
  280. BIN .../resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/minus.png
  281. BIN ...github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/no_anchor_bubble_bot.gif
  282. BIN ...github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/no_anchor_bubble_top.gif
  283. BIN ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/offlineicons.png
  284. BIN ...n/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/plus.png
  285. BIN ...rces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/ratingstars.gif
  286. BIN ...hub/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/right_anchor_bubble_bot.gif
  287. BIN ...hub/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/right_anchor_bubble_top.gif
  288. BIN ...urces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/toolbar-bg.png
  289. BIN ...om/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/toolbar-separator.gif
  290. BIN ...es/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/toolbar_icons.gif
  291. BIN ...resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/tree/I.png
  292. BIN ...es/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/tree/cleardot.gif
  293. BIN ...ources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/tree/tree.gif
  294. BIN ...ources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/tree/tree.png
  295. BIN ...rces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/images/ui_controls.jpg
  296. +3 −2 ...main/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/iter/iter.js
  297. +39 −7 ...main/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/json/json.js
  298. +70 −0 ...com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/labs/async/result/result.js
  299. +162 −0 ...github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/labs/async/result/resultbase.js
  300. +423 −0 ...n/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/labs/net/xhr.js
Sorry, we could not display the entire diff because too many files (626) changed.
View
2 README.rus.md
@@ -82,7 +82,7 @@ archetype
-DarchetypeRepository=http://urmuzov.github.com/maven-repository/releases/
-DarchetypeGroupId=com.github.urmuzov \
-DarchetypeArtifactId=closure-package-maven-archetype \
- -DarchetypeVersion=1.0.2 \
+ -DarchetypeVersion=1.0.3 \
-DgroupId=my.test.group \
-DartifactId=test-artifact \
-Dversion=1.0.0-SNAPSHOT \
View
2 archetype/README.rus.md
@@ -23,7 +23,7 @@
-DarchetypeRepository=http://urmuzov.github.com/maven-repository/releases/
-DarchetypeGroupId=com.github.urmuzov \
-DarchetypeArtifactId=closure-package-maven-archetype \
- -DarchetypeVersion=1.0.2 \
+ -DarchetypeVersion=1.0.3 \
-DgroupId=my.test.group \
-DartifactId=test-artifact \
-Dversion=1.0.0-SNAPSHOT \
View
2 archetype/pom.xml
@@ -4,7 +4,7 @@
<parent>
<groupId>com.github.urmuzov</groupId>
<artifactId>closure-maven</artifactId>
- <version>1.0.2</version>
+ <version>1.0.3</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>closure-package-maven-archetype</artifactId>
View
3 archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
@@ -36,9 +36,8 @@
<includes>
<include>css/**</include>
<include>externs/**</include>
- <include>images/**</include>
+ <include>img/**</include>
<include>javascript/**</include>
- <include>resources/**</include>
</includes>
</fileSet>
</fileSets>
View
0 ...vascript/goog/net/crossdomainrpc_test.gif → ...esources/src/main/resources/css/style.css
File renamed without changes.
View
28 ...etype/src/main/resources/archetype-resources/src/main/resources/externs/webkit_console.js
@@ -0,0 +1,28 @@
+/*
+ * Copyright 2009 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @fileoverview Definitions for the Webkit console specification.
+ * @see http://trac.webkit.org/browser/trunk/WebCore/page/Console.idl
+ * @see http://trac.webkit.org/browser/trunk/WebCore/page/Console.cpp
+ * @externs
+ */
+
+// TODO(nicksantos): We should delete this file and put this in
+// the common externs.
+
+/** @type {Console} */
+var console;
View
BIN archetype/src/main/resources/archetype-resources/src/main/resources/img/closure_logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
2 compiler-plugin/pom.xml
@@ -4,7 +4,7 @@
<parent>
<groupId>com.github.urmuzov</groupId>
<artifactId>closure-maven</artifactId>
- <version>1.0.2</version>
+ <version>1.0.3</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>closure-compiler-maven-plugin</artifactId>
View
2 ...ugin/src/main/java/com/github/urmuzov/closurecompilermavenplugin/ClosureCompilerMojo.java
@@ -217,7 +217,7 @@ public void infoEffectiveListIfDebug(String name, List effectiveValue, List mojo
public void infoFiles(boolean enabled, String message, JSFileCollector collector) {
if (enabled) {
info(message);
- for (JSSourceFile f : collector.getFiles()) {
+ for (SourceFile f : collector.getFiles()) {
info(f.getOriginalPath());
}
}
View
17 ...r-plugin/src/main/java/com/github/urmuzov/closurecompilermavenplugin/JSFileCollector.java
@@ -1,6 +1,7 @@
package com.github.urmuzov.closurecompilermavenplugin;
import com.google.javascript.jscomp.JSSourceFile;
+import com.google.javascript.jscomp.SourceFile;
import java.io.File;
import java.util.*;
@@ -11,17 +12,17 @@
*/
public class JSFileCollector {
- private List<JSSourceFile> files = new ArrayList<JSSourceFile>();
+ private List<SourceFile> files = new ArrayList<SourceFile>();
public JSFileCollector() {
}
- public List<JSSourceFile> getFiles() {
- List<JSSourceFile> src = new ArrayList<JSSourceFile>();
+ public List<SourceFile> getFiles() {
+ List<SourceFile> src = new ArrayList<SourceFile>();
src.addAll(files);
- Collections.sort(src, new Comparator<JSSourceFile>() {
+ Collections.sort(src, new Comparator<SourceFile>() {
@Override
- public int compare(JSSourceFile jsSourceFile, JSSourceFile jsSourceFile1) {
+ public int compare(SourceFile jsSourceFile, SourceFile jsSourceFile1) {
return jsSourceFile.getOriginalPath().compareTo(jsSourceFile1.getOriginalPath());
}
});
@@ -46,11 +47,11 @@ public void collectFiles(Collection<File> files, Pattern excludePattern) {
}
}
- public void collectJSSourceFiles(Collection<JSSourceFile> files) {
+ public void collectJSSourceFiles(Collection<SourceFile> files) {
if (files == null) {
return;
}
- for (JSSourceFile file : files) {
+ for (SourceFile file : files) {
collect(file);
}
}
@@ -59,7 +60,7 @@ public void collectPath(String path, Pattern excludePattern) {
collectFile(new File(path), excludePattern);
}
- public void collect(JSSourceFile jSSourceFile) {
+ public void collect(SourceFile jSSourceFile) {
files.add(jSSourceFile);
}
View
4 examples/compiler-plugin-example1/pom.xml
@@ -3,14 +3,14 @@
<parent>
<groupId>com.github.urmuzov</groupId>
<artifactId>closure-maven</artifactId>
- <version>1.0.1</version>
+ <version>1.0.3</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.urmuzov</groupId>
<artifactId>closure-compiler-maven-plugin-example1</artifactId>
- <version>1.0.2</version>
+ <version>1.0.3</version>
<packaging>war</packaging>
<name>closure-compiler-maven-plugin-example1</name>
View
4 examples/compiler-plugin-example2/pom.xml
@@ -3,14 +3,14 @@
<parent>
<groupId>com.github.urmuzov</groupId>
<artifactId>closure-maven</artifactId>
- <version>1.0.1</version>
+ <version>1.0.3</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.urmuzov</groupId>
<artifactId>closure-compiler-maven-plugin-example2</artifactId>
- <version>1.0.2</version>
+ <version>1.0.3</version>
<packaging>war</packaging>
<name>closure-compiler-maven-plugin-example2</name>
View
2 package-plugin/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>com.github.urmuzov</groupId>
<artifactId>closure-maven</artifactId>
- <version>1.0.2</version>
+ <version>1.0.3</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>closure-package-maven-plugin</artifactId>
View
9 ...lugin/src/main/java/com/github/urmuzov/closuremaven/packageplugin/ClosurePackageMojo.java
@@ -36,6 +36,11 @@
*/
private String buildDirectory;
/**
+ * @parameter expression="${project.build.directory}/closure"
+ * @required
+ */
+ private File closureDirectory;
+ /**
* @parameter default-value="${project}"
*/
private MavenProject mavenProject;
@@ -59,7 +64,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {
try {
Properties props = new Properties();
for (Entry<String, String> e : closurePackages.entrySet()) {
- FileUtils.copyDirectory(new File(buildDirectory + "/classes/" + e.getValue().replace(".", "/")), new File(buildDirectory + "/closure"));
+ FileUtils.copyDirectory(new File(buildDirectory + "/classes/" + e.getValue().replace(".", "/")), closureDirectory);
props.setProperty(e.getKey(), e.getValue());
}
File out = new File(buildDirectory + "/classes/META-INF/closure-packages.properties");
@@ -104,7 +109,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {
Collections.sort(fileNames);
for (String fileName : fileNames) {
if (fileName.startsWith(closurePackageResource)) {
- File out = new File(buildDirectory + "/closure/" + fileName.substring(closurePackageResource.length()));
+ File out = new File(closureDirectory, fileName.substring(closurePackageResource.length()));
if (fileName.endsWith("/")) {
info("Dir: " + fileName);
out.mkdirs();
View
2 packages/closure-bootstrap/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>com.github.urmuzov</groupId>
<artifactId>closure-maven</artifactId>
- <version>1.0.2</version>
+ <version>1.0.3</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>closure-bootstrap-package</artifactId>
View
2 packages/closure-library/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>com.github.urmuzov</groupId>
<artifactId>closure-maven</artifactId>
- <version>1.0.2</version>
+ <version>1.0.3</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>closure-library-package</artifactId>
View
0 ...kage/javascript/goog/css/autocomplete.css → ...losurelibrarypackage/css/autocomplete.css
File renamed without changes.
View
0 ...arypackage/javascript/goog/css/bubble.css → ...aven/closurelibrarypackage/css/bubble.css
File renamed without changes.
View
0 ...arypackage/javascript/goog/css/button.css → ...aven/closurelibrarypackage/css/button.css
File renamed without changes.
View
0 ...ackage/javascript/goog/css/charpicker.css → .../closurelibrarypackage/css/charpicker.css
File renamed without changes.
View
0 ...ypackage/javascript/goog/css/checkbox.css → ...en/closurelibrarypackage/css/checkbox.css
File renamed without changes.
View
0 ...e/javascript/goog/css/colormenubutton.css → ...urelibrarypackage/css/colormenubutton.css
File renamed without changes.
View
0 ...kage/javascript/goog/css/colorpalette.css → ...losurelibrarypackage/css/colorpalette.css
File renamed without changes.
View
0 ...cript/goog/css/colorpicker-simplegrid.css → ...arypackage/css/colorpicker-simplegrid.css
File renamed without changes.
View
0 ...ypackage/javascript/goog/css/combobox.css → ...en/closurelibrarypackage/css/combobox.css
File renamed without changes.
View
0 ...arypackage/javascript/goog/css/common.css → ...aven/closurelibrarypackage/css/common.css
File renamed without changes.
View
0 ...ackage/javascript/goog/css/css3button.css → .../closurelibrarypackage/css/css3button.css
File renamed without changes.
View
0 ...ge/javascript/goog/css/css3menubutton.css → ...surelibrarypackage/css/css3menubutton.css
File renamed without changes.
View
0 ...kage/javascript/goog/css/custombutton.css → ...losurelibrarypackage/css/custombutton.css
File renamed without changes.
View
0 ...ackage/javascript/goog/css/datepicker.css → .../closurelibrarypackage/css/datepicker.css
File renamed without changes.
View
0 ...arypackage/javascript/goog/css/dialog.css → ...aven/closurelibrarypackage/css/dialog.css
File renamed without changes.
View
0 ...e/javascript/goog/css/dimensionpicker.css → ...urelibrarypackage/css/dimensionpicker.css
File renamed without changes.
View
0 .../javascript/goog/css/dragdropdetector.css → ...relibrarypackage/css/dragdropdetector.css
File renamed without changes.
View
0 ...age/javascript/goog/css/editor/bubble.css → ...osurelibrarypackage/css/editor/bubble.css
File renamed without changes.
View
0 ...age/javascript/goog/css/editor/dialog.css → ...osurelibrarypackage/css/editor/dialog.css
File renamed without changes.
View
0 ...script/goog/css/editor/equationeditor.css → ...rarypackage/css/editor/equationeditor.css
File renamed without changes.
View
0 ...javascript/goog/css/editor/linkdialog.css → ...elibrarypackage/css/editor/linkdialog.css
File renamed without changes.
View
0 ...age/javascript/goog/css/editortoolbar.css → ...osurelibrarypackage/css/editortoolbar.css
File renamed without changes.
View
0 ...kage/javascript/goog/css/filteredmenu.css → ...losurelibrarypackage/css/filteredmenu.css
File renamed without changes.
View
0 ...ript/goog/css/filterobservingmenuitem.css → ...rypackage/css/filterobservingmenuitem.css
File renamed without changes.
View
0 ...ackage/javascript/goog/css/flatbutton.css → .../closurelibrarypackage/css/flatbutton.css
File renamed without changes.
View
0 ...ge/javascript/goog/css/flatmenubutton.css → ...surelibrarypackage/css/flatmenubutton.css
File renamed without changes.
View
0 ...package/javascript/goog/css/hovercard.css → ...n/closurelibrarypackage/css/hovercard.css
File renamed without changes.
View
0 ...ckage/javascript/goog/css/hsvapalette.css → ...closurelibrarypackage/css/hsvapalette.css
File renamed without changes.
View
0 ...ackage/javascript/goog/css/hsvpalette.css → .../closurelibrarypackage/css/hsvpalette.css
File renamed without changes.
View
0 ...e/javascript/goog/css/imagelessbutton.css → ...urelibrarypackage/css/imagelessbutton.css
File renamed without changes.
View
0 ...vascript/goog/css/imagelessmenubutton.css → ...ibrarypackage/css/imagelessmenubutton.css
File renamed without changes.
View
0 ...e/javascript/goog/css/inputdatepicker.css → ...urelibrarypackage/css/inputdatepicker.css
File renamed without changes.
View
0 ...ackage/javascript/goog/css/linkbutton.css → .../closurelibrarypackage/css/linkbutton.css
File renamed without changes.
View
0 ...brarypackage/javascript/goog/css/menu.css → ...emaven/closurelibrarypackage/css/menu.css
File renamed without changes.
View
0 ...ackage/javascript/goog/css/menubutton.css → .../closurelibrarypackage/css/menubutton.css
File renamed without changes.
View
11 ...ypackage/javascript/goog/css/menuitem.css → ...en/closurelibrarypackage/css/menuitem.css
@@ -94,3 +94,14 @@
right: 0;
text-align: right;
}
+
+/* Mnemonic styles. */
+.goog-menuitem-mnemonic-hint {
+ text-decoration: underline;
+}
+
+.goog-menuitem-mnemonic-separator {
+ color: #999;
+ font-size: 12px;
+ padding-left: 4px;
+}
View
0 ...age/javascript/goog/css/menuseparator.css → ...osurelibrarypackage/css/menuseparator.css
File renamed without changes.
View
0 ...e/javascript/goog/css/multitestrunner.css → ...urelibrarypackage/css/multitestrunner.css
File renamed without changes.
View
0 ...rypackage/javascript/goog/css/offline.css → ...ven/closurelibrarypackage/css/offline.css
File renamed without changes.
View
0 ...rypackage/javascript/goog/css/palette.css → ...ven/closurelibrarypackage/css/palette.css
File renamed without changes.
View
0 ...e/javascript/goog/css/popupdatepicker.css → ...urelibrarypackage/css/popupdatepicker.css
File renamed without changes.
View
0 ...kage/javascript/goog/css/roundedpanel.css → ...losurelibrarypackage/css/roundedpanel.css
File renamed without changes.
View
0 ...ackage/javascript/goog/css/roundedtab.css → .../closurelibrarypackage/css/roundedtab.css
File renamed without changes.
View
0 ...rypackage/javascript/goog/css/submenu.css → ...ven/closurelibrarypackage/css/submenu.css
File renamed without changes.
View
0 ...ibrarypackage/javascript/goog/css/tab.css → ...remaven/closurelibrarypackage/css/tab.css
File renamed without changes.
View
0 ...arypackage/javascript/goog/css/tabbar.css → ...aven/closurelibrarypackage/css/tabbar.css
File renamed without changes.
View
0 ...ckage/javascript/goog/css/tablesorter.css → ...closurelibrarypackage/css/tablesorter.css
File renamed without changes.
View
0 ...rypackage/javascript/goog/css/toolbar.css → ...ven/closurelibrarypackage/css/toolbar.css
File renamed without changes.
View
0 ...rypackage/javascript/goog/css/tooltip.css → ...ven/closurelibrarypackage/css/tooltip.css
File renamed without changes.
View
0 ...brarypackage/javascript/goog/css/tree.css → ...emaven/closurelibrarypackage/css/tree.css
File renamed without changes.
View
0 .../javascript/goog/css/tristatemenuitem.css → ...relibrarypackage/css/tristatemenuitem.css
File renamed without changes.
View
18 ...rces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/array/array.js
@@ -62,7 +62,7 @@ goog.array.peek = function(array) {
goog.array.ARRAY_PROTOTYPE_ = Array.prototype;
-// NOTE(user): Since most of the array functions are generic it allows you to
+// NOTE(arv): Since most of the array functions are generic it allows you to
// pass an array-like object. Strings have a length and are considered array-
// like. However, the 'in' operator does not work on strings so we cannot just
// use the array path even if the browser supports indexing into strings. We
@@ -161,14 +161,14 @@ goog.array.lastIndexOf = goog.NATIVE_ARRAY_PROTOTYPES &&
*
* @param {goog.array.ArrayLike} arr Array or array like object over
* which to iterate.
- * @param {Function} f The function to call for every element. This function
- * takes 3 arguments (the element, the index and the array). The return
- * value is ignored. The function is called only for indexes of the array
- * which have assigned values; it is not called for indexes which have
- * been deleted or which have never been assigned values.
- *
- * @param {Object=} opt_obj The object to be used as the value of 'this'
+ * @param {?function(this: T, ...)} f The function to call for every element.
+ * This function takes 3 arguments (the element, the index and the array).
+ * The return value is ignored. The function is called only for indexes of
+ * the array which have assigned values; it is not called for indexes which
+ * have been deleted or which have never been assigned values.
+ * @param {T=} opt_obj The object to be used as the value of 'this'
* within f.
+ * @template T
*/
goog.array.forEach = goog.NATIVE_ARRAY_PROTOTYPES &&
goog.array.ARRAY_PROTOTYPE_.forEach ?
@@ -987,7 +987,7 @@ goog.array.binarySearch_ = function(arr, compareFn, isEvaluator, opt_target,
* first argument is less than, equal to, or greater than the second.
*/
goog.array.sort = function(arr, opt_compareFn) {
- // TODO(user): Update type annotation since null is not accepted.
+ // TODO(arv): Update type annotation since null is not accepted.
goog.asserts.assert(arr.length != null);
goog.array.ARRAY_PROTOTYPE_.sort.call(
View
2 .../com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/asserts/asserts.js
@@ -71,7 +71,7 @@ goog.asserts.AssertionError = function(messagePattern, messageArgs) {
goog.inherits(goog.asserts.AssertionError, goog.debug.Error);
-/** @inheritDoc */
+/** @override */
goog.asserts.AssertionError.prototype.name = 'AssertionError';
View
2 ...thub/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/async/conditionaldelay.js
@@ -123,7 +123,7 @@ goog.async.ConditionalDelay.prototype.runUntil_ = 0;
goog.async.ConditionalDelay.prototype.isDone_ = false;
-/** @inheritDoc */
+/** @override */
goog.async.ConditionalDelay.prototype.disposeInternal = function() {
this.delay_.dispose();
delete this.listener_;
View
1 ...rces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/async/delay.js
@@ -17,6 +17,7 @@
* invoked after a delay, especially when that delay is frequently restarted.
* Examples include delaying before displaying a tooltip, menu hysteresis,
* idle timers, etc.
+ * @author brenneman@google.com (Shawn Brenneman)
* @see ../demos/timers.html
*/
View
2 ...s/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/async/throttle.js
@@ -158,7 +158,7 @@ goog.async.Throttle.prototype.resume = function() {
};
-/** @inheritDoc */
+/** @override */
goog.async.Throttle.prototype.disposeInternal = function() {
goog.async.Throttle.superClass_.disposeInternal.call(this);
this.stop();
View
128 ...n/resources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/base.js
@@ -202,7 +202,7 @@ goog.exportPath_ = function(name, opt_object, opt_objectToExportTo) {
* @param {string} name The fully qualified name.
* @param {Object=} opt_obj The object within which to look; default is
* |goog.global|.
- * @return {Object} The object or, if not found, null.
+ * @return {?} The value (object or primitive) or, if not found, null.
*/
goog.getObjectByName = function(name, opt_obj) {
var parts = name.split('.');
@@ -266,7 +266,7 @@ goog.addDependency = function(relPath, provides, requires) {
-// NOTE(user): The debug DOM loader was included in base.js as an orignal
+// NOTE(nnaze): The debug DOM loader was included in base.js as an orignal
// way to do "debug-mode" development. The dependency system can sometimes
// be confusing, as can the debug DOM loader's asyncronous nature.
//
@@ -309,10 +309,10 @@ goog.ENABLE_DEBUG_LOADER = true;
goog.require = function(name) {
// if the object already exists we do not need do do anything
- // TODO(user): If we start to support require based on file name this has
+ // TODO(arv): If we start to support require based on file name this has
// to change
- // TODO(user): If we allow goog.foo.* this has to change
- // TODO(user): If we implement dynamic load after page load we should probably
+ // TODO(arv): If we allow goog.foo.* this has to change
+ // TODO(arv): If we implement dynamic load after page load we should probably
// not remove this code for the compiled output
if (!COMPILED) {
if (goog.isProvided_(name)) {
@@ -384,12 +384,14 @@ goog.nullFunction = function() {};
/**
* The identity function. Returns its first argument.
*
- * @param {...*} var_args The arguments of the function.
- * @return {*} The first argument.
+ * @param {*=} opt_returnValue The single value that will be returned.
+ * @param {...*} var_args Optional trailing arguments. These are ignored.
+ * @return {?} The first argument. We can't know the type -- just pass it along
+ * without type.
* @deprecated Use goog.functions.identity instead.
*/
-goog.identityFunction = function(var_args) {
- return arguments[0];
+goog.identityFunction = function(opt_returnValue, var_args) {
+ return opt_returnValue;
};
@@ -422,11 +424,28 @@ goog.abstractMethod = function() {
*/
goog.addSingletonGetter = function(ctor) {
ctor.getInstance = function() {
- return ctor.instance_ || (ctor.instance_ = new ctor());
+ if (ctor.instance_) {
+ return ctor.instance_;
+ }
+ if (goog.DEBUG) {
+ // NOTE: JSCompiler can't optimize away Array#push.
+ goog.instantiatedSingletons_[goog.instantiatedSingletons_.length] = ctor;
+ }
+ return ctor.instance_ = new ctor;
};
};
+/**
+ * All singleton classes that have been instantiated, for testing. Don't read
+ * it directly, use the {@code goog.testing.singleton} module. The compiler
+ * removes this variable if unused.
+ * @type {!Array.<!Function>}
+ * @private
+ */
+goog.instantiatedSingletons_ = [];
+
+
if (!COMPILED && goog.ENABLE_DEBUG_LOADER) {
/**
* Object used to keep track of urls that have already been added. This
@@ -724,52 +743,6 @@ goog.typeOf = function(value) {
/**
- * Safe way to test whether a property is enumarable. It allows testing
- * for enumerable on objects where 'propertyIsEnumerable' is overridden or
- * does not exist (like DOM nodes in IE). Does not use browser native
- * Object.propertyIsEnumerable.
- * @param {Object} object The object to test if the property is enumerable.
- * @param {string} propName The property name to check for.
- * @return {boolean} True if the property is enumarable.
- * @private
- */
-goog.propertyIsEnumerableCustom_ = function(object, propName) {
- // KJS in Safari 2 is not ECMAScript compatible and lacks crucial methods
- // such as propertyIsEnumerable. We therefore use a workaround.
- // Does anyone know a more efficient work around?
- if (propName in object) {
- for (var key in object) {
- if (key == propName &&
- Object.prototype.hasOwnProperty.call(object, propName)) {
- return true;
- }
- }
- }
- return false;
-};
-
-
-/**
- * Safe way to test whether a property is enumarable. It allows testing
- * for enumerable on objects where 'propertyIsEnumerable' is overridden or
- * does not exist (like DOM nodes in IE).
- * @param {Object} object The object to test if the property is enumerable.
- * @param {string} propName The property name to check for.
- * @return {boolean} True if the property is enumarable.
- * @private
- */
-goog.propertyIsEnumerable_ = function(object, propName) {
- // In IE if object is from another window, cannot use propertyIsEnumerable
- // from this window's Object. Will raise a 'JScript object expected' error.
- if (object instanceof Object) {
- return Object.prototype.propertyIsEnumerable.call(object, propName);
- } else {
- return goog.propertyIsEnumerableCustom_(object, propName);
- }
-};
-
-
-/**
* Returns true if the specified value is not |undefined|.
* WARNING: Do not use this to test if an object has a property. Use the in
* operator instead. Additionally, this function assumes that the global
@@ -884,8 +857,10 @@ goog.isFunction = function(val) {
* @return {boolean} Whether variable is an object.
*/
goog.isObject = function(val) {
- var type = goog.typeOf(val);
- return type == 'object' || type == 'array' || type == 'function';
+ var type = typeof val;
+ return type == 'object' && val != null || type == 'function';
+ // return Object(val) === val also works, but is slower, especially if val is
+ // not an object.
};
@@ -901,7 +876,7 @@ goog.isObject = function(val) {
* @return {number} The unique ID for the object.
*/
goog.getUid = function(obj) {
- // TODO(user): Make the type stricter, do not accept null.
+ // TODO(arv): Make the type stricter, do not accept null.
// In Opera window.hasOwnProperty exists but always returns false so we avoid
// using it. As a consequence the unique ID generated for BaseClass.prototype
@@ -918,7 +893,7 @@ goog.getUid = function(obj) {
* @param {Object} obj The object to remove the unique ID field from.
*/
goog.removeUid = function(obj) {
- // TODO(user): Make the type stricter, do not accept null.
+ // TODO(arv): Make the type stricter, do not accept null.
// DOM nodes in IE are not instance of Object and throws exception
// for delete. Instead we try to use removeAttribute
@@ -1006,7 +981,7 @@ goog.cloneObject = function(obj) {
* compiler can better support duck-typing constructs as used in
* goog.cloneObject.
*
- * TODO(user): Remove once the JSCompiler can infer that the check for
+ * TODO(brenneman): Remove once the JSCompiler can infer that the check for
* proto.clone is safe in goog.cloneObject.
*
* @type {Function}
@@ -1319,17 +1294,39 @@ goog.getCssName = function(className, opt_modifier) {
* @param {!Object} mapping A map of strings to strings where keys are possible
* arguments to goog.getCssName() and values are the corresponding values
* that should be returned.
- * @param {string=} style The style of css name mapping. There are two valid
+ * @param {string=} opt_style The style of css name mapping. There are two valid
* options: 'BY_PART', and 'BY_WHOLE'.
* @see goog.getCssName for a description.
*/
-goog.setCssNameMapping = function(mapping, style) {
+goog.setCssNameMapping = function(mapping, opt_style) {
goog.cssNameMapping_ = mapping;
- goog.cssNameMappingStyle_ = style;
+ goog.cssNameMappingStyle_ = opt_style;
};
/**
+ * To use CSS renaming in compiled mode, one of the input files should have a
+ * call to goog.setCssNameMapping() with an object literal that the JSCompiler
+ * can extract and use to replace all calls to goog.getCssName(). In uncompiled
+ * mode, JavaScript code should be loaded before this base.js file that declares
+ * a global variable, CLOSURE_CSS_NAME_MAPPING, which is used below. This is
+ * to ensure that the mapping is loaded before any calls to goog.getCssName()
+ * are made in uncompiled mode.
+ *
+ * A hook for overriding the CSS name mapping.
+ * @type {Object|undefined}
+ */
+goog.global.CLOSURE_CSS_NAME_MAPPING;
+
+
+if (!COMPILED && goog.global.CLOSURE_CSS_NAME_MAPPING) {
+ // This does not call goog.setCssNameMapping() because the JSCompiler
+ // requires that goog.setCssNameMapping() be called with an object literal.
+ goog.cssNameMapping_ = goog.global.CLOSURE_CSS_NAME_MAPPING;
+}
+
+
+/**
* Abstract implementation of goog.getMsg for use with localized messages.
* @param {string} str Translatable string, places holders in the form {$foo}.
* @param {Object=} opt_values Map of place holder name to value.
@@ -1396,9 +1393,8 @@ goog.exportProperty = function(object, publicName, symbol) {
* ParentClass.prototype.foo = function(a) { }
*
* function ChildClass(a, b, c) {
- * ParentClass.call(this, a, b);
+ * goog.base(this, a, b);
* }
- *
* goog.inherits(ChildClass, ParentClass);
*
* var child = new ChildClass('a', 'b', 'see');
View
14 ...rces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/color/color.js
@@ -58,6 +58,20 @@ goog.color.parse = function(str) {
/**
+ * Determines if the given string can be parsed as a color.
+ * {@see goog.color.parse}.
+ * @param {string} str Potential color string.
+ * @return {boolean} True if str is in a format that can be parsed to a color.
+ */
+goog.color.isValidColor = function(str) {
+ var maybeHex = goog.color.prependHashIfNecessaryHelper(str);
+ return !!(goog.color.isValidHexColor_(maybeHex) ||
+ goog.color.isValidRgbColor_(str).length ||
+ goog.color.names && goog.color.names[str.toLowerCase()]);
+};
+
+
+/**
* Parses red, green, blue components out of a valid rgb color string.
* @param {string} str RGB representation of a color.
* {@see goog.color.isValidRgbColor_}.
View
2 ...ces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/crypt/base64.js
@@ -17,6 +17,8 @@
* work with decoded values in arrays of bytes. By "byte" I mean a number
* in [0, 255].
*
+ * @author doughtie@google.com (Gavin Doughtie)
+ * @author fschneider@google.com (Fritz Schneider)
*/
goog.provide('goog.crypt.base64');
View
10 ...com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/crypt/blobhasher.js
@@ -42,7 +42,7 @@ goog.require('goog.fs');
/**
* Construct the hash computer.
*
- * @param {goog.crypt.Hash} hashFn The hash function to use.
+ * @param {!goog.crypt.Hash} hashFn The hash function to use.
* @param {number=} opt_blockSize Processing block size.
* @constructor
* @extends {goog.events.EventTarget}
@@ -52,7 +52,7 @@ goog.crypt.BlobHasher = function(hashFn, opt_blockSize) {
/**
* The actual hash function.
- * @type {goog.crypt.Hash}
+ * @type {!goog.crypt.Hash}
* @private
*/
this.hashFn_ = hashFn;
@@ -94,7 +94,7 @@ goog.crypt.BlobHasher = function(hashFn, opt_blockSize) {
/**
* The logger used by this object.
- * @type {goog.debug.Logger}
+ * @type {!goog.debug.Logger}
* @private
*/
this.logger_ = goog.debug.Logger.getLogger('goog.crypt.BlobHasher');
@@ -117,7 +117,7 @@ goog.crypt.BlobHasher.EventType = {
/**
* Start the hash computation.
- * @param {Blob} blob The blob of data to compute the hash for.
+ * @param {!Blob} blob The blob of data to compute the hash for.
*/
goog.crypt.BlobHasher.prototype.hash = function(blob) {
this.abort();
@@ -151,7 +151,7 @@ goog.crypt.BlobHasher.prototype.getBytesProcessed = function() {
/**
- * @return {?Array.<number>} The computed hash value or null if not ready.
+ * @return {Array.<number>} The computed hash value or null if not ready.
*/
goog.crypt.BlobHasher.prototype.getHash = function() {
return this.hashVal_;
View
83 .../com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/crypt/hash_test.js
@@ -1,83 +0,0 @@
-// Copyright 2011 The Closure Library Authors. All Rights Reserved.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS-IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-/**
- * @fileoverview Unit tests for the abstract cryptographic hash interface.
- *
- */
-
-goog.provide('goog.crypt.hash_test');
-
-goog.require('goog.testing.asserts');
-goog.setTestOnly('hash_test');
-
-
-goog.crypt.hash_test.runBasicTests = function(hash) {
- // Compute some hash.
- hash.update([97, 158]);
- var golden = hash.digest();
-
- // Recompute the hash.
- hash.reset();
- hash.update([97, 158]);
- assertArrayEquals('The reset did not produce the initial state',
- golden, hash.digest());
-
- // Check for a trivial collision.
- hash.reset();
- hash.update([158, 97]);
- assertTrue('Swapping bytes resulted in a hash collision',
- !!goog.testing.asserts.findDifferences(golden, hash.digest()));
-
- // Compute in parts.
- hash.reset();
- hash.update([97]);
- hash.update([158]);
- assertArrayEquals('Partial updates resulted in a different hash',
- golden, hash.digest());
-
- // Test update with specified length.
- hash.reset();
- hash.update([97, 158], 0);
- hash.update([97, 158, 32], 2);
- assertArrayEquals('Updating with an explicit buffer length did not work',
- golden, hash.digest());
-
- // Test array and string inputs.
- hash.reset();
- hash.update([97, 66]);
- golden = hash.digest();
- hash.reset();
- hash.update('aB');
- assertArrayEquals('String and array inputs should give the same result',
- golden, hash.digest());
-
- // Empty hash.
- hash.reset();
- var empty = hash.digest();
- assertTrue('Empty hash collided with a non-trivial one',
- !!goog.testing.asserts.findDifferences(golden, empty));
-
- // Zero-length array update.
- hash.reset();
- hash.update([]);
- assertArrayEquals('Updating with an empty array did not give an empty hash',
- empty, hash.digest());
-
- // Zero-length string update.
- hash.reset();
- hash.update('');
- assertArrayEquals('Updating with an empty string did not give an empty hash',
- empty, hash.digest());
-};
View
6 ...urces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/crypt/hmac.js
@@ -126,20 +126,20 @@ goog.crypt.Hmac.prototype.initialize_ = function(key) {
};
-/** @inheritDoc */
+/** @override */
goog.crypt.Hmac.prototype.reset = function() {
this.hasher_.reset();
this.hasher_.update(this.keyI_);
};
-/** @inheritDoc */
+/** @override */
goog.crypt.Hmac.prototype.update = function(bytes, opt_length) {
this.hasher_.update(bytes, opt_length);
};
-/** @inheritDoc */
+/** @override */
goog.crypt.Hmac.prototype.digest = function() {
var temp = this.hasher_.digest();
this.hasher_.reset();
View
82 ...ources/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/crypt/md5.js
@@ -23,9 +23,12 @@
* var hash = md5.digest();
*
* Performance:
- * Chrome 10/11 ~100 Mbit/s
- * Firefox 4.0 ~16 Mbit/s
- * IE9 ~20 Mbit/s
+ * Chrome 14 ~450 Mbit/s
+ * Chrome 13 (in a VM) ~250 Mbit/s
+ * Firefox 6.0 (in a VM) ~100 Mbit/s
+ * IE9 (in a VM) ~27 Mbit/s
+ * Firefox 3.6 ~15 Mbit/s
+ * IE8 (in a VM) ~13 Mbit/s
*
*/
@@ -119,7 +122,7 @@ goog.crypt.Md5.T_ = [
*/
-/** @inheritDoc */
+/** @override */
goog.crypt.Md5.prototype.reset = function() {
this.chain_[0] = 0x67452301;
this.chain_[1] = 0xefcdab89;
@@ -134,7 +137,7 @@ goog.crypt.Md5.prototype.reset = function() {
/**
* Internal compress helper function. It takes a block of data (64 bytes)
* and updates the accumulator.
- * @param {Array.<number>} buf Buffer with the block to compress.
+ * @param {Array.<number>|Uint8Array|string} buf The block to compress.
* @param {number=} opt_offset Offset of the block in the buffer.
* @private
*/
@@ -147,11 +150,20 @@ goog.crypt.Md5.prototype.compress_ = function(buf, opt_offset) {
var X = new Array(16);
// Get 16 little endian words. It is not worth unrolling this for Chrome 11.
- for (var i = opt_offset; i < opt_offset + 64; i += 4) {
- X[i / 4] = (buf[i]) |
- (buf[i + 1] << 8) |
- (buf[i + 2] << 16) |
- (buf[i + 3] << 24);
+ if (goog.isString(buf)) {
+ for (var i = 0; i < 16; ++i) {
+ X[i] = (buf.charCodeAt(opt_offset++)) |
+ (buf.charCodeAt(opt_offset++) << 8) |
+ (buf.charCodeAt(opt_offset++) << 16) |
+ (buf.charCodeAt(opt_offset++) << 24);
+ }
+ } else {
+ for (var i = 0; i < 16; ++i) {
+ X[i] = (buf[opt_offset++]) |
+ (buf[opt_offset++] << 8) |
+ (buf[opt_offset++] << 16) |
+ (buf[opt_offset++] << 24);
+ }
}
var A = this.chain_[0];
@@ -333,36 +345,50 @@ goog.crypt.Md5.prototype.compress_ = function(buf, opt_offset) {
};
-/** @inheritDoc */
+/** @override */
goog.crypt.Md5.prototype.update = function(bytes, opt_length) {
if (!goog.isDef(opt_length)) {
opt_length = bytes.length;
}
+ var lengthMinusBlock = opt_length - 64;
// Copy some object properties to local variables in order to save on access
// time from inside the loop (~10% speedup was observed on Chrome 11).
var block = this.block_;
var blockLength = this.blockLength_;
var i = 0;
- // Strangely enough, it is faster to copy the data than to pass over the
- // buffer and an offset. Copying in a loop is also as fast as array slicing.
- // This was tested on Chrome 11 and Firefox 3.6. Please do not optimize
- // the following without careful profiling.
- if (goog.isString(bytes)) {
- while (i < opt_length) {
- block[blockLength++] = bytes.charCodeAt(i++);
- if (blockLength == 64) {
- this.compress_(block);
- blockLength = 0;
+ // The outer while loop should execute at most twice.
+ while (i < opt_length) {
+ // When we have no data in the block to top up, we can directly process the
+ // input buffer (assuming it contains sufficient data). This gives ~30%
+ // speedup on Chrome 14 and ~70% speedup on Firefox 6.0, but requires that
+ // the data is provided in large chunks (or in multiples of 64 bytes).
+ if (blockLength == 0) {
+ while (i <= lengthMinusBlock) {
+ this.compress_(bytes, i);
+ i += 64;
}
}
- } else {
- while (i < opt_length) {
- block[blockLength++] = bytes[i++];
- if (blockLength == 64) {
- this.compress_(block);
- blockLength = 0;
+ if (goog.isString(bytes)) {
+ while (i < opt_length) {
+ block[blockLength++] = bytes.charCodeAt(i++);
+ if (blockLength == 64) {
+ this.compress_(block);
+ blockLength = 0;
+ // Jump to the outer loop so we use the full-block optimization.
+ break;
+ }
+ }
+ } else {
+ while (i < opt_length) {
+ block[blockLength++] = bytes[i++];
+ if (blockLength == 64) {
+ this.compress_(block);
+ blockLength = 0;
+ // Jump to the outer loop so we use the full-block optimization.
+ break;
+ }
}
}
}
@@ -372,7 +398,7 @@ goog.crypt.Md5.prototype.update = function(bytes, opt_length) {
};
-/** @inheritDoc */
+/** @override */
goog.crypt.Md5.prototype.digest = function() {
// This must accommodate at least 1 padding byte (0x80), 8 bytes of
// total bitlength, and must end at a 64-byte boundary.
View
6 ...urces/com/github/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/crypt/sha1.js
@@ -80,7 +80,7 @@ goog.crypt.Sha1 = function() {
goog.inherits(goog.crypt.Sha1, goog.crypt.Hash);
-/** @inheritDoc */
+/** @override */
goog.crypt.Sha1.prototype.reset = function() {
this.chain_[0] = 0x67452301;
this.chain_[1] = 0xefcdab89;
@@ -164,7 +164,7 @@ goog.crypt.Sha1.prototype.compress_ = function(buf, opt_offset) {
};
-/** @inheritDoc */
+/** @override */
goog.crypt.Sha1.prototype.update = function(bytes, opt_length) {
if (!goog.isDef(opt_length)) {
opt_length = bytes.length;
@@ -201,7 +201,7 @@ goog.crypt.Sha1.prototype.update = function(bytes, opt_length) {
};
-/** @inheritDoc */
+/** @override */
goog.crypt.Sha1.prototype.digest = function() {
var digest = [];
var totalBits = this.total_ * 8;
View
11 .../urmuzov/closuremaven/closurelibrarypackage/javascript/goog/cssom/cssom_test_import_1.css
@@ -1,11 +0,0 @@
-/*
- * Copyright 2010 The Closure Library Authors. All Rights Reserved.
- *
- * Use of this source code is governed by the Apache License, Version 2.0.
- * See the COPYING file for details.
- */
-
-@import "cssom_test_import_2.css";
-.css-import-1 {
- display: block;
-}
View
10 .../urmuzov/closuremaven/closurelibrarypackage/javascript/goog/cssom/cssom_test_import_2.css
@@ -1,10 +0,0 @@
-/*
- * Copyright 2010 The Closure Library Authors. All Rights Reserved.
- *
- * Use of this source code is governed by the Apache License, Version 2.0.
- * See the COPYING file for details.
- */
-
-.css-import-2 {
- display: block;
-}
View
10 ...ub/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/cssom/cssom_test_link_1.css
@@ -1,10 +0,0 @@
-/*
- * Copyright 2010 The Closure Library Authors. All Rights Reserved.
- *
- * Use of this source code is governed by the Apache License, Version 2.0.
- * See the COPYING file for details.
- */
-
-.css-link-1 {
- display: block;
-}
View
10 ...zov/closuremaven/closurelibrarypackage/javascript/goog/cssom/iframe/style_test_import.css
@@ -1,10 +0,0 @@
-/*
- * Copyright 2010 The Closure Library Authors. All Rights Reserved.
- *
- * Use of this source code is governed by the Apache License, Version 2.0.
- * See the COPYING file for details.
- */
-
-div div strong {
- font-style: italic;
-}
View
44 ...ithub/urmuzov/closuremaven/closurelibrarypackage/javascript/goog/datasource/datasource.js
@@ -52,14 +52,14 @@ goog.ds.DataNode = function() {};
* Get the value of the node
* @return {Object} The value of the node, or null if no value.
*/
-goog.ds.DataNode.prototype.get = goog.nullFunction;
+goog.ds.DataNode.prototype.get = goog.abstractMethod;
/**
* Set the value of the node
* @param {Object} value The new value of the node.
*/
-goog.ds.DataNode.prototype.set = goog.nullFunction;
+goog.ds.DataNode.prototype.set = goog.abstractMethod;
/**
@@ -68,7 +68,7 @@ goog.ds.DataNode.prototype.set = goog.nullFunction;
* @param {string=} opt_selector String selector to choose child nodes.
* @return {goog.ds.DataNodeList} The child nodes.
*/
-goog.ds.DataNode.prototype.getChildNodes = goog.nullFunction;
+goog.ds.DataNode.prototype.getChildNodes = goog.abstractMethod;
/**
@@ -79,7 +79,7 @@ goog.ds.DataNode.prototype.getChildNodes = goog.nullFunction;
* @return {goog.ds.DataNode} The child node, or null
* if no node of this name exists.
*/
-goog.ds.DataNode.prototype.getChildNode = goog.nullFunction;
+goog.ds.DataNode.prototype.getChildNode = goog.abstractMethod;
/**
@@ -88,7 +88,7 @@ goog.ds.DataNode.prototype.getChildNode = goog.nullFunction;
* @return {Object} The value of the node, or null if no value or the child node
* doesn't exist.
*/
-goog.ds.DataNode.prototype.getChildNodeValue = goog.nullFunction;
+goog.ds.DataNode.prototype.getChildNodeValue = goog.abstractMethod;
/**
@@ -99,48 +99,48 @@ goog.ds.DataNode.prototype.getChildNodeValue = goog.nullFunction;
* or null. If value is null, removes the child node.
* @return {Object} The child node, if the node was set.
*/
-goog.ds.DataNode.prototype.setChildNode = goog.nullFunction;
+goog.ds.DataNode.prototype.setChildNode = goog.abstractMethod;
/**
* Get the name of the node relative to the parent node
* @return {string} The name of the node.
*/
-goog.ds.DataNode.prototype.getDataName = goog.nullFunction;
+goog.ds.DataNode.prototype.getDataName = goog.abstractMethod;
/**
* Set the name of the node relative to the parent node
* @param {string} name The name of the node.
*/
-goog.ds.DataNode.prototype.setDataName = goog.nullFunction;
+goog.ds.DataNode.prototype.setDataName = goog.abstractMethod;
/**
* Gets the a qualified data path to this node
* @return {string} The data path.
*/
-goog.ds.DataNode.prototype.getDataPath = goog.nullFunction;
+goog.ds.DataNode.prototype.getDataPath = goog.abstractMethod;
/**
* Load or reload the backing data for this node
*/
-goog.ds.DataNode.prototype.load = goog.nullFunction;
+goog.ds.DataNode.prototype.load = goog.abstractMethod;
/**
* Gets the state of the backing data for this node
* @return {goog.ds.LoadState} The state.
*/
-goog.ds.DataNode.prototype.getLoadState = null;
+goog.ds.DataNode.prototype.getLoadState = goog.abstractMethod;
/**
* Whether the value of this node is a homogeneous list of data
* @return {boolean} True if a list.
*/