k4compiler 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1898) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +20 -0
  3. data/.gitmodules +3 -0
  4. data/.rspec +2 -0
  5. data/Gemfile +4 -0
  6. data/Guardfile +8 -0
  7. data/LICENSE.txt +22 -0
  8. data/README.md +29 -0
  9. data/Rakefile +1 -0
  10. data/k4compiler.gemspec +50 -0
  11. data/lib/k4compiler.rb +26 -0
  12. data/lib/k4compiler/compiler.rb +41 -0
  13. data/lib/k4compiler/compiler/base.rb +24 -0
  14. data/lib/k4compiler/compiler/closure.rb +96 -0
  15. data/lib/k4compiler/compiler/markdown.rb +78 -0
  16. data/lib/k4compiler/compiler/scss.rb +31 -0
  17. data/lib/k4compiler/config.rb +59 -0
  18. data/lib/k4compiler/version.rb +3 -0
  19. data/spec/k4compiler/compiler/base_spec.rb +40 -0
  20. data/spec/k4compiler/compiler/closure/compiled-src/hello-with-closure-compiled-script.js +18317 -0
  21. data/spec/k4compiler/compiler/closure/src/hello-compiled-script.js +15 -0
  22. data/spec/k4compiler/compiler/closure/src/hello-with-closure.js +15 -0
  23. data/spec/k4compiler/compiler/closure/src/hello.js +15 -0
  24. data/spec/k4compiler/compiler/closure_spec.rb +159 -0
  25. data/spec/k4compiler/compiler/markdown_spec.rb +153 -0
  26. data/spec/k4compiler/compiler/scss/_body.scss +5 -0
  27. data/spec/k4compiler/compiler/scss/sample.scss +9 -0
  28. data/spec/k4compiler/compiler/scss_spec.rb +70 -0
  29. data/spec/k4compiler/compiler_spec.rb +75 -0
  30. data/spec/k4compiler/config_spec.rb +116 -0
  31. data/spec/k4compiler_spec.rb +17 -0
  32. data/spec/spec_helper.rb +8 -0
  33. data/third_party/.gitkeep +1 -0
  34. data/third_party/closure-compiler-20130603/COPYING +202 -0
  35. data/third_party/closure-compiler-20130603/README +292 -0
  36. data/third_party/closure-compiler-20130603/compiler.jar +0 -0
  37. data/third_party/closure-library/.gitignore +12 -0
  38. data/third_party/closure-library/AUTHORS +17 -0
  39. data/third_party/closure-library/CONTRIBUTING +5 -0
  40. data/third_party/closure-library/LICENSE +176 -0
  41. data/third_party/closure-library/README +6 -0
  42. data/third_party/closure-library/all_tests.html +113 -0
  43. data/third_party/closure-library/alltests.js +16 -0
  44. data/third_party/closure-library/closure/bin/build/closurebuilder.py +262 -0
  45. data/third_party/closure-library/closure/bin/build/depstree.py +189 -0
  46. data/third_party/closure-library/closure/bin/build/depstree_test.py +127 -0
  47. data/third_party/closure-library/closure/bin/build/depswriter.py +202 -0
  48. data/third_party/closure-library/closure/bin/build/jscompiler.py +135 -0
  49. data/third_party/closure-library/closure/bin/build/jscompiler_test.py +120 -0
  50. data/third_party/closure-library/closure/bin/build/source.py +121 -0
  51. data/third_party/closure-library/closure/bin/build/source_test.py +134 -0
  52. data/third_party/closure-library/closure/bin/build/treescan.py +78 -0
  53. data/third_party/closure-library/closure/bin/calcdeps.py +590 -0
  54. data/third_party/closure-library/closure/bin/labs/code/generate_jsdoc.py +171 -0
  55. data/third_party/closure-library/closure/bin/labs/code/generate_jsdoc_test.py +167 -0
  56. data/third_party/closure-library/closure/bin/labs/code/run_py_tests.sh +28 -0
  57. data/third_party/closure-library/closure/bin/scopify.py +211 -0
  58. data/third_party/closure-library/closure/css/inlay/g-base.css +82 -0
  59. data/third_party/closure-library/closure/css/inlay/g-fixed.css +173 -0
  60. data/third_party/closure-library/closure/css/inlay/g-ratio.css +253 -0
  61. data/third_party/closure-library/closure/goog/a11y/aria/announcer.js +108 -0
  62. data/third_party/closure-library/closure/goog/a11y/aria/announcer_test.html +97 -0
  63. data/third_party/closure-library/closure/goog/a11y/aria/aria.js +362 -0
  64. data/third_party/closure-library/closure/goog/a11y/aria/aria_test.html +263 -0
  65. data/third_party/closure-library/closure/goog/a11y/aria/attributes.js +389 -0
  66. data/third_party/closure-library/closure/goog/a11y/aria/datatables.js +68 -0
  67. data/third_party/closure-library/closure/goog/a11y/aria/roles.js +216 -0
  68. data/third_party/closure-library/closure/goog/array/array.js +1507 -0
  69. data/third_party/closure-library/closure/goog/array/array_test.html +1674 -0
  70. data/third_party/closure-library/closure/goog/asserts/asserts.js +293 -0
  71. data/third_party/closure-library/closure/goog/asserts/asserts_test.html +178 -0
  72. data/third_party/closure-library/closure/goog/async/animationdelay.js +270 -0
  73. data/third_party/closure-library/closure/goog/async/animationdelay_test.html +93 -0
  74. data/third_party/closure-library/closure/goog/async/conditionaldelay.js +235 -0
  75. data/third_party/closure-library/closure/goog/async/conditionaldelay_test.html +227 -0
  76. data/third_party/closure-library/closure/goog/async/delay.js +177 -0
  77. data/third_party/closure-library/closure/goog/async/delay_test.html +148 -0
  78. data/third_party/closure-library/closure/goog/async/nexttick.js +174 -0
  79. data/third_party/closure-library/closure/goog/async/nexttick_test.html +137 -0
  80. data/third_party/closure-library/closure/goog/async/throttle.js +189 -0
  81. data/third_party/closure-library/closure/goog/async/throttle_test.html +102 -0
  82. data/third_party/closure-library/closure/goog/base.js +1593 -0
  83. data/third_party/closure-library/closure/goog/base_test.html +1206 -0
  84. data/third_party/closure-library/closure/goog/bootstrap/nodejs.js +91 -0
  85. data/third_party/closure-library/closure/goog/bootstrap/webworkers.js +37 -0
  86. data/third_party/closure-library/closure/goog/color/alpha.js +467 -0
  87. data/third_party/closure-library/closure/goog/color/alpha_test.html +301 -0
  88. data/third_party/closure-library/closure/goog/color/color.js +773 -0
  89. data/third_party/closure-library/closure/goog/color/color_test.html +661 -0
  90. data/third_party/closure-library/closure/goog/color/names.js +176 -0
  91. data/third_party/closure-library/closure/goog/crypt/aes.js +1027 -0
  92. data/third_party/closure-library/closure/goog/crypt/aes_test.html +593 -0
  93. data/third_party/closure-library/closure/goog/crypt/arc4.js +162 -0
  94. data/third_party/closure-library/closure/goog/crypt/arc4_test.html +63 -0
  95. data/third_party/closure-library/closure/goog/crypt/base64.js +272 -0
  96. data/third_party/closure-library/closure/goog/crypt/base64_test.html +117 -0
  97. data/third_party/closure-library/closure/goog/crypt/basen.js +242 -0
  98. data/third_party/closure-library/closure/goog/crypt/basen_test.html +167 -0
  99. data/third_party/closure-library/closure/goog/crypt/blobhasher.js +284 -0
  100. data/third_party/closure-library/closure/goog/crypt/blobhasher_test.html +385 -0
  101. data/third_party/closure-library/closure/goog/crypt/blockcipher.js +52 -0
  102. data/third_party/closure-library/closure/goog/crypt/cbc.js +150 -0
  103. data/third_party/closure-library/closure/goog/crypt/cbc_test.html +18 -0
  104. data/third_party/closure-library/closure/goog/crypt/cbc_test.js +100 -0
  105. data/third_party/closure-library/closure/goog/crypt/crypt.js +155 -0
  106. data/third_party/closure-library/closure/goog/crypt/crypt_perf.html +85 -0
  107. data/third_party/closure-library/closure/goog/crypt/crypt_test.html +98 -0
  108. data/third_party/closure-library/closure/goog/crypt/hash.js +62 -0
  109. data/third_party/closure-library/closure/goog/crypt/hash32.js +184 -0
  110. data/third_party/closure-library/closure/goog/crypt/hash32_test.html +287 -0
  111. data/third_party/closure-library/closure/goog/crypt/hashtester.js +243 -0
  112. data/third_party/closure-library/closure/goog/crypt/hmac.js +162 -0
  113. data/third_party/closure-library/closure/goog/crypt/hmac_test.html +113 -0
  114. data/third_party/closure-library/closure/goog/crypt/md5.js +429 -0
  115. data/third_party/closure-library/closure/goog/crypt/md5_perf.html +39 -0
  116. data/third_party/closure-library/closure/goog/crypt/md5_test.html +152 -0
  117. data/third_party/closure-library/closure/goog/crypt/pbkdf2.js +127 -0
  118. data/third_party/closure-library/closure/goog/crypt/pbkdf2_test.html +68 -0
  119. data/third_party/closure-library/closure/goog/crypt/sha1.js +275 -0
  120. data/third_party/closure-library/closure/goog/crypt/sha1_perf.html +40 -0
  121. data/third_party/closure-library/closure/goog/crypt/sha1_test.html +79 -0
  122. data/third_party/closure-library/closure/goog/crypt/sha2.js +275 -0
  123. data/third_party/closure-library/closure/goog/crypt/sha224.js +53 -0
  124. data/third_party/closure-library/closure/goog/crypt/sha224_perf.html +40 -0
  125. data/third_party/closure-library/closure/goog/crypt/sha224_test.html +57 -0
  126. data/third_party/closure-library/closure/goog/crypt/sha256.js +53 -0
  127. data/third_party/closure-library/closure/goog/crypt/sha256_perf.html +40 -0
  128. data/third_party/closure-library/closure/goog/crypt/sha256_test.html +66 -0
  129. data/third_party/closure-library/closure/goog/css/autocomplete.css +43 -0
  130. data/third_party/closure-library/closure/goog/css/bubble.css +84 -0
  131. data/third_party/closure-library/closure/goog/css/button.css +38 -0
  132. data/third_party/closure-library/closure/goog/css/charpicker.css +206 -0
  133. data/third_party/closure-library/closure/goog/css/checkbox.css +38 -0
  134. data/third_party/closure-library/closure/goog/css/colormenubutton.css +25 -0
  135. data/third_party/closure-library/closure/goog/css/colorpalette.css +54 -0
  136. data/third_party/closure-library/closure/goog/css/colorpicker-simplegrid.css +49 -0
  137. data/third_party/closure-library/closure/goog/css/combobox.css +54 -0
  138. data/third_party/closure-library/closure/goog/css/common.css +41 -0
  139. data/third_party/closure-library/closure/goog/css/css3button.css +77 -0
  140. data/third_party/closure-library/closure/goog/css/css3menubutton.css +23 -0
  141. data/third_party/closure-library/closure/goog/css/custombutton.css +164 -0
  142. data/third_party/closure-library/closure/goog/css/datepicker.css +148 -0
  143. data/third_party/closure-library/closure/goog/css/dialog.css +72 -0
  144. data/third_party/closure-library/closure/goog/css/dimensionpicker.css +47 -0
  145. data/third_party/closure-library/closure/goog/css/dragdropdetector.css +48 -0
  146. data/third_party/closure-library/closure/goog/css/editor/bubble.css +73 -0
  147. data/third_party/closure-library/closure/goog/css/editor/dialog.css +66 -0
  148. data/third_party/closure-library/closure/goog/css/editor/equationeditor.css +113 -0
  149. data/third_party/closure-library/closure/goog/css/editor/linkdialog.css +36 -0
  150. data/third_party/closure-library/closure/goog/css/editortoolbar.css +225 -0
  151. data/third_party/closure-library/closure/goog/css/filteredmenu.css +30 -0
  152. data/third_party/closure-library/closure/goog/css/filterobservingmenuitem.css +25 -0
  153. data/third_party/closure-library/closure/goog/css/flatbutton.css +64 -0
  154. data/third_party/closure-library/closure/goog/css/flatmenubutton.css +63 -0
  155. data/third_party/closure-library/closure/goog/css/hovercard.css +51 -0
  156. data/third_party/closure-library/closure/goog/css/hsvapalette.css +231 -0
  157. data/third_party/closure-library/closure/goog/css/hsvpalette.css +179 -0
  158. data/third_party/closure-library/closure/goog/css/imagelessbutton.css +160 -0
  159. data/third_party/closure-library/closure/goog/css/imagelessmenubutton.css +23 -0
  160. data/third_party/closure-library/closure/goog/css/inputdatepicker.css +12 -0
  161. data/third_party/closure-library/closure/goog/css/linkbutton.css +26 -0
  162. data/third_party/closure-library/closure/goog/css/menu.css +27 -0
  163. data/third_party/closure-library/closure/goog/css/menubar.css +57 -0
  164. data/third_party/closure-library/closure/goog/css/menubutton.css +169 -0
  165. data/third_party/closure-library/closure/goog/css/menuitem.css +148 -0
  166. data/third_party/closure-library/closure/goog/css/menuseparator.css +19 -0
  167. data/third_party/closure-library/closure/goog/css/multitestrunner.css +121 -0
  168. data/third_party/closure-library/closure/goog/css/offline.css +147 -0
  169. data/third_party/closure-library/closure/goog/css/palette.css +36 -0
  170. data/third_party/closure-library/closure/goog/css/popupdatepicker.css +17 -0
  171. data/third_party/closure-library/closure/goog/css/roundedpanel.css +29 -0
  172. data/third_party/closure-library/closure/goog/css/roundedtab.css +158 -0
  173. data/third_party/closure-library/closure/goog/css/submenu.css +38 -0
  174. data/third_party/closure-library/closure/goog/css/tab.css +105 -0
  175. data/third_party/closure-library/closure/goog/css/tabbar.css +52 -0
  176. data/third_party/closure-library/closure/goog/css/tablesorter.css +14 -0
  177. data/third_party/closure-library/closure/goog/css/toolbar.css +400 -0
  178. data/third_party/closure-library/closure/goog/css/tooltip.css +14 -0
  179. data/third_party/closure-library/closure/goog/css/tree.css +146 -0
  180. data/third_party/closure-library/closure/goog/css/tristatemenuitem.css +43 -0
  181. data/third_party/closure-library/closure/goog/cssom/cssom.js +449 -0
  182. data/third_party/closure-library/closure/goog/cssom/cssom_test.html +343 -0
  183. data/third_party/closure-library/closure/goog/cssom/cssom_test_import_1.css +11 -0
  184. data/third_party/closure-library/closure/goog/cssom/cssom_test_import_2.css +10 -0
  185. data/third_party/closure-library/closure/goog/cssom/cssom_test_link_1.css +10 -0
  186. data/third_party/closure-library/closure/goog/cssom/iframe/style.js +1023 -0
  187. data/third_party/closure-library/closure/goog/cssom/iframe/style_test.html +391 -0
  188. data/third_party/closure-library/closure/goog/cssom/iframe/style_test_import.css +10 -0
  189. data/third_party/closure-library/closure/goog/datasource/datamanager.js +559 -0
  190. data/third_party/closure-library/closure/goog/datasource/datasource.js +656 -0
  191. data/third_party/closure-library/closure/goog/datasource/datasource_test.html +265 -0
  192. data/third_party/closure-library/closure/goog/datasource/expr.js +544 -0
  193. data/third_party/closure-library/closure/goog/datasource/expr_test.html +97 -0
  194. data/third_party/closure-library/closure/goog/datasource/fastdatanode.js +811 -0
  195. data/third_party/closure-library/closure/goog/datasource/fastdatanode_test.html +254 -0
  196. data/third_party/closure-library/closure/goog/datasource/jsdatasource.js +460 -0
  197. data/third_party/closure-library/closure/goog/datasource/jsondatasource.js +148 -0
  198. data/third_party/closure-library/closure/goog/datasource/jsxmlhttpdatasource.js +195 -0
  199. data/third_party/closure-library/closure/goog/datasource/jsxmlhttpdatasource_test.html +94 -0
  200. data/third_party/closure-library/closure/goog/datasource/xmldatasource.js +415 -0
  201. data/third_party/closure-library/closure/goog/date/date.js +1718 -0
  202. data/third_party/closure-library/closure/goog/date/date_test.html +1392 -0
  203. data/third_party/closure-library/closure/goog/date/datelike.js +27 -0
  204. data/third_party/closure-library/closure/goog/date/daterange.js +413 -0
  205. data/third_party/closure-library/closure/goog/date/daterange_test.html +253 -0
  206. data/third_party/closure-library/closure/goog/date/relative.js +465 -0
  207. data/third_party/closure-library/closure/goog/date/relative_test.html +267 -0
  208. data/third_party/closure-library/closure/goog/date/utcdatetime.js +179 -0
  209. data/third_party/closure-library/closure/goog/date/utcdatetime_test.html +124 -0
  210. data/third_party/closure-library/closure/goog/db/cursor.js +214 -0
  211. data/third_party/closure-library/closure/goog/db/db.js +182 -0
  212. data/third_party/closure-library/closure/goog/db/db_test.html +1657 -0
  213. data/third_party/closure-library/closure/goog/db/error.js +359 -0
  214. data/third_party/closure-library/closure/goog/db/index.js +245 -0
  215. data/third_party/closure-library/closure/goog/db/indexeddb.js +337 -0
  216. data/third_party/closure-library/closure/goog/db/keyrange.js +117 -0
  217. data/third_party/closure-library/closure/goog/db/objectstore.js +399 -0
  218. data/third_party/closure-library/closure/goog/db/old_db_test.html +1244 -0
  219. data/third_party/closure-library/closure/goog/db/transaction.js +218 -0
  220. data/third_party/closure-library/closure/goog/debug/console.js +207 -0
  221. data/third_party/closure-library/closure/goog/debug/console_test.html +195 -0
  222. data/third_party/closure-library/closure/goog/debug/debug.js +501 -0
  223. data/third_party/closure-library/closure/goog/debug/debug_test.html +68 -0
  224. data/third_party/closure-library/closure/goog/debug/debugwindow.js +615 -0
  225. data/third_party/closure-library/closure/goog/debug/debugwindow_test.html +29 -0
  226. data/third_party/closure-library/closure/goog/debug/devcss/devcss.js +444 -0
  227. data/third_party/closure-library/closure/goog/debug/devcss/devcss_test.html +365 -0
  228. data/third_party/closure-library/closure/goog/debug/devcss/devcssrunner.js +26 -0
  229. data/third_party/closure-library/closure/goog/debug/divconsole.js +141 -0
  230. data/third_party/closure-library/closure/goog/debug/enhanceerror_test.html +138 -0
  231. data/third_party/closure-library/closure/goog/debug/entrypointregistry.js +158 -0
  232. data/third_party/closure-library/closure/goog/debug/entrypointregistry_test.html +87 -0
  233. data/third_party/closure-library/closure/goog/debug/error.js +51 -0
  234. data/third_party/closure-library/closure/goog/debug/error_test.html +101 -0
  235. data/third_party/closure-library/closure/goog/debug/errorhandler.js +363 -0
  236. data/third_party/closure-library/closure/goog/debug/errorhandler_async_test.html +112 -0
  237. data/third_party/closure-library/closure/goog/debug/errorhandler_test.html +292 -0
  238. data/third_party/closure-library/closure/goog/debug/errorhandlerweakdep.js +38 -0
  239. data/third_party/closure-library/closure/goog/debug/errorreporter.js +376 -0
  240. data/third_party/closure-library/closure/goog/debug/errorreporter_test.html +351 -0
  241. data/third_party/closure-library/closure/goog/debug/fancywindow.js +362 -0
  242. data/third_party/closure-library/closure/goog/debug/formatter.js +316 -0
  243. data/third_party/closure-library/closure/goog/debug/fpsdisplay.js +162 -0
  244. data/third_party/closure-library/closure/goog/debug/fpsdisplay_test.html +53 -0
  245. data/third_party/closure-library/closure/goog/debug/gcdiagnostics.js +143 -0
  246. data/third_party/closure-library/closure/goog/debug/logbuffer.js +147 -0
  247. data/third_party/closure-library/closure/goog/debug/logbuffer_test.html +105 -0
  248. data/third_party/closure-library/closure/goog/debug/logger.js +853 -0
  249. data/third_party/closure-library/closure/goog/debug/logger_test.html +208 -0
  250. data/third_party/closure-library/closure/goog/debug/logrecord.js +271 -0
  251. data/third_party/closure-library/closure/goog/debug/logrecordserializer.js +121 -0
  252. data/third_party/closure-library/closure/goog/debug/logrecordserializer_test.html +96 -0
  253. data/third_party/closure-library/closure/goog/debug/reflect.js +178 -0
  254. data/third_party/closure-library/closure/goog/debug/reflect_test.html +101 -0
  255. data/third_party/closure-library/closure/goog/debug/relativetimeprovider.js +83 -0
  256. data/third_party/closure-library/closure/goog/debug/tracer.js +724 -0
  257. data/third_party/closure-library/closure/goog/debug/tracer_test.html +57 -0
  258. data/third_party/closure-library/closure/goog/demos/advancedtooltip.html +78 -0
  259. data/third_party/closure-library/closure/goog/demos/animationqueue.html +149 -0
  260. data/third_party/closure-library/closure/goog/demos/autocomplete-basic.html +56 -0
  261. data/third_party/closure-library/closure/goog/demos/autocompleteremote.html +40 -0
  262. data/third_party/closure-library/closure/goog/demos/autocompleteremotedata.js +18 -0
  263. data/third_party/closure-library/closure/goog/demos/autocompleterichremote.html +137 -0
  264. data/third_party/closure-library/closure/goog/demos/autocompleterichremotedata.js +33 -0
  265. data/third_party/closure-library/closure/goog/demos/bidiinput.html +72 -0
  266. data/third_party/closure-library/closure/goog/demos/blobhasher.html +61 -0
  267. data/third_party/closure-library/closure/goog/demos/bubble.html +250 -0
  268. data/third_party/closure-library/closure/goog/demos/button.html +395 -0
  269. data/third_party/closure-library/closure/goog/demos/charcounter.html +57 -0
  270. data/third_party/closure-library/closure/goog/demos/charpicker.html +66 -0
  271. data/third_party/closure-library/closure/goog/demos/checkbox.html +122 -0
  272. data/third_party/closure-library/closure/goog/demos/color-contrast.html +60 -0
  273. data/third_party/closure-library/closure/goog/demos/colormenubutton.html +221 -0
  274. data/third_party/closure-library/closure/goog/demos/colorpicker.html +43 -0
  275. data/third_party/closure-library/closure/goog/demos/combobox.html +160 -0
  276. data/third_party/closure-library/closure/goog/demos/container.html +670 -0
  277. data/third_party/closure-library/closure/goog/demos/control.html +477 -0
  278. data/third_party/closure-library/closure/goog/demos/css/demo.css +75 -0
  279. data/third_party/closure-library/closure/goog/demos/css/emojipicker.css +36 -0
  280. data/third_party/closure-library/closure/goog/demos/css/emojisprite.css +92 -0
  281. data/third_party/closure-library/closure/goog/demos/css3button.html +166 -0
  282. data/third_party/closure-library/closure/goog/demos/css3menubutton.html +285 -0
  283. data/third_party/closure-library/closure/goog/demos/cssspriteanimation.html +80 -0
  284. data/third_party/closure-library/closure/goog/demos/datepicker.html +183 -0
  285. data/third_party/closure-library/closure/goog/demos/debug.html +118 -0
  286. data/third_party/closure-library/closure/goog/demos/depsgraph.html +220 -0
  287. data/third_party/closure-library/closure/goog/demos/dialog.html +156 -0
  288. data/third_party/closure-library/closure/goog/demos/dimensionpicker.html +108 -0
  289. data/third_party/closure-library/closure/goog/demos/dimensionpicker_rtl.html +123 -0
  290. data/third_party/closure-library/closure/goog/demos/dom_selection.html +88 -0
  291. data/third_party/closure-library/closure/goog/demos/drag.html +191 -0
  292. data/third_party/closure-library/closure/goog/demos/dragdrop.html +263 -0
  293. data/third_party/closure-library/closure/goog/demos/dragdropdetector.html +46 -0
  294. data/third_party/closure-library/closure/goog/demos/dragdropdetector_target.html +17 -0
  295. data/third_party/closure-library/closure/goog/demos/dragger.html +83 -0
  296. data/third_party/closure-library/closure/goog/demos/draglistgroup.html +273 -0
  297. data/third_party/closure-library/closure/goog/demos/dragscrollsupport.html +133 -0
  298. data/third_party/closure-library/closure/goog/demos/drilldownrow.html +78 -0
  299. data/third_party/closure-library/closure/goog/demos/editor/deps.js +21 -0
  300. data/third_party/closure-library/closure/goog/demos/editor/editor.html +139 -0
  301. data/third_party/closure-library/closure/goog/demos/editor/equationeditor.html +36 -0
  302. data/third_party/closure-library/closure/goog/demos/editor/equationeditor.js +40 -0
  303. data/third_party/closure-library/closure/goog/demos/editor/field_basic.html +74 -0
  304. data/third_party/closure-library/closure/goog/demos/editor/helloworld.html +91 -0
  305. data/third_party/closure-library/closure/goog/demos/editor/helloworld.js +81 -0
  306. data/third_party/closure-library/closure/goog/demos/editor/helloworld_test.html +75 -0
  307. data/third_party/closure-library/closure/goog/demos/editor/helloworlddialog.js +171 -0
  308. data/third_party/closure-library/closure/goog/demos/editor/helloworlddialog_test.html +100 -0
  309. data/third_party/closure-library/closure/goog/demos/editor/helloworlddialogplugin.js +116 -0
  310. data/third_party/closure-library/closure/goog/demos/editor/helloworlddialogplugin_test.html +198 -0
  311. data/third_party/closure-library/closure/goog/demos/editor/seamlessfield.html +106 -0
  312. data/third_party/closure-library/closure/goog/demos/editor/tableeditor.html +93 -0
  313. data/third_party/closure-library/closure/goog/demos/effects.html +162 -0
  314. data/third_party/closure-library/closure/goog/demos/emoji/200.gif +0 -0
  315. data/third_party/closure-library/closure/goog/demos/emoji/201.gif +0 -0
  316. data/third_party/closure-library/closure/goog/demos/emoji/202.gif +0 -0
  317. data/third_party/closure-library/closure/goog/demos/emoji/203.gif +0 -0
  318. data/third_party/closure-library/closure/goog/demos/emoji/204.gif +0 -0
  319. data/third_party/closure-library/closure/goog/demos/emoji/205.gif +0 -0
  320. data/third_party/closure-library/closure/goog/demos/emoji/206.gif +0 -0
  321. data/third_party/closure-library/closure/goog/demos/emoji/2BC.gif +0 -0
  322. data/third_party/closure-library/closure/goog/demos/emoji/2BD.gif +0 -0
  323. data/third_party/closure-library/closure/goog/demos/emoji/2BE.gif +0 -0
  324. data/third_party/closure-library/closure/goog/demos/emoji/2BF.gif +0 -0
  325. data/third_party/closure-library/closure/goog/demos/emoji/2C0.gif +0 -0
  326. data/third_party/closure-library/closure/goog/demos/emoji/2C1.gif +0 -0
  327. data/third_party/closure-library/closure/goog/demos/emoji/2C2.gif +0 -0
  328. data/third_party/closure-library/closure/goog/demos/emoji/2C3.gif +0 -0
  329. data/third_party/closure-library/closure/goog/demos/emoji/2C4.gif +0 -0
  330. data/third_party/closure-library/closure/goog/demos/emoji/2C5.gif +0 -0
  331. data/third_party/closure-library/closure/goog/demos/emoji/2C6.gif +0 -0
  332. data/third_party/closure-library/closure/goog/demos/emoji/2C7.gif +0 -0
  333. data/third_party/closure-library/closure/goog/demos/emoji/2C8.gif +0 -0
  334. data/third_party/closure-library/closure/goog/demos/emoji/2C9.gif +0 -0
  335. data/third_party/closure-library/closure/goog/demos/emoji/2CA.gif +0 -0
  336. data/third_party/closure-library/closure/goog/demos/emoji/2CB.gif +0 -0
  337. data/third_party/closure-library/closure/goog/demos/emoji/2CC.gif +0 -0
  338. data/third_party/closure-library/closure/goog/demos/emoji/2CD.gif +0 -0
  339. data/third_party/closure-library/closure/goog/demos/emoji/2CE.gif +0 -0
  340. data/third_party/closure-library/closure/goog/demos/emoji/2CF.gif +0 -0
  341. data/third_party/closure-library/closure/goog/demos/emoji/2D0.gif +0 -0
  342. data/third_party/closure-library/closure/goog/demos/emoji/2D1.gif +0 -0
  343. data/third_party/closure-library/closure/goog/demos/emoji/2D2.gif +0 -0
  344. data/third_party/closure-library/closure/goog/demos/emoji/2D3.gif +0 -0
  345. data/third_party/closure-library/closure/goog/demos/emoji/2D4.gif +0 -0
  346. data/third_party/closure-library/closure/goog/demos/emoji/2D5.gif +0 -0
  347. data/third_party/closure-library/closure/goog/demos/emoji/2D6.gif +0 -0
  348. data/third_party/closure-library/closure/goog/demos/emoji/2D7.gif +0 -0
  349. data/third_party/closure-library/closure/goog/demos/emoji/2D8.gif +0 -0
  350. data/third_party/closure-library/closure/goog/demos/emoji/2D9.gif +0 -0
  351. data/third_party/closure-library/closure/goog/demos/emoji/2DA.gif +0 -0
  352. data/third_party/closure-library/closure/goog/demos/emoji/2DB.gif +0 -0
  353. data/third_party/closure-library/closure/goog/demos/emoji/2DC.gif +0 -0
  354. data/third_party/closure-library/closure/goog/demos/emoji/2DD.gif +0 -0
  355. data/third_party/closure-library/closure/goog/demos/emoji/2DE.gif +0 -0
  356. data/third_party/closure-library/closure/goog/demos/emoji/2DF.gif +0 -0
  357. data/third_party/closure-library/closure/goog/demos/emoji/2E0.gif +0 -0
  358. data/third_party/closure-library/closure/goog/demos/emoji/2E1.gif +0 -0
  359. data/third_party/closure-library/closure/goog/demos/emoji/2E2.gif +0 -0
  360. data/third_party/closure-library/closure/goog/demos/emoji/2E3.gif +0 -0
  361. data/third_party/closure-library/closure/goog/demos/emoji/2E4.gif +0 -0
  362. data/third_party/closure-library/closure/goog/demos/emoji/2E5.gif +0 -0
  363. data/third_party/closure-library/closure/goog/demos/emoji/2E6.gif +0 -0
  364. data/third_party/closure-library/closure/goog/demos/emoji/2E7.gif +0 -0
  365. data/third_party/closure-library/closure/goog/demos/emoji/2E8.gif +0 -0
  366. data/third_party/closure-library/closure/goog/demos/emoji/2E9.gif +0 -0
  367. data/third_party/closure-library/closure/goog/demos/emoji/2EA.gif +0 -0
  368. data/third_party/closure-library/closure/goog/demos/emoji/2EB.gif +0 -0
  369. data/third_party/closure-library/closure/goog/demos/emoji/2EC.gif +0 -0
  370. data/third_party/closure-library/closure/goog/demos/emoji/2ED.gif +0 -0
  371. data/third_party/closure-library/closure/goog/demos/emoji/2EE.gif +0 -0
  372. data/third_party/closure-library/closure/goog/demos/emoji/2EF.gif +0 -0
  373. data/third_party/closure-library/closure/goog/demos/emoji/2F0.gif +0 -0
  374. data/third_party/closure-library/closure/goog/demos/emoji/2F1.gif +0 -0
  375. data/third_party/closure-library/closure/goog/demos/emoji/2F2.gif +0 -0
  376. data/third_party/closure-library/closure/goog/demos/emoji/2F3.gif +0 -0
  377. data/third_party/closure-library/closure/goog/demos/emoji/2F4.gif +0 -0
  378. data/third_party/closure-library/closure/goog/demos/emoji/2F5.gif +0 -0
  379. data/third_party/closure-library/closure/goog/demos/emoji/2F6.gif +0 -0
  380. data/third_party/closure-library/closure/goog/demos/emoji/2F7.gif +0 -0
  381. data/third_party/closure-library/closure/goog/demos/emoji/2F8.gif +0 -0
  382. data/third_party/closure-library/closure/goog/demos/emoji/2F9.gif +0 -0
  383. data/third_party/closure-library/closure/goog/demos/emoji/2FA.gif +0 -0
  384. data/third_party/closure-library/closure/goog/demos/emoji/2FB.gif +0 -0
  385. data/third_party/closure-library/closure/goog/demos/emoji/2FC.gif +0 -0
  386. data/third_party/closure-library/closure/goog/demos/emoji/2FD.gif +0 -0
  387. data/third_party/closure-library/closure/goog/demos/emoji/2FE.gif +0 -0
  388. data/third_party/closure-library/closure/goog/demos/emoji/2FF.gif +0 -0
  389. data/third_party/closure-library/closure/goog/demos/emoji/none.gif +0 -0
  390. data/third_party/closure-library/closure/goog/demos/emoji/sprite.png +0 -0
  391. data/third_party/closure-library/closure/goog/demos/emoji/sprite2.png +0 -0
  392. data/third_party/closure-library/closure/goog/demos/emoji/unknown.gif +0 -0
  393. data/third_party/closure-library/closure/goog/demos/event-propagation.html +192 -0
  394. data/third_party/closure-library/closure/goog/demos/events.html +99 -0
  395. data/third_party/closure-library/closure/goog/demos/eventtarget.html +70 -0
  396. data/third_party/closure-library/closure/goog/demos/filedrophandler.html +65 -0
  397. data/third_party/closure-library/closure/goog/demos/filteredmenu.html +118 -0
  398. data/third_party/closure-library/closure/goog/demos/focushandler.html +58 -0
  399. data/third_party/closure-library/closure/goog/demos/fpsdisplay.html +50 -0
  400. data/third_party/closure-library/closure/goog/demos/fx/css3/transition.html +222 -0
  401. data/third_party/closure-library/closure/goog/demos/gauge.html +158 -0
  402. data/third_party/closure-library/closure/goog/demos/graphics/advancedcoordinates.html +141 -0
  403. data/third_party/closure-library/closure/goog/demos/graphics/advancedcoordinates2.html +130 -0
  404. data/third_party/closure-library/closure/goog/demos/graphics/basicelements.html +264 -0
  405. data/third_party/closure-library/closure/goog/demos/graphics/events.html +114 -0
  406. data/third_party/closure-library/closure/goog/demos/graphics/modifyelements.html +195 -0
  407. data/third_party/closure-library/closure/goog/demos/graphics/subpixel.html +80 -0
  408. data/third_party/closure-library/closure/goog/demos/graphics/tiger.html +105 -0
  409. data/third_party/closure-library/closure/goog/demos/graphics/tigerdata.js +2841 -0
  410. data/third_party/closure-library/closure/goog/demos/history1.html +132 -0
  411. data/third_party/closure-library/closure/goog/demos/history2.html +119 -0
  412. data/third_party/closure-library/closure/goog/demos/history3.html +116 -0
  413. data/third_party/closure-library/closure/goog/demos/history3js.html +48 -0
  414. data/third_party/closure-library/closure/goog/demos/history_blank.html +26 -0
  415. data/third_party/closure-library/closure/goog/demos/hovercard.html +177 -0
  416. data/third_party/closure-library/closure/goog/demos/hsvapalette.html +55 -0
  417. data/third_party/closure-library/closure/goog/demos/hsvpalette.html +56 -0
  418. data/third_party/closure-library/closure/goog/demos/html5history.html +87 -0
  419. data/third_party/closure-library/closure/goog/demos/imagelessbutton.html +221 -0
  420. data/third_party/closure-library/closure/goog/demos/imagelessmenubutton.html +285 -0
  421. data/third_party/closure-library/closure/goog/demos/index.html +20 -0
  422. data/third_party/closure-library/closure/goog/demos/index_nav.html +255 -0
  423. data/third_party/closure-library/closure/goog/demos/index_splash.html +27 -0
  424. data/third_party/closure-library/closure/goog/demos/inline_block_quirks.html +125 -0
  425. data/third_party/closure-library/closure/goog/demos/inline_block_standards.html +126 -0
  426. data/third_party/closure-library/closure/goog/demos/inputdatepicker.html +60 -0
  427. data/third_party/closure-library/closure/goog/demos/inputhandler.html +88 -0
  428. data/third_party/closure-library/closure/goog/demos/jsonprettyprinter.html +80 -0
  429. data/third_party/closure-library/closure/goog/demos/keyboardshortcuts.html +112 -0
  430. data/third_party/closure-library/closure/goog/demos/keyhandler.html +118 -0
  431. data/third_party/closure-library/closure/goog/demos/labelinput.html +42 -0
  432. data/third_party/closure-library/closure/goog/demos/menu.html +220 -0
  433. data/third_party/closure-library/closure/goog/demos/menubar.html +211 -0
  434. data/third_party/closure-library/closure/goog/demos/menubutton.html +380 -0
  435. data/third_party/closure-library/closure/goog/demos/menubutton_frame.html +27 -0
  436. data/third_party/closure-library/closure/goog/demos/menuitem.html +164 -0
  437. data/third_party/closure-library/closure/goog/demos/mousewheelhandler.html +109 -0
  438. data/third_party/closure-library/closure/goog/demos/offline.html +268 -0
  439. data/third_party/closure-library/closure/goog/demos/onlinehandler.html +79 -0
  440. data/third_party/closure-library/closure/goog/demos/palette.html +302 -0
  441. data/third_party/closure-library/closure/goog/demos/pastehandler.html +54 -0
  442. data/third_party/closure-library/closure/goog/demos/pixeldensitymonitor.html +51 -0
  443. data/third_party/closure-library/closure/goog/demos/plaintextspellchecker.html +106 -0
  444. data/third_party/closure-library/closure/goog/demos/popup.html +206 -0
  445. data/third_party/closure-library/closure/goog/demos/popupcolorpicker.html +49 -0
  446. data/third_party/closure-library/closure/goog/demos/popupdatepicker.html +53 -0
  447. data/third_party/closure-library/closure/goog/demos/popupemojipicker.html +407 -0
  448. data/third_party/closure-library/closure/goog/demos/popupmenu.html +116 -0
  449. data/third_party/closure-library/closure/goog/demos/progressbar.html +97 -0
  450. data/third_party/closure-library/closure/goog/demos/prompt.html +92 -0
  451. data/third_party/closure-library/closure/goog/demos/quadtree.html +107 -0
  452. data/third_party/closure-library/closure/goog/demos/ratings.html +121 -0
  453. data/third_party/closure-library/closure/goog/demos/richtextspellchecker.html +92 -0
  454. data/third_party/closure-library/closure/goog/demos/roundedpanel.html +139 -0
  455. data/third_party/closure-library/closure/goog/demos/samplecomponent.html +75 -0
  456. data/third_party/closure-library/closure/goog/demos/samplecomponent.js +197 -0
  457. data/third_party/closure-library/closure/goog/demos/scrollfloater.html +113 -0
  458. data/third_party/closure-library/closure/goog/demos/select.html +324 -0
  459. data/third_party/closure-library/closure/goog/demos/selectionmenubutton.html +186 -0
  460. data/third_party/closure-library/closure/goog/demos/serverchart.html +122 -0
  461. data/third_party/closure-library/closure/goog/demos/slider.html +128 -0
  462. data/third_party/closure-library/closure/goog/demos/splitbehavior.html +163 -0
  463. data/third_party/closure-library/closure/goog/demos/splitpane.html +243 -0
  464. data/third_party/closure-library/closure/goog/demos/stopevent.html +171 -0
  465. data/third_party/closure-library/closure/goog/demos/submenus.html +130 -0
  466. data/third_party/closure-library/closure/goog/demos/submenus2.html +150 -0
  467. data/third_party/closure-library/closure/goog/demos/tabbar.html +289 -0
  468. data/third_party/closure-library/closure/goog/demos/tablesorter.html +116 -0
  469. data/third_party/closure-library/closure/goog/demos/tabpane.html +302 -0
  470. data/third_party/closure-library/closure/goog/demos/textarea.html +128 -0
  471. data/third_party/closure-library/closure/goog/demos/timers.html +291 -0
  472. data/third_party/closure-library/closure/goog/demos/toolbar.html +703 -0
  473. data/third_party/closure-library/closure/goog/demos/tooltip.html +91 -0
  474. data/third_party/closure-library/closure/goog/demos/tracer.html +92 -0
  475. data/third_party/closure-library/closure/goog/demos/tree/demo.html +126 -0
  476. data/third_party/closure-library/closure/goog/demos/tree/testdata.js +260 -0
  477. data/third_party/closure-library/closure/goog/demos/tweakui.html +121 -0
  478. data/third_party/closure-library/closure/goog/demos/twothumbslider.html +121 -0
  479. data/third_party/closure-library/closure/goog/demos/useragent.html +214 -0
  480. data/third_party/closure-library/closure/goog/demos/viewportsizemonitor.html +71 -0
  481. data/third_party/closure-library/closure/goog/demos/xpc/blank.html +7 -0
  482. data/third_party/closure-library/closure/goog/demos/xpc/index.html +89 -0
  483. data/third_party/closure-library/closure/goog/demos/xpc/inner.html +58 -0
  484. data/third_party/closure-library/closure/goog/demos/xpc/minimal/blank.html +7 -0
  485. data/third_party/closure-library/closure/goog/demos/xpc/minimal/index.html +105 -0
  486. data/third_party/closure-library/closure/goog/demos/xpc/minimal/inner.html +75 -0
  487. data/third_party/closure-library/closure/goog/demos/xpc/minimal/relay.html +7 -0
  488. data/third_party/closure-library/closure/goog/demos/xpc/relay.html +16 -0
  489. data/third_party/closure-library/closure/goog/demos/xpc/xpcdemo.js +307 -0
  490. data/third_party/closure-library/closure/goog/demos/zippy.html +149 -0
  491. data/third_party/closure-library/closure/goog/deps.js +911 -0
  492. data/third_party/closure-library/closure/goog/disposable/disposable.js +294 -0
  493. data/third_party/closure-library/closure/goog/disposable/disposable_test.html +307 -0
  494. data/third_party/closure-library/closure/goog/disposable/idisposable.js +45 -0
  495. data/third_party/closure-library/closure/goog/dom/a11y.js +169 -0
  496. data/third_party/closure-library/closure/goog/dom/abstractmultirange.js +77 -0
  497. data/third_party/closure-library/closure/goog/dom/abstractrange.js +528 -0
  498. data/third_party/closure-library/closure/goog/dom/abstractrange_test.html +73 -0
  499. data/third_party/closure-library/closure/goog/dom/annotate.js +355 -0
  500. data/third_party/closure-library/closure/goog/dom/annotate_test.html +215 -0
  501. data/third_party/closure-library/closure/goog/dom/browserfeature.js +67 -0
  502. data/third_party/closure-library/closure/goog/dom/browserrange/abstractrange.js +352 -0
  503. data/third_party/closure-library/closure/goog/dom/browserrange/browserrange.js +150 -0
  504. data/third_party/closure-library/closure/goog/dom/browserrange/browserrange_test.html +638 -0
  505. data/third_party/closure-library/closure/goog/dom/browserrange/geckorange.js +86 -0
  506. data/third_party/closure-library/closure/goog/dom/browserrange/ierange.js +952 -0
  507. data/third_party/closure-library/closure/goog/dom/browserrange/operarange.js +83 -0
  508. data/third_party/closure-library/closure/goog/dom/browserrange/w3crange.js +365 -0
  509. data/third_party/closure-library/closure/goog/dom/browserrange/webkitrange.js +112 -0
  510. data/third_party/closure-library/closure/goog/dom/bufferedviewportsizemonitor.js +202 -0
  511. data/third_party/closure-library/closure/goog/dom/bufferedviewportsizemonitor_test.html +17 -0
  512. data/third_party/closure-library/closure/goog/dom/bufferedviewportsizemonitor_test.js +130 -0
  513. data/third_party/closure-library/closure/goog/dom/classes.js +227 -0
  514. data/third_party/closure-library/closure/goog/dom/classes_quirks_test.html +63 -0
  515. data/third_party/closure-library/closure/goog/dom/classes_test.html +64 -0
  516. data/third_party/closure-library/closure/goog/dom/classes_test.js +231 -0
  517. data/third_party/closure-library/closure/goog/dom/classlist.js +271 -0
  518. data/third_party/closure-library/closure/goog/dom/classlist_test.html +26 -0
  519. data/third_party/closure-library/closure/goog/dom/classlist_test.js +244 -0
  520. data/third_party/closure-library/closure/goog/dom/controlrange.js +505 -0
  521. data/third_party/closure-library/closure/goog/dom/controlrange_test.html +246 -0
  522. data/third_party/closure-library/closure/goog/dom/dataset.js +135 -0
  523. data/third_party/closure-library/closure/goog/dom/dataset_test.html +117 -0
  524. data/third_party/closure-library/closure/goog/dom/dom.js +2700 -0
  525. data/third_party/closure-library/closure/goog/dom/dom_quirks_test.html +113 -0
  526. data/third_party/closure-library/closure/goog/dom/dom_test.html +113 -0
  527. data/third_party/closure-library/closure/goog/dom/dom_test.js +1421 -0
  528. data/third_party/closure-library/closure/goog/dom/fontsizemonitor.js +159 -0
  529. data/third_party/closure-library/closure/goog/dom/fontsizemonitor_test.html +284 -0
  530. data/third_party/closure-library/closure/goog/dom/forms.js +414 -0
  531. data/third_party/closure-library/closure/goog/dom/forms_test.html +501 -0
  532. data/third_party/closure-library/closure/goog/dom/fullscreen.js +124 -0
  533. data/third_party/closure-library/closure/goog/dom/iframe.js +163 -0
  534. data/third_party/closure-library/closure/goog/dom/iframe_test.html +88 -0
  535. data/third_party/closure-library/closure/goog/dom/iter.js +127 -0
  536. data/third_party/closure-library/closure/goog/dom/iter_test.html +97 -0
  537. data/third_party/closure-library/closure/goog/dom/multirange.js +519 -0
  538. data/third_party/closure-library/closure/goog/dom/multirange_test.html +67 -0
  539. data/third_party/closure-library/closure/goog/dom/nodeiterator.js +86 -0
  540. data/third_party/closure-library/closure/goog/dom/nodeiterator_test.html +49 -0
  541. data/third_party/closure-library/closure/goog/dom/nodeoffset.js +112 -0
  542. data/third_party/closure-library/closure/goog/dom/nodeoffset_test.html +88 -0
  543. data/third_party/closure-library/closure/goog/dom/pattern/abstractpattern.js +60 -0
  544. data/third_party/closure-library/closure/goog/dom/pattern/allchildren.js +75 -0
  545. data/third_party/closure-library/closure/goog/dom/pattern/callback/callback.js +82 -0
  546. data/third_party/closure-library/closure/goog/dom/pattern/callback/counter.js +72 -0
  547. data/third_party/closure-library/closure/goog/dom/pattern/callback/test.js +77 -0
  548. data/third_party/closure-library/closure/goog/dom/pattern/childmatches.js +154 -0
  549. data/third_party/closure-library/closure/goog/dom/pattern/endtag.js +53 -0
  550. data/third_party/closure-library/closure/goog/dom/pattern/fulltag.js +93 -0
  551. data/third_party/closure-library/closure/goog/dom/pattern/matcher.js +150 -0
  552. data/third_party/closure-library/closure/goog/dom/pattern/matcher_test.html +204 -0
  553. data/third_party/closure-library/closure/goog/dom/pattern/nodetype.js +58 -0
  554. data/third_party/closure-library/closure/goog/dom/pattern/pattern.js +93 -0
  555. data/third_party/closure-library/closure/goog/dom/pattern/pattern_test.html +614 -0
  556. data/third_party/closure-library/closure/goog/dom/pattern/repeat.js +190 -0
  557. data/third_party/closure-library/closure/goog/dom/pattern/sequence.js +141 -0
  558. data/third_party/closure-library/closure/goog/dom/pattern/starttag.js +53 -0
  559. data/third_party/closure-library/closure/goog/dom/pattern/tag.js +150 -0
  560. data/third_party/closure-library/closure/goog/dom/pattern/text.js +70 -0
  561. data/third_party/closure-library/closure/goog/dom/range.js +226 -0
  562. data/third_party/closure-library/closure/goog/dom/range_test.html +735 -0
  563. data/third_party/closure-library/closure/goog/dom/rangeendpoint.js +32 -0
  564. data/third_party/closure-library/closure/goog/dom/savedcaretrange.js +215 -0
  565. data/third_party/closure-library/closure/goog/dom/savedcaretrange_test.html +257 -0
  566. data/third_party/closure-library/closure/goog/dom/savedrange.js +74 -0
  567. data/third_party/closure-library/closure/goog/dom/savedrange_test.html +61 -0
  568. data/third_party/closure-library/closure/goog/dom/selection.js +470 -0
  569. data/third_party/closure-library/closure/goog/dom/selection_test.html +329 -0
  570. data/third_party/closure-library/closure/goog/dom/tagiterator.js +367 -0
  571. data/third_party/closure-library/closure/goog/dom/tagiterator_test.html +589 -0
  572. data/third_party/closure-library/closure/goog/dom/tagname.js +159 -0
  573. data/third_party/closure-library/closure/goog/dom/tagname_test.html +37 -0
  574. data/third_party/closure-library/closure/goog/dom/textrange.js +630 -0
  575. data/third_party/closure-library/closure/goog/dom/textrange_test.html +342 -0
  576. data/third_party/closure-library/closure/goog/dom/textrangeiterator.js +244 -0
  577. data/third_party/closure-library/closure/goog/dom/textrangeiterator_test.html +142 -0
  578. data/third_party/closure-library/closure/goog/dom/vendor.js +62 -0
  579. data/third_party/closure-library/closure/goog/dom/vendor_test.html +202 -0
  580. data/third_party/closure-library/closure/goog/dom/viewportsizemonitor.js +180 -0
  581. data/third_party/closure-library/closure/goog/dom/viewportsizemonitor_test.html +138 -0
  582. data/third_party/closure-library/closure/goog/dom/xml.js +204 -0
  583. data/third_party/closure-library/closure/goog/dom/xml_test.html +103 -0
  584. data/third_party/closure-library/closure/goog/editor/browserfeature.js +273 -0
  585. data/third_party/closure-library/closure/goog/editor/browserfeature_test.html +124 -0
  586. data/third_party/closure-library/closure/goog/editor/clicktoeditwrapper.js +435 -0
  587. data/third_party/closure-library/closure/goog/editor/clicktoeditwrapper_test.html +137 -0
  588. data/third_party/closure-library/closure/goog/editor/command.js +76 -0
  589. data/third_party/closure-library/closure/goog/editor/contenteditablefield.js +110 -0
  590. data/third_party/closure-library/closure/goog/editor/contenteditablefield_test.html +62 -0
  591. data/third_party/closure-library/closure/goog/editor/defines.js +34 -0
  592. data/third_party/closure-library/closure/goog/editor/field.js +2725 -0
  593. data/third_party/closure-library/closure/goog/editor/field_test.html +32 -0
  594. data/third_party/closure-library/closure/goog/editor/field_test.js +1278 -0
  595. data/third_party/closure-library/closure/goog/editor/focus.js +32 -0
  596. data/third_party/closure-library/closure/goog/editor/focus_test.html +66 -0
  597. data/third_party/closure-library/closure/goog/editor/icontent.js +296 -0
  598. data/third_party/closure-library/closure/goog/editor/icontent_test.html +232 -0
  599. data/third_party/closure-library/closure/goog/editor/link.js +359 -0
  600. data/third_party/closure-library/closure/goog/editor/link_test.html +252 -0
  601. data/third_party/closure-library/closure/goog/editor/node.js +483 -0
  602. data/third_party/closure-library/closure/goog/editor/node_test.html +631 -0
  603. data/third_party/closure-library/closure/goog/editor/plugin.js +463 -0
  604. data/third_party/closure-library/closure/goog/editor/plugin_test.html +187 -0
  605. data/third_party/closure-library/closure/goog/editor/plugins/abstractbubbleplugin.js +630 -0
  606. data/third_party/closure-library/closure/goog/editor/plugins/abstractbubbleplugin_test.html +313 -0
  607. data/third_party/closure-library/closure/goog/editor/plugins/abstractdialogplugin.js +334 -0
  608. data/third_party/closure-library/closure/goog/editor/plugins/abstractdialogplugin_test.html +404 -0
  609. data/third_party/closure-library/closure/goog/editor/plugins/abstracttabhandler.js +78 -0
  610. data/third_party/closure-library/closure/goog/editor/plugins/abstracttabhandler_test.html +91 -0
  611. data/third_party/closure-library/closure/goog/editor/plugins/basictextformatter.js +1750 -0
  612. data/third_party/closure-library/closure/goog/editor/plugins/basictextformatter_test.html +1171 -0
  613. data/third_party/closure-library/closure/goog/editor/plugins/blockquote.js +479 -0
  614. data/third_party/closure-library/closure/goog/editor/plugins/blockquote_test.html +212 -0
  615. data/third_party/closure-library/closure/goog/editor/plugins/emoticons.js +88 -0
  616. data/third_party/closure-library/closure/goog/editor/plugins/emoticons_test.html +92 -0
  617. data/third_party/closure-library/closure/goog/editor/plugins/enterhandler.js +767 -0
  618. data/third_party/closure-library/closure/goog/editor/plugins/enterhandler_test.html +754 -0
  619. data/third_party/closure-library/closure/goog/editor/plugins/equationeditorbubble.js +153 -0
  620. data/third_party/closure-library/closure/goog/editor/plugins/equationeditorplugin.js +215 -0
  621. data/third_party/closure-library/closure/goog/editor/plugins/equationeditorplugin_test.html +120 -0
  622. data/third_party/closure-library/closure/goog/editor/plugins/firststrong.js +326 -0
  623. data/third_party/closure-library/closure/goog/editor/plugins/firststrong_test.html +411 -0
  624. data/third_party/closure-library/closure/goog/editor/plugins/headerformatter.js +95 -0
  625. data/third_party/closure-library/closure/goog/editor/plugins/headerformatter_test.html +100 -0
  626. data/third_party/closure-library/closure/goog/editor/plugins/linkbubble.js +562 -0
  627. data/third_party/closure-library/closure/goog/editor/plugins/linkbubble_test.html +375 -0
  628. data/third_party/closure-library/closure/goog/editor/plugins/linkdialogplugin.js +437 -0
  629. data/third_party/closure-library/closure/goog/editor/plugins/linkdialogplugin_test.html +740 -0
  630. data/third_party/closure-library/closure/goog/editor/plugins/linkshortcutplugin.js +63 -0
  631. data/third_party/closure-library/closure/goog/editor/plugins/linkshortcutplugin_test.html +70 -0
  632. data/third_party/closure-library/closure/goog/editor/plugins/listtabhandler.js +66 -0
  633. data/third_party/closure-library/closure/goog/editor/plugins/listtabhandler_test.html +177 -0
  634. data/third_party/closure-library/closure/goog/editor/plugins/loremipsum.js +188 -0
  635. data/third_party/closure-library/closure/goog/editor/plugins/loremipsum_test.html +169 -0
  636. data/third_party/closure-library/closure/goog/editor/plugins/removeformatting.js +779 -0
  637. data/third_party/closure-library/closure/goog/editor/plugins/removeformatting_test.html +961 -0
  638. data/third_party/closure-library/closure/goog/editor/plugins/spacestabhandler.js +93 -0
  639. data/third_party/closure-library/closure/goog/editor/plugins/spacestabhandler_test.html +186 -0
  640. data/third_party/closure-library/closure/goog/editor/plugins/tableeditor.js +472 -0
  641. data/third_party/closure-library/closure/goog/editor/plugins/tableeditor_test.html +299 -0
  642. data/third_party/closure-library/closure/goog/editor/plugins/tagonenterhandler.js +742 -0
  643. data/third_party/closure-library/closure/goog/editor/plugins/tagonenterhandler_test.html +549 -0
  644. data/third_party/closure-library/closure/goog/editor/plugins/undoredo.js +1015 -0
  645. data/third_party/closure-library/closure/goog/editor/plugins/undoredo_test.html +525 -0
  646. data/third_party/closure-library/closure/goog/editor/plugins/undoredomanager.js +337 -0
  647. data/third_party/closure-library/closure/goog/editor/plugins/undoredomanager_test.html +394 -0
  648. data/third_party/closure-library/closure/goog/editor/plugins/undoredostate.js +86 -0
  649. data/third_party/closure-library/closure/goog/editor/plugins/undoredostate_test.html +44 -0
  650. data/third_party/closure-library/closure/goog/editor/range.js +632 -0
  651. data/third_party/closure-library/closure/goog/editor/range_test.html +1004 -0
  652. data/third_party/closure-library/closure/goog/editor/seamlessfield.js +738 -0
  653. data/third_party/closure-library/closure/goog/editor/seamlessfield_quirks_test.html +28 -0
  654. data/third_party/closure-library/closure/goog/editor/seamlessfield_test.html +32 -0
  655. data/third_party/closure-library/closure/goog/editor/seamlessfield_test.js +472 -0
  656. data/third_party/closure-library/closure/goog/editor/style.js +222 -0
  657. data/third_party/closure-library/closure/goog/editor/style_test.html +177 -0
  658. data/third_party/closure-library/closure/goog/editor/table.js +567 -0
  659. data/third_party/closure-library/closure/goog/editor/table_test.html +529 -0
  660. data/third_party/closure-library/closure/goog/events/actioneventwrapper.js +136 -0
  661. data/third_party/closure-library/closure/goog/events/actioneventwrapper_test.html +211 -0
  662. data/third_party/closure-library/closure/goog/events/actionhandler.js +181 -0
  663. data/third_party/closure-library/closure/goog/events/actionhandler_test.html +82 -0
  664. data/third_party/closure-library/closure/goog/events/browserevent.js +411 -0
  665. data/third_party/closure-library/closure/goog/events/browserevent_test.html +161 -0
  666. data/third_party/closure-library/closure/goog/events/browserfeature.js +85 -0
  667. data/third_party/closure-library/closure/goog/events/event.js +154 -0
  668. data/third_party/closure-library/closure/goog/events/event_test.html +66 -0
  669. data/third_party/closure-library/closure/goog/events/eventhandler.js +291 -0
  670. data/third_party/closure-library/closure/goog/events/eventhandler_test.html +254 -0
  671. data/third_party/closure-library/closure/goog/events/events.js +1095 -0
  672. data/third_party/closure-library/closure/goog/events/events_test.html +659 -0
  673. data/third_party/closure-library/closure/goog/events/eventtarget.js +401 -0
  674. data/third_party/closure-library/closure/goog/events/eventtarget_test.html +70 -0
  675. data/third_party/closure-library/closure/goog/events/eventtarget_via_googevents_test.html +85 -0
  676. data/third_party/closure-library/closure/goog/events/eventtarget_via_w3cinterface_test.html +49 -0
  677. data/third_party/closure-library/closure/goog/events/eventtargettester.js +1028 -0
  678. data/third_party/closure-library/closure/goog/events/eventtype.js +165 -0
  679. data/third_party/closure-library/closure/goog/events/eventwrapper.js +66 -0
  680. data/third_party/closure-library/closure/goog/events/filedrophandler.js +221 -0
  681. data/third_party/closure-library/closure/goog/events/filedrophandler_test.html +258 -0
  682. data/third_party/closure-library/closure/goog/events/focushandler.js +106 -0
  683. data/third_party/closure-library/closure/goog/events/imehandler.js +363 -0
  684. data/third_party/closure-library/closure/goog/events/imehandler_test.html +269 -0
  685. data/third_party/closure-library/closure/goog/events/inputhandler.js +213 -0
  686. data/third_party/closure-library/closure/goog/events/keycodes.js +377 -0
  687. data/third_party/closure-library/closure/goog/events/keycodes_test.html +125 -0
  688. data/third_party/closure-library/closure/goog/events/keyhandler.js +556 -0
  689. data/third_party/closure-library/closure/goog/events/keyhandler_test.html +727 -0
  690. data/third_party/closure-library/closure/goog/events/keynames.js +132 -0
  691. data/third_party/closure-library/closure/goog/events/listenable.js +323 -0
  692. data/third_party/closure-library/closure/goog/events/listenable_test.html +31 -0
  693. data/third_party/closure-library/closure/goog/events/listener.js +131 -0
  694. data/third_party/closure-library/closure/goog/events/listenermap.js +299 -0
  695. data/third_party/closure-library/closure/goog/events/listenermap_test.html +19 -0
  696. data/third_party/closure-library/closure/goog/events/listenermap_test.js +116 -0
  697. data/third_party/closure-library/closure/goog/events/mousewheelhandler.js +295 -0
  698. data/third_party/closure-library/closure/goog/events/mousewheelhandler_test.html +385 -0
  699. data/third_party/closure-library/closure/goog/events/onlinehandler.js +162 -0
  700. data/third_party/closure-library/closure/goog/events/onlinelistener_test.html +160 -0
  701. data/third_party/closure-library/closure/goog/events/pastehandler.js +515 -0
  702. data/third_party/closure-library/closure/goog/events/pastehandler_test.html +414 -0
  703. data/third_party/closure-library/closure/goog/format/emailaddress.js +332 -0
  704. data/third_party/closure-library/closure/goog/format/emailaddress_test.html +192 -0
  705. data/third_party/closure-library/closure/goog/format/format.js +491 -0
  706. data/third_party/closure-library/closure/goog/format/format_test.html +302 -0
  707. data/third_party/closure-library/closure/goog/format/htmlprettyprinter.js +407 -0
  708. data/third_party/closure-library/closure/goog/format/htmlprettyprinter_test.html +205 -0
  709. data/third_party/closure-library/closure/goog/format/jsonprettyprinter.js +413 -0
  710. data/third_party/closure-library/closure/goog/format/jsonprettyprinter_test.html +111 -0
  711. data/third_party/closure-library/closure/goog/fs/entry.js +272 -0
  712. data/third_party/closure-library/closure/goog/fs/entryimpl.js +399 -0
  713. data/third_party/closure-library/closure/goog/fs/error.js +102 -0
  714. data/third_party/closure-library/closure/goog/fs/filereader.js +288 -0
  715. data/third_party/closure-library/closure/goog/fs/filesaver.js +176 -0
  716. data/third_party/closure-library/closure/goog/fs/filesystem.js +41 -0
  717. data/third_party/closure-library/closure/goog/fs/filesystemimpl.js +64 -0
  718. data/third_party/closure-library/closure/goog/fs/filewriter.js +110 -0
  719. data/third_party/closure-library/closure/goog/fs/fs.js +253 -0
  720. data/third_party/closure-library/closure/goog/fs/fs_test.html +754 -0
  721. data/third_party/closure-library/closure/goog/fs/progressevent.js +68 -0
  722. data/third_party/closure-library/closure/goog/functions/functions.js +255 -0
  723. data/third_party/closure-library/closure/goog/functions/functions_test.html +223 -0
  724. data/third_party/closure-library/closure/goog/fx/abstractdragdrop.js +1517 -0
  725. data/third_party/closure-library/closure/goog/fx/abstractdragdrop_test.html +663 -0
  726. data/third_party/closure-library/closure/goog/fx/anim/anim.js +210 -0
  727. data/third_party/closure-library/closure/goog/fx/anim/anim_test.html +225 -0
  728. data/third_party/closure-library/closure/goog/fx/animation.js +530 -0
  729. data/third_party/closure-library/closure/goog/fx/animation_test.html +117 -0
  730. data/third_party/closure-library/closure/goog/fx/animationqueue.js +307 -0
  731. data/third_party/closure-library/closure/goog/fx/animationqueue_test.html +316 -0
  732. data/third_party/closure-library/closure/goog/fx/css3/fx.js +62 -0
  733. data/third_party/closure-library/closure/goog/fx/css3/transition.js +196 -0
  734. data/third_party/closure-library/closure/goog/fx/css3/transition_test.html +224 -0
  735. data/third_party/closure-library/closure/goog/fx/cssspriteanimation.js +113 -0
  736. data/third_party/closure-library/closure/goog/fx/cssspriteanimation_test.html +126 -0
  737. data/third_party/closure-library/closure/goog/fx/dom.js +653 -0
  738. data/third_party/closure-library/closure/goog/fx/dragdrop.js +50 -0
  739. data/third_party/closure-library/closure/goog/fx/dragdropgroup.js +109 -0
  740. data/third_party/closure-library/closure/goog/fx/dragdropgroup_test.html +234 -0
  741. data/third_party/closure-library/closure/goog/fx/dragger.js +795 -0
  742. data/third_party/closure-library/closure/goog/fx/dragger_test.html +449 -0
  743. data/third_party/closure-library/closure/goog/fx/draglistgroup.js +1301 -0
  744. data/third_party/closure-library/closure/goog/fx/draglistgroup_test.html +403 -0
  745. data/third_party/closure-library/closure/goog/fx/dragscrollsupport.js +299 -0
  746. data/third_party/closure-library/closure/goog/fx/dragscrollsupport_test.html +354 -0
  747. data/third_party/closure-library/closure/goog/fx/easing.js +50 -0
  748. data/third_party/closure-library/closure/goog/fx/fx.js +32 -0
  749. data/third_party/closure-library/closure/goog/fx/fx_test.html +100 -0
  750. data/third_party/closure-library/closure/goog/fx/transition.js +75 -0
  751. data/third_party/closure-library/closure/goog/fx/transitionbase.js +237 -0
  752. data/third_party/closure-library/closure/goog/gears/basestore.js +521 -0
  753. data/third_party/closure-library/closure/goog/gears/basestore_test.html +247 -0
  754. data/third_party/closure-library/closure/goog/gears/database.js +934 -0
  755. data/third_party/closure-library/closure/goog/gears/database_test.html +699 -0
  756. data/third_party/closure-library/closure/goog/gears/gears.js +228 -0
  757. data/third_party/closure-library/closure/goog/gears/gears_test.html +78 -0
  758. data/third_party/closure-library/closure/goog/gears/httprequest.js +80 -0
  759. data/third_party/closure-library/closure/goog/gears/loggerclient.js +130 -0
  760. data/third_party/closure-library/closure/goog/gears/loggerclient_test.html +172 -0
  761. data/third_party/closure-library/closure/goog/gears/loggerserver.js +157 -0
  762. data/third_party/closure-library/closure/goog/gears/loggerserver_test.html +119 -0
  763. data/third_party/closure-library/closure/goog/gears/logstore.js +478 -0
  764. data/third_party/closure-library/closure/goog/gears/logstore_test.html +600 -0
  765. data/third_party/closure-library/closure/goog/gears/managedresourcestore.js +555 -0
  766. data/third_party/closure-library/closure/goog/gears/managedresourcestore_test.html +453 -0
  767. data/third_party/closure-library/closure/goog/gears/multipartformdata.js +204 -0
  768. data/third_party/closure-library/closure/goog/gears/multipartformdata_test.html +221 -0
  769. data/third_party/closure-library/closure/goog/gears/statustype.js +37 -0
  770. data/third_party/closure-library/closure/goog/gears/urlcapture.js +370 -0
  771. data/third_party/closure-library/closure/goog/gears/urlcapture_test.html +392 -0
  772. data/third_party/closure-library/closure/goog/gears/worker.js +200 -0
  773. data/third_party/closure-library/closure/goog/gears/workerchannel.js +205 -0
  774. data/third_party/closure-library/closure/goog/gears/workerchannel_test.html +207 -0
  775. data/third_party/closure-library/closure/goog/gears/workerpool.js +240 -0
  776. data/third_party/closure-library/closure/goog/gears/workerpool_test.html +204 -0
  777. data/third_party/closure-library/closure/goog/graphics/abstractgraphics.js +441 -0
  778. data/third_party/closure-library/closure/goog/graphics/affinetransform.js +587 -0
  779. data/third_party/closure-library/closure/goog/graphics/affinetransform_test.html +360 -0
  780. data/third_party/closure-library/closure/goog/graphics/canvaselement.js +792 -0
  781. data/third_party/closure-library/closure/goog/graphics/canvasgraphics.js +665 -0
  782. data/third_party/closure-library/closure/goog/graphics/element.js +151 -0
  783. data/third_party/closure-library/closure/goog/graphics/ellipseelement.js +64 -0
  784. data/third_party/closure-library/closure/goog/graphics/ext/coordinates.js +159 -0
  785. data/third_party/closure-library/closure/goog/graphics/ext/coordinates_test.html +74 -0
  786. data/third_party/closure-library/closure/goog/graphics/ext/element.js +968 -0
  787. data/third_party/closure-library/closure/goog/graphics/ext/element_test.html +144 -0
  788. data/third_party/closure-library/closure/goog/graphics/ext/ellipse.js +59 -0
  789. data/third_party/closure-library/closure/goog/graphics/ext/ext.js +29 -0
  790. data/third_party/closure-library/closure/goog/graphics/ext/graphics.js +215 -0
  791. data/third_party/closure-library/closure/goog/graphics/ext/group.js +215 -0
  792. data/third_party/closure-library/closure/goog/graphics/ext/image.js +63 -0
  793. data/third_party/closure-library/closure/goog/graphics/ext/path.js +142 -0
  794. data/third_party/closure-library/closure/goog/graphics/ext/path_test.html +46 -0
  795. data/third_party/closure-library/closure/goog/graphics/ext/rectangle.js +54 -0
  796. data/third_party/closure-library/closure/goog/graphics/ext/shape.js +146 -0
  797. data/third_party/closure-library/closure/goog/graphics/ext/strokeandfillelement.js +70 -0
  798. data/third_party/closure-library/closure/goog/graphics/fill.js +46 -0
  799. data/third_party/closure-library/closure/goog/graphics/font.js +63 -0
  800. data/third_party/closure-library/closure/goog/graphics/graphics.js +135 -0
  801. data/third_party/closure-library/closure/goog/graphics/groupelement.js +59 -0
  802. data/third_party/closure-library/closure/goog/graphics/imageelement.js +70 -0
  803. data/third_party/closure-library/closure/goog/graphics/lineargradient.js +174 -0
  804. data/third_party/closure-library/closure/goog/graphics/path.js +512 -0
  805. data/third_party/closure-library/closure/goog/graphics/path_test.html +359 -0
  806. data/third_party/closure-library/closure/goog/graphics/pathelement.js +55 -0
  807. data/third_party/closure-library/closure/goog/graphics/paths.js +86 -0
  808. data/third_party/closure-library/closure/goog/graphics/paths_test.html +98 -0
  809. data/third_party/closure-library/closure/goog/graphics/rectelement.js +64 -0
  810. data/third_party/closure-library/closure/goog/graphics/solidfill.js +74 -0
  811. data/third_party/closure-library/closure/goog/graphics/solidfill_test.html +53 -0
  812. data/third_party/closure-library/closure/goog/graphics/stroke.js +67 -0
  813. data/third_party/closure-library/closure/goog/graphics/strokeandfillelement.js +115 -0
  814. data/third_party/closure-library/closure/goog/graphics/svgelement.js +279 -0
  815. data/third_party/closure-library/closure/goog/graphics/svggraphics.js +857 -0
  816. data/third_party/closure-library/closure/goog/graphics/svggraphics_test.html +83 -0
  817. data/third_party/closure-library/closure/goog/graphics/textelement.js +56 -0
  818. data/third_party/closure-library/closure/goog/graphics/vmlelement.js +433 -0
  819. data/third_party/closure-library/closure/goog/graphics/vmlgraphics.js +893 -0
  820. data/third_party/closure-library/closure/goog/history/event.js +54 -0
  821. data/third_party/closure-library/closure/goog/history/eventtype.js +30 -0
  822. data/third_party/closure-library/closure/goog/history/history.js +998 -0
  823. data/third_party/closure-library/closure/goog/history/history_test.html +19 -0
  824. data/third_party/closure-library/closure/goog/history/history_test.js +54 -0
  825. data/third_party/closure-library/closure/goog/history/html5history.js +303 -0
  826. data/third_party/closure-library/closure/goog/history/html5history_test.html +163 -0
  827. data/third_party/closure-library/closure/goog/i18n/bidi.js +806 -0
  828. data/third_party/closure-library/closure/goog/i18n/bidi_test.html +425 -0
  829. data/third_party/closure-library/closure/goog/i18n/bidiformatter.js +490 -0
  830. data/third_party/closure-library/closure/goog/i18n/bidiformatter_test.html +343 -0
  831. data/third_party/closure-library/closure/goog/i18n/charlistdecompressor.js +157 -0
  832. data/third_party/closure-library/closure/goog/i18n/charlistdecompressor_test.html +65 -0
  833. data/third_party/closure-library/closure/goog/i18n/charpickerdata.js +3185 -0
  834. data/third_party/closure-library/closure/goog/i18n/collation.js +58 -0
  835. data/third_party/closure-library/closure/goog/i18n/collation_test.html +63 -0
  836. data/third_party/closure-library/closure/goog/i18n/compactnumberformatsymbols.js +7973 -0
  837. data/third_party/closure-library/closure/goog/i18n/compactnumberformatsymbols_ext.js +27549 -0
  838. data/third_party/closure-library/closure/goog/i18n/currency.js +424 -0
  839. data/third_party/closure-library/closure/goog/i18n/currency_test.html +204 -0
  840. data/third_party/closure-library/closure/goog/i18n/currencycodemap.js +210 -0
  841. data/third_party/closure-library/closure/goog/i18n/datetimeformat.js +673 -0
  842. data/third_party/closure-library/closure/goog/i18n/datetimeformat_test.html +532 -0
  843. data/third_party/closure-library/closure/goog/i18n/datetimeparse.js +1129 -0
  844. data/third_party/closure-library/closure/goog/i18n/datetimeparse_test.html +766 -0
  845. data/third_party/closure-library/closure/goog/i18n/datetimepatterns.js +1854 -0
  846. data/third_party/closure-library/closure/goog/i18n/datetimepatternsext.js +10947 -0
  847. data/third_party/closure-library/closure/goog/i18n/datetimesymbols.js +3713 -0
  848. data/third_party/closure-library/closure/goog/i18n/datetimesymbolsext.js +21152 -0
  849. data/third_party/closure-library/closure/goog/i18n/graphemebreak.js +214 -0
  850. data/third_party/closure-library/closure/goog/i18n/graphemebreak_test.html +80 -0
  851. data/third_party/closure-library/closure/goog/i18n/messageformat.js +771 -0
  852. data/third_party/closure-library/closure/goog/i18n/messageformat_test.html +471 -0
  853. data/third_party/closure-library/closure/goog/i18n/mime.js +111 -0
  854. data/third_party/closure-library/closure/goog/i18n/mime_test.html +51 -0
  855. data/third_party/closure-library/closure/goog/i18n/numberformat.js +1228 -0
  856. data/third_party/closure-library/closure/goog/i18n/numberformat_test.html +985 -0
  857. data/third_party/closure-library/closure/goog/i18n/numberformatsymbols.js +3416 -0
  858. data/third_party/closure-library/closure/goog/i18n/numberformatsymbolsext.js +11887 -0
  859. data/third_party/closure-library/closure/goog/i18n/ordinalrules.js +589 -0
  860. data/third_party/closure-library/closure/goog/i18n/pluralrules.js +859 -0
  861. data/third_party/closure-library/closure/goog/i18n/timezone.js +340 -0
  862. data/third_party/closure-library/closure/goog/i18n/timezone_test.html +163 -0
  863. data/third_party/closure-library/closure/goog/i18n/uchar.js +1368 -0
  864. data/third_party/closure-library/closure/goog/i18n/uchar/localnamefetcher.js +73 -0
  865. data/third_party/closure-library/closure/goog/i18n/uchar/localnamefetcher_test.html +62 -0
  866. data/third_party/closure-library/closure/goog/i18n/uchar/namefetcher.js +70 -0
  867. data/third_party/closure-library/closure/goog/i18n/uchar/remotenamefetcher.js +281 -0
  868. data/third_party/closure-library/closure/goog/i18n/uchar/remotenamefetcher_test.html +111 -0
  869. data/third_party/closure-library/closure/goog/i18n/uchar_test.html +133 -0
  870. data/third_party/closure-library/closure/goog/images/blank.gif +0 -0
  871. data/third_party/closure-library/closure/goog/images/bubble_close.jpg +0 -0
  872. data/third_party/closure-library/closure/goog/images/bubble_left.gif +0 -0
  873. data/third_party/closure-library/closure/goog/images/bubble_right.gif +0 -0
  874. data/third_party/closure-library/closure/goog/images/button-bg.gif +0 -0
  875. data/third_party/closure-library/closure/goog/images/check-outline.gif +0 -0
  876. data/third_party/closure-library/closure/goog/images/check-sprite.gif +0 -0
  877. data/third_party/closure-library/closure/goog/images/check.gif +0 -0
  878. data/third_party/closure-library/closure/goog/images/close_box.gif +0 -0
  879. data/third_party/closure-library/closure/goog/images/color-swatch-tick.gif +0 -0
  880. data/third_party/closure-library/closure/goog/images/dialog_close_box.gif +0 -0
  881. data/third_party/closure-library/closure/goog/images/dimension-highlighted.png +0 -0
  882. data/third_party/closure-library/closure/goog/images/dimension-unhighlighted.png +0 -0
  883. data/third_party/closure-library/closure/goog/images/dropdn.gif +0 -0
  884. data/third_party/closure-library/closure/goog/images/dropdn_disabled.gif +0 -0
  885. data/third_party/closure-library/closure/goog/images/dropdown.gif +0 -0
  886. data/third_party/closure-library/closure/goog/images/gears_bluedot.gif +0 -0
  887. data/third_party/closure-library/closure/goog/images/gears_offline.gif +0 -0
  888. data/third_party/closure-library/closure/goog/images/gears_online.gif +0 -0
  889. data/third_party/closure-library/closure/goog/images/gears_paused.gif +0 -0
  890. data/third_party/closure-library/closure/goog/images/gears_syncing.gif +0 -0
  891. data/third_party/closure-library/closure/goog/images/hsv-sprite-sm.gif +0 -0
  892. data/third_party/closure-library/closure/goog/images/hsv-sprite-sm.png +0 -0
  893. data/third_party/closure-library/closure/goog/images/hsv-sprite.gif +0 -0
  894. data/third_party/closure-library/closure/goog/images/hsv-sprite.png +0 -0
  895. data/third_party/closure-library/closure/goog/images/hsva-sprite-sm.gif +0 -0
  896. data/third_party/closure-library/closure/goog/images/hsva-sprite-sm.png +0 -0
  897. data/third_party/closure-library/closure/goog/images/hsva-sprite.gif +0 -0
  898. data/third_party/closure-library/closure/goog/images/hsva-sprite.png +0 -0
  899. data/third_party/closure-library/closure/goog/images/left_anchor_bubble_bot.gif +0 -0
  900. data/third_party/closure-library/closure/goog/images/left_anchor_bubble_top.gif +0 -0
  901. data/third_party/closure-library/closure/goog/images/menu-arrows.gif +0 -0
  902. data/third_party/closure-library/closure/goog/images/minus.png +0 -0
  903. data/third_party/closure-library/closure/goog/images/no_anchor_bubble_bot.gif +0 -0
  904. data/third_party/closure-library/closure/goog/images/no_anchor_bubble_top.gif +0 -0
  905. data/third_party/closure-library/closure/goog/images/offlineicons.png +0 -0
  906. data/third_party/closure-library/closure/goog/images/plus.png +0 -0
  907. data/third_party/closure-library/closure/goog/images/ratingstars.gif +0 -0
  908. data/third_party/closure-library/closure/goog/images/right_anchor_bubble_bot.gif +0 -0
  909. data/third_party/closure-library/closure/goog/images/right_anchor_bubble_top.gif +0 -0
  910. data/third_party/closure-library/closure/goog/images/toolbar-bg.png +0 -0
  911. data/third_party/closure-library/closure/goog/images/toolbar-separator.gif +0 -0
  912. data/third_party/closure-library/closure/goog/images/toolbar_icons.gif +0 -0
  913. data/third_party/closure-library/closure/goog/images/tree/I.png +0 -0
  914. data/third_party/closure-library/closure/goog/images/tree/cleardot.gif +0 -0
  915. data/third_party/closure-library/closure/goog/images/tree/tree.gif +0 -0
  916. data/third_party/closure-library/closure/goog/images/tree/tree.png +0 -0
  917. data/third_party/closure-library/closure/goog/images/ui_controls.jpg +0 -0
  918. data/third_party/closure-library/closure/goog/iter/iter.js +702 -0
  919. data/third_party/closure-library/closure/goog/iter/iter_test.html +479 -0
  920. data/third_party/closure-library/closure/goog/json/evaljsonprocessor.js +66 -0
  921. data/third_party/closure-library/closure/goog/json/json.js +349 -0
  922. data/third_party/closure-library/closure/goog/json/json_perf.html +116 -0
  923. data/third_party/closure-library/closure/goog/json/json_test.html +569 -0
  924. data/third_party/closure-library/closure/goog/json/nativejsonprocessor.js +73 -0
  925. data/third_party/closure-library/closure/goog/json/processor.js +33 -0
  926. data/third_party/closure-library/closure/goog/json/processor_test.html +89 -0
  927. data/third_party/closure-library/closure/goog/labs/classdef/classdef.js +162 -0
  928. data/third_party/closure-library/closure/goog/labs/classdef/classdef_test.html +103 -0
  929. data/third_party/closure-library/closure/goog/labs/events/touch.js +82 -0
  930. data/third_party/closure-library/closure/goog/labs/events/touch_test.html +19 -0
  931. data/third_party/closure-library/closure/goog/labs/events/touch_test.js +96 -0
  932. data/third_party/closure-library/closure/goog/labs/format/csv.js +391 -0
  933. data/third_party/closure-library/closure/goog/labs/format/csv_test.html +20 -0
  934. data/third_party/closure-library/closure/goog/labs/format/csv_test.js +169 -0
  935. data/third_party/closure-library/closure/goog/labs/mock/mock.js +733 -0
  936. data/third_party/closure-library/closure/goog/labs/mock/mock_test.html +416 -0
  937. data/third_party/closure-library/closure/goog/labs/net/image.js +93 -0
  938. data/third_party/closure-library/closure/goog/labs/net/image_test.html +21 -0
  939. data/third_party/closure-library/closure/goog/labs/net/image_test.js +128 -0
  940. data/third_party/closure-library/closure/goog/labs/net/testdata/cleardot.gif +0 -0
  941. data/third_party/closure-library/closure/goog/labs/net/testdata/xhr_test_json.data +2 -0
  942. data/third_party/closure-library/closure/goog/labs/net/testdata/xhr_test_text.data +1 -0
  943. data/third_party/closure-library/closure/goog/labs/net/webchannel.js +188 -0
  944. data/third_party/closure-library/closure/goog/labs/net/webchannel/basetestchannel.js +639 -0
  945. data/third_party/closure-library/closure/goog/labs/net/webchannel/channel.js +195 -0
  946. data/third_party/closure-library/closure/goog/labs/net/webchannel/requeststats.js +391 -0
  947. data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelbase.js +2171 -0
  948. data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelbase_test.html +22 -0
  949. data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelbase_test.js +1400 -0
  950. data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelbasetransport.js +274 -0
  951. data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelbasetransport_test.html +228 -0
  952. data/third_party/closure-library/closure/goog/labs/net/webchannel/webchanneldebug.js +298 -0
  953. data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelrequest.js +1291 -0
  954. data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelrequest_test.html +287 -0
  955. data/third_party/closure-library/closure/goog/labs/net/webchanneltransport.js +74 -0
  956. data/third_party/closure-library/closure/goog/labs/net/webchanneltransportfactory.js +35 -0
  957. data/third_party/closure-library/closure/goog/labs/net/xhr.js +449 -0
  958. data/third_party/closure-library/closure/goog/labs/net/xhr_test.html +455 -0
  959. data/third_party/closure-library/closure/goog/labs/object/object.js +46 -0
  960. data/third_party/closure-library/closure/goog/labs/object/object_test.html +56 -0
  961. data/third_party/closure-library/closure/goog/labs/observe/notice.js +63 -0
  962. data/third_party/closure-library/closure/goog/labs/observe/observable.js +77 -0
  963. data/third_party/closure-library/closure/goog/labs/observe/observableset.js +180 -0
  964. data/third_party/closure-library/closure/goog/labs/observe/observableset_test.html +207 -0
  965. data/third_party/closure-library/closure/goog/labs/observe/observationset.js +156 -0
  966. data/third_party/closure-library/closure/goog/labs/observe/observationset_test.html +252 -0
  967. data/third_party/closure-library/closure/goog/labs/observe/observer.js +100 -0
  968. data/third_party/closure-library/closure/goog/labs/observe/observer_test.html +65 -0
  969. data/third_party/closure-library/closure/goog/labs/observe/simpleobservable.js +129 -0
  970. data/third_party/closure-library/closure/goog/labs/observe/simpleobservable_test.html +196 -0
  971. data/third_party/closure-library/closure/goog/labs/structs/map.js +339 -0
  972. data/third_party/closure-library/closure/goog/labs/structs/map_perf.js +201 -0
  973. data/third_party/closure-library/closure/goog/labs/structs/map_test.html +434 -0
  974. data/third_party/closure-library/closure/goog/labs/structs/multimap.js +279 -0
  975. data/third_party/closure-library/closure/goog/labs/structs/multimap_test.html +332 -0
  976. data/third_party/closure-library/closure/goog/labs/style/pixeldensitymonitor.js +178 -0
  977. data/third_party/closure-library/closure/goog/labs/style/pixeldensitymonitor_test.html +17 -0
  978. data/third_party/closure-library/closure/goog/labs/style/pixeldensitymonitor_test.js +146 -0
  979. data/third_party/closure-library/closure/goog/labs/testing/assertthat.js +59 -0
  980. data/third_party/closure-library/closure/goog/labs/testing/assertthat_test.html +73 -0
  981. data/third_party/closure-library/closure/goog/labs/testing/decoratormatcher.js +94 -0
  982. data/third_party/closure-library/closure/goog/labs/testing/decoratormatcher_test.html +43 -0
  983. data/third_party/closure-library/closure/goog/labs/testing/dictionarymatcher.js +266 -0
  984. data/third_party/closure-library/closure/goog/labs/testing/dictionarymatcher_test.html +70 -0
  985. data/third_party/closure-library/closure/goog/labs/testing/logicmatcher.js +206 -0
  986. data/third_party/closure-library/closure/goog/labs/testing/logicmatcher_test.html +59 -0
  987. data/third_party/closure-library/closure/goog/labs/testing/matcher.js +51 -0
  988. data/third_party/closure-library/closure/goog/labs/testing/numbermatcher.js +334 -0
  989. data/third_party/closure-library/closure/goog/labs/testing/numbermatcher_test.html +79 -0
  990. data/third_party/closure-library/closure/goog/labs/testing/objectmatcher.js +306 -0
  991. data/third_party/closure-library/closure/goog/labs/testing/objectmatcher_test.html +102 -0
  992. data/third_party/closure-library/closure/goog/labs/testing/stringmatcher.js +402 -0
  993. data/third_party/closure-library/closure/goog/labs/testing/stringmatcher_test.html +101 -0
  994. data/third_party/closure-library/closure/goog/labs/useragent/browser.js +189 -0
  995. data/third_party/closure-library/closure/goog/labs/useragent/browser_test.html +21 -0
  996. data/third_party/closure-library/closure/goog/labs/useragent/browser_test.js +193 -0
  997. data/third_party/closure-library/closure/goog/labs/useragent/device.js +64 -0
  998. data/third_party/closure-library/closure/goog/labs/useragent/device_test.html +21 -0
  999. data/third_party/closure-library/closure/goog/labs/useragent/device_test.js +88 -0
  1000. data/third_party/closure-library/closure/goog/labs/useragent/engine.js +144 -0
  1001. data/third_party/closure-library/closure/goog/labs/useragent/engine_test.html +21 -0
  1002. data/third_party/closure-library/closure/goog/labs/useragent/engine_test.js +164 -0
  1003. data/third_party/closure-library/closure/goog/labs/useragent/platform.js +193 -0
  1004. data/third_party/closure-library/closure/goog/labs/useragent/platform_test.html +21 -0
  1005. data/third_party/closure-library/closure/goog/labs/useragent/platform_test.js +256 -0
  1006. data/third_party/closure-library/closure/goog/labs/useragent/test_agents.js +272 -0
  1007. data/third_party/closure-library/closure/goog/labs/useragent/util.js +89 -0
  1008. data/third_party/closure-library/closure/goog/labs/useragent/util_test.html +22 -0
  1009. data/third_party/closure-library/closure/goog/labs/useragent/util_test.js +60 -0
  1010. data/third_party/closure-library/closure/goog/locale/countries.js +291 -0
  1011. data/third_party/closure-library/closure/goog/locale/countrylanguagenames_test.html +237 -0
  1012. data/third_party/closure-library/closure/goog/locale/defaultlocalenameconstants.js +907 -0
  1013. data/third_party/closure-library/closure/goog/locale/genericfontnames.js +73 -0
  1014. data/third_party/closure-library/closure/goog/locale/genericfontnames_test.html +97 -0
  1015. data/third_party/closure-library/closure/goog/locale/genericfontnamesdata.js +327 -0
  1016. data/third_party/closure-library/closure/goog/locale/locale.js +403 -0
  1017. data/third_party/closure-library/closure/goog/locale/nativenameconstants.js +1354 -0
  1018. data/third_party/closure-library/closure/goog/locale/scriptToLanguages.js +482 -0
  1019. data/third_party/closure-library/closure/goog/locale/timezonedetection.js +117 -0
  1020. data/third_party/closure-library/closure/goog/locale/timezonedetection_test.html +130 -0
  1021. data/third_party/closure-library/closure/goog/locale/timezonefingerprint.js +248 -0
  1022. data/third_party/closure-library/closure/goog/locale/timezonelist.js +131 -0
  1023. data/third_party/closure-library/closure/goog/locale/timezonelist_test.html +165 -0
  1024. data/third_party/closure-library/closure/goog/log/log.js +183 -0
  1025. data/third_party/closure-library/closure/goog/log/log_test.js +169 -0
  1026. data/third_party/closure-library/closure/goog/math/bezier.js +311 -0
  1027. data/third_party/closure-library/closure/goog/math/bezier_test.html +112 -0
  1028. data/third_party/closure-library/closure/goog/math/box.js +369 -0
  1029. data/third_party/closure-library/closure/goog/math/box_test.html +298 -0
  1030. data/third_party/closure-library/closure/goog/math/coordinate.js +233 -0
  1031. data/third_party/closure-library/closure/goog/math/coordinate3.js +169 -0
  1032. data/third_party/closure-library/closure/goog/math/coordinate3_test.html +204 -0
  1033. data/third_party/closure-library/closure/goog/math/coordinate_test.html +159 -0
  1034. data/third_party/closure-library/closure/goog/math/exponentialbackoff.js +103 -0
  1035. data/third_party/closure-library/closure/goog/math/exponentialbackoff_test.html +67 -0
  1036. data/third_party/closure-library/closure/goog/math/integer.js +737 -0
  1037. data/third_party/closure-library/closure/goog/math/integer_test.html +1653 -0
  1038. data/third_party/closure-library/closure/goog/math/interpolator/interpolator1.js +64 -0
  1039. data/third_party/closure-library/closure/goog/math/interpolator/linear1.js +82 -0
  1040. data/third_party/closure-library/closure/goog/math/interpolator/linear1_test.html +87 -0
  1041. data/third_party/closure-library/closure/goog/math/interpolator/pchip1.js +81 -0
  1042. data/third_party/closure-library/closure/goog/math/interpolator/pchip1_test.html +74 -0
  1043. data/third_party/closure-library/closure/goog/math/interpolator/spline1.js +202 -0
  1044. data/third_party/closure-library/closure/goog/math/interpolator/spline1_test.html +103 -0
  1045. data/third_party/closure-library/closure/goog/math/line.js +177 -0
  1046. data/third_party/closure-library/closure/goog/math/line_test.html +62 -0
  1047. data/third_party/closure-library/closure/goog/math/long.js +802 -0
  1048. data/third_party/closure-library/closure/goog/math/long_test.html +1571 -0
  1049. data/third_party/closure-library/closure/goog/math/math.js +387 -0
  1050. data/third_party/closure-library/closure/goog/math/math_test.html +292 -0
  1051. data/third_party/closure-library/closure/goog/math/matrix.js +675 -0
  1052. data/third_party/closure-library/closure/goog/math/matrix_test.html +434 -0
  1053. data/third_party/closure-library/closure/goog/math/range.js +144 -0
  1054. data/third_party/closure-library/closure/goog/math/range_test.html +103 -0
  1055. data/third_party/closure-library/closure/goog/math/rangeset.js +394 -0
  1056. data/third_party/closure-library/closure/goog/math/rangeset_test.html +664 -0
  1057. data/third_party/closure-library/closure/goog/math/rect.js +463 -0
  1058. data/third_party/closure-library/closure/goog/math/rect_test.html +444 -0
  1059. data/third_party/closure-library/closure/goog/math/size.js +206 -0
  1060. data/third_party/closure-library/closure/goog/math/size_test.html +180 -0
  1061. data/third_party/closure-library/closure/goog/math/tdma.js +73 -0
  1062. data/third_party/closure-library/closure/goog/math/tdma_test.html +33 -0
  1063. data/third_party/closure-library/closure/goog/math/vec2.js +283 -0
  1064. data/third_party/closure-library/closure/goog/math/vec2_test.html +225 -0
  1065. data/third_party/closure-library/closure/goog/math/vec3.js +308 -0
  1066. data/third_party/closure-library/closure/goog/math/vec3_test.html +221 -0
  1067. data/third_party/closure-library/closure/goog/memoize/memoize.js +102 -0
  1068. data/third_party/closure-library/closure/goog/memoize/memoize_test.html +157 -0
  1069. data/third_party/closure-library/closure/goog/messaging/abstractchannel.js +210 -0
  1070. data/third_party/closure-library/closure/goog/messaging/abstractchannel_test.html +89 -0
  1071. data/third_party/closure-library/closure/goog/messaging/bufferedchannel.js +287 -0
  1072. data/third_party/closure-library/closure/goog/messaging/bufferedchannel_test.html +283 -0
  1073. data/third_party/closure-library/closure/goog/messaging/deferredchannel.js +98 -0
  1074. data/third_party/closure-library/closure/goog/messaging/deferredchannel_test.html +113 -0
  1075. data/third_party/closure-library/closure/goog/messaging/loggerclient.js +131 -0
  1076. data/third_party/closure-library/closure/goog/messaging/loggerclient_test.html +102 -0
  1077. data/third_party/closure-library/closure/goog/messaging/loggerserver.js +98 -0
  1078. data/third_party/closure-library/closure/goog/messaging/loggerserver_test.html +101 -0
  1079. data/third_party/closure-library/closure/goog/messaging/messagechannel.js +116 -0
  1080. data/third_party/closure-library/closure/goog/messaging/messaging.js +34 -0
  1081. data/third_party/closure-library/closure/goog/messaging/messaging_test.html +42 -0
  1082. data/third_party/closure-library/closure/goog/messaging/multichannel.js +302 -0
  1083. data/third_party/closure-library/closure/goog/messaging/multichannel_test.html +122 -0
  1084. data/third_party/closure-library/closure/goog/messaging/portcaller.js +151 -0
  1085. data/third_party/closure-library/closure/goog/messaging/portcaller_test.html +65 -0
  1086. data/third_party/closure-library/closure/goog/messaging/portchannel.js +401 -0
  1087. data/third_party/closure-library/closure/goog/messaging/portchannel_test.html +392 -0
  1088. data/third_party/closure-library/closure/goog/messaging/portnetwork.js +78 -0
  1089. data/third_party/closure-library/closure/goog/messaging/portnetwork_test.html +74 -0
  1090. data/third_party/closure-library/closure/goog/messaging/portoperator.js +197 -0
  1091. data/third_party/closure-library/closure/goog/messaging/portoperator_test.html +112 -0
  1092. data/third_party/closure-library/closure/goog/messaging/respondingchannel.js +236 -0
  1093. data/third_party/closure-library/closure/goog/messaging/respondingchannel_test.html +161 -0
  1094. data/third_party/closure-library/closure/goog/messaging/testdata/portchannel_inner.html +28 -0
  1095. data/third_party/closure-library/closure/goog/messaging/testdata/portchannel_worker.js +37 -0
  1096. data/third_party/closure-library/closure/goog/messaging/testdata/portchannel_wrong_origin_inner.html +29 -0
  1097. data/third_party/closure-library/closure/goog/messaging/testdata/portnetwork_inner.html +34 -0
  1098. data/third_party/closure-library/closure/goog/messaging/testdata/portnetwork_worker1.js +32 -0
  1099. data/third_party/closure-library/closure/goog/messaging/testdata/portnetwork_worker2.js +32 -0
  1100. data/third_party/closure-library/closure/goog/module/abstractmoduleloader.js +56 -0
  1101. data/third_party/closure-library/closure/goog/module/basemodule.js +45 -0
  1102. data/third_party/closure-library/closure/goog/module/loader.js +269 -0
  1103. data/third_party/closure-library/closure/goog/module/module.js +166 -0
  1104. data/third_party/closure-library/closure/goog/module/moduleinfo.js +335 -0
  1105. data/third_party/closure-library/closure/goog/module/moduleinfo_test.html +108 -0
  1106. data/third_party/closure-library/closure/goog/module/moduleloadcallback.js +84 -0
  1107. data/third_party/closure-library/closure/goog/module/moduleloadcallback_test.html +57 -0
  1108. data/third_party/closure-library/closure/goog/module/moduleloader.js +462 -0
  1109. data/third_party/closure-library/closure/goog/module/moduleloader_test.html +30 -0
  1110. data/third_party/closure-library/closure/goog/module/moduleloader_test.js +438 -0
  1111. data/third_party/closure-library/closure/goog/module/modulemanager.js +1370 -0
  1112. data/third_party/closure-library/closure/goog/module/modulemanager_test.html +2143 -0
  1113. data/third_party/closure-library/closure/goog/module/testdata/modA_1.js +23 -0
  1114. data/third_party/closure-library/closure/goog/module/testdata/modA_2.js +27 -0
  1115. data/third_party/closure-library/closure/goog/module/testdata/modB_1.js +31 -0
  1116. data/third_party/closure-library/closure/goog/net/browserchannel.js +2757 -0
  1117. data/third_party/closure-library/closure/goog/net/browserchannel_test.html +1328 -0
  1118. data/third_party/closure-library/closure/goog/net/browsertestchannel.js +618 -0
  1119. data/third_party/closure-library/closure/goog/net/bulkloader.js +181 -0
  1120. data/third_party/closure-library/closure/goog/net/bulkloader_test.html +233 -0
  1121. data/third_party/closure-library/closure/goog/net/bulkloaderhelper.js +127 -0
  1122. data/third_party/closure-library/closure/goog/net/channeldebug.js +300 -0
  1123. data/third_party/closure-library/closure/goog/net/channelrequest.js +1312 -0
  1124. data/third_party/closure-library/closure/goog/net/channelrequest_test.html +280 -0
  1125. data/third_party/closure-library/closure/goog/net/cookies.js +370 -0
  1126. data/third_party/closure-library/closure/goog/net/cookies_test.html +266 -0
  1127. data/third_party/closure-library/closure/goog/net/crossdomainrpc.js +849 -0
  1128. data/third_party/closure-library/closure/goog/net/crossdomainrpc_test.css +7 -0
  1129. data/third_party/closure-library/closure/goog/net/crossdomainrpc_test.gif +0 -0
  1130. data/third_party/closure-library/closure/goog/net/crossdomainrpc_test.html +120 -0
  1131. data/third_party/closure-library/closure/goog/net/crossdomainrpc_test_response.html +59 -0
  1132. data/third_party/closure-library/closure/goog/net/errorcode.js +130 -0
  1133. data/third_party/closure-library/closure/goog/net/eventtype.js +37 -0
  1134. data/third_party/closure-library/closure/goog/net/filedownloader.js +743 -0
  1135. data/third_party/closure-library/closure/goog/net/filedownloader_test.html +372 -0
  1136. data/third_party/closure-library/closure/goog/net/httpstatus.js +111 -0
  1137. data/third_party/closure-library/closure/goog/net/iframe_xhr_test.html +147 -0
  1138. data/third_party/closure-library/closure/goog/net/iframe_xhr_test_response.html +17 -0
  1139. data/third_party/closure-library/closure/goog/net/iframeio.js +1355 -0
  1140. data/third_party/closure-library/closure/goog/net/iframeio_different_base_test.data +2 -0
  1141. data/third_party/closure-library/closure/goog/net/iframeio_different_base_test.html +44 -0
  1142. data/third_party/closure-library/closure/goog/net/iframeio_test.html +402 -0
  1143. data/third_party/closure-library/closure/goog/net/iframeloadmonitor.js +200 -0
  1144. data/third_party/closure-library/closure/goog/net/iframeloadmonitor_test.html +113 -0
  1145. data/third_party/closure-library/closure/goog/net/iframeloadmonitor_test_frame.html +12 -0
  1146. data/third_party/closure-library/closure/goog/net/iframeloadmonitor_test_frame2.html +12 -0
  1147. data/third_party/closure-library/closure/goog/net/iframeloadmonitor_test_frame3.html +12 -0
  1148. data/third_party/closure-library/closure/goog/net/imageloader.js +292 -0
  1149. data/third_party/closure-library/closure/goog/net/imageloader_test.html +302 -0
  1150. data/third_party/closure-library/closure/goog/net/imageloader_testimg1.gif +0 -0
  1151. data/third_party/closure-library/closure/goog/net/imageloader_testimg2.gif +0 -0
  1152. data/third_party/closure-library/closure/goog/net/imageloader_testimg3.gif +0 -0
  1153. data/third_party/closure-library/closure/goog/net/ipaddress.js +511 -0
  1154. data/third_party/closure-library/closure/goog/net/ipaddress_test.html +227 -0
  1155. data/third_party/closure-library/closure/goog/net/jsloader.js +366 -0
  1156. data/third_party/closure-library/closure/goog/net/jsloader_test.html +142 -0
  1157. data/third_party/closure-library/closure/goog/net/jsonp.js +338 -0
  1158. data/third_party/closure-library/closure/goog/net/jsonp_test.html +327 -0
  1159. data/third_party/closure-library/closure/goog/net/mockiframeio.js +319 -0
  1160. data/third_party/closure-library/closure/goog/net/multiiframeloadmonitor.js +117 -0
  1161. data/third_party/closure-library/closure/goog/net/multiiframeloadmonitor_test.html +172 -0
  1162. data/third_party/closure-library/closure/goog/net/networkstatusmonitor.js +47 -0
  1163. data/third_party/closure-library/closure/goog/net/networktester.js +383 -0
  1164. data/third_party/closure-library/closure/goog/net/networktester_test.html +227 -0
  1165. data/third_party/closure-library/closure/goog/net/testdata/jsloader_test1.js +23 -0
  1166. data/third_party/closure-library/closure/goog/net/testdata/jsloader_test2.js +23 -0
  1167. data/third_party/closure-library/closure/goog/net/testdata/jsloader_test3.js +23 -0
  1168. data/third_party/closure-library/closure/goog/net/testdata/jsloader_test4.js +23 -0
  1169. data/third_party/closure-library/closure/goog/net/tmpnetwork.js +164 -0
  1170. data/third_party/closure-library/closure/goog/net/websocket.js +505 -0
  1171. data/third_party/closure-library/closure/goog/net/websocket_test.html +367 -0
  1172. data/third_party/closure-library/closure/goog/net/wrapperxmlhttpfactory.js +68 -0
  1173. data/third_party/closure-library/closure/goog/net/xhrio.js +1191 -0
  1174. data/third_party/closure-library/closure/goog/net/xhrio_test.html +732 -0
  1175. data/third_party/closure-library/closure/goog/net/xhriopool.js +80 -0
  1176. data/third_party/closure-library/closure/goog/net/xhrmanager.js +787 -0
  1177. data/third_party/closure-library/closure/goog/net/xhrmanager_test.html +123 -0
  1178. data/third_party/closure-library/closure/goog/net/xmlhttp.js +228 -0
  1179. data/third_party/closure-library/closure/goog/net/xmlhttpfactory.js +64 -0
  1180. data/third_party/closure-library/closure/goog/net/xpc/crosspagechannel.js +805 -0
  1181. data/third_party/closure-library/closure/goog/net/xpc/crosspagechannel_test.html +1024 -0
  1182. data/third_party/closure-library/closure/goog/net/xpc/crosspagechannelrole.js +30 -0
  1183. data/third_party/closure-library/closure/goog/net/xpc/frameelementmethodtransport.js +254 -0
  1184. data/third_party/closure-library/closure/goog/net/xpc/iframepollingtransport.js +921 -0
  1185. data/third_party/closure-library/closure/goog/net/xpc/iframepollingtransport_test.html +295 -0
  1186. data/third_party/closure-library/closure/goog/net/xpc/iframerelaytransport.js +394 -0
  1187. data/third_party/closure-library/closure/goog/net/xpc/nativemessagingtransport.js +649 -0
  1188. data/third_party/closure-library/closure/goog/net/xpc/nativemessagingtransport_test.html +304 -0
  1189. data/third_party/closure-library/closure/goog/net/xpc/nixtransport.js +479 -0
  1190. data/third_party/closure-library/closure/goog/net/xpc/relay.js +72 -0
  1191. data/third_party/closure-library/closure/goog/net/xpc/testdata/access_checker.html +29 -0
  1192. data/third_party/closure-library/closure/goog/net/xpc/testdata/inner_peer.html +96 -0
  1193. data/third_party/closure-library/closure/goog/net/xpc/transport.js +105 -0
  1194. data/third_party/closure-library/closure/goog/net/xpc/xpc.js +293 -0
  1195. data/third_party/closure-library/closure/goog/object/object.js +635 -0
  1196. data/third_party/closure-library/closure/goog/object/object_test.html +466 -0
  1197. data/third_party/closure-library/closure/goog/positioning/absoluteposition.js +74 -0
  1198. data/third_party/closure-library/closure/goog/positioning/abstractposition.js +48 -0
  1199. data/third_party/closure-library/closure/goog/positioning/anchoredposition.js +92 -0
  1200. data/third_party/closure-library/closure/goog/positioning/anchoredposition_test.html +77 -0
  1201. data/third_party/closure-library/closure/goog/positioning/anchoredviewportposition.js +191 -0
  1202. data/third_party/closure-library/closure/goog/positioning/anchoredviewportposition_test.html +174 -0
  1203. data/third_party/closure-library/closure/goog/positioning/anchoredviewportposition_test_iframe.html +35 -0
  1204. data/third_party/closure-library/closure/goog/positioning/clientposition.js +88 -0
  1205. data/third_party/closure-library/closure/goog/positioning/clientposition_test.html +22 -0
  1206. data/third_party/closure-library/closure/goog/positioning/clientposition_test.js +122 -0
  1207. data/third_party/closure-library/closure/goog/positioning/menuanchoredposition.js +71 -0
  1208. data/third_party/closure-library/closure/goog/positioning/menuanchoredposition_test.html +119 -0
  1209. data/third_party/closure-library/closure/goog/positioning/positioning.js +557 -0
  1210. data/third_party/closure-library/closure/goog/positioning/positioning_test.html +199 -0
  1211. data/third_party/closure-library/closure/goog/positioning/positioning_test.js +1168 -0
  1212. data/third_party/closure-library/closure/goog/positioning/positioning_test_iframe1.html +16 -0
  1213. data/third_party/closure-library/closure/goog/positioning/positioning_test_iframe2.html +13 -0
  1214. data/third_party/closure-library/closure/goog/positioning/positioning_test_quirk.html +9 -0
  1215. data/third_party/closure-library/closure/goog/positioning/positioning_test_standard.html +13 -0
  1216. data/third_party/closure-library/closure/goog/positioning/viewportclientposition.js +121 -0
  1217. data/third_party/closure-library/closure/goog/positioning/viewportclientposition_test.html +189 -0
  1218. data/third_party/closure-library/closure/goog/positioning/viewportposition.js +64 -0
  1219. data/third_party/closure-library/closure/goog/proto/proto.js +44 -0
  1220. data/third_party/closure-library/closure/goog/proto/serializer.js +69 -0
  1221. data/third_party/closure-library/closure/goog/proto/serializer_test.html +43 -0
  1222. data/third_party/closure-library/closure/goog/proto2/descriptor.js +200 -0
  1223. data/third_party/closure-library/closure/goog/proto2/descriptor_test.html +60 -0
  1224. data/third_party/closure-library/closure/goog/proto2/fielddescriptor.js +291 -0
  1225. data/third_party/closure-library/closure/goog/proto2/fielddescriptor_test.html +132 -0
  1226. data/third_party/closure-library/closure/goog/proto2/lazydeserializer.js +70 -0
  1227. data/third_party/closure-library/closure/goog/proto2/message.js +840 -0
  1228. data/third_party/closure-library/closure/goog/proto2/message_test.html +467 -0
  1229. data/third_party/closure-library/closure/goog/proto2/objectserializer.js +159 -0
  1230. data/third_party/closure-library/closure/goog/proto2/objectserializer_test.html +489 -0
  1231. data/third_party/closure-library/closure/goog/proto2/package_test.pb.js +166 -0
  1232. data/third_party/closure-library/closure/goog/proto2/pbliteserializer.js +193 -0
  1233. data/third_party/closure-library/closure/goog/proto2/pbliteserializer_test.html +504 -0
  1234. data/third_party/closure-library/closure/goog/proto2/proto_test.html +693 -0
  1235. data/third_party/closure-library/closure/goog/proto2/serializer.js +174 -0
  1236. data/third_party/closure-library/closure/goog/proto2/test.pb.js +2876 -0
  1237. data/third_party/closure-library/closure/goog/proto2/textformatserializer.js +995 -0
  1238. data/third_party/closure-library/closure/goog/proto2/textformatserializer_test.html +21 -0
  1239. data/third_party/closure-library/closure/goog/proto2/textformatserializer_test.js +629 -0
  1240. data/third_party/closure-library/closure/goog/proto2/util.js +54 -0
  1241. data/third_party/closure-library/closure/goog/pubsub/pubsub.js +326 -0
  1242. data/third_party/closure-library/closure/goog/pubsub/pubsub_perf.html +298 -0
  1243. data/third_party/closure-library/closure/goog/pubsub/pubsub_test.html +635 -0
  1244. data/third_party/closure-library/closure/goog/reflect/reflect.js +77 -0
  1245. data/third_party/closure-library/closure/goog/result/chain_test.html +236 -0
  1246. data/third_party/closure-library/closure/goog/result/combine_test.html +229 -0
  1247. data/third_party/closure-library/closure/goog/result/deferredadaptor.js +57 -0
  1248. data/third_party/closure-library/closure/goog/result/deferredadaptor_test.html +86 -0
  1249. data/third_party/closure-library/closure/goog/result/dependentresult.js +44 -0
  1250. data/third_party/closure-library/closure/goog/result/result_interface.js +109 -0
  1251. data/third_party/closure-library/closure/goog/result/resultutil.js +550 -0
  1252. data/third_party/closure-library/closure/goog/result/resultutil_test.html +46 -0
  1253. data/third_party/closure-library/closure/goog/result/simpleresult.js +217 -0
  1254. data/third_party/closure-library/closure/goog/result/simpleresult_test.html +271 -0
  1255. data/third_party/closure-library/closure/goog/result/transform_test.html +153 -0
  1256. data/third_party/closure-library/closure/goog/result/wait_test.html +211 -0
  1257. data/third_party/closure-library/closure/goog/soy/data.js +132 -0
  1258. data/third_party/closure-library/closure/goog/soy/renderer.js +266 -0
  1259. data/third_party/closure-library/closure/goog/soy/renderer_test.html +172 -0
  1260. data/third_party/closure-library/closure/goog/soy/soy.js +205 -0
  1261. data/third_party/closure-library/closure/goog/soy/soy_test.html +230 -0
  1262. data/third_party/closure-library/closure/goog/soy/soy_test.js +175 -0
  1263. data/third_party/closure-library/closure/goog/spell/spellcheck.js +475 -0
  1264. data/third_party/closure-library/closure/goog/spell/spellcheck_test.html +112 -0
  1265. data/third_party/closure-library/closure/goog/stats/basicstat.js +271 -0
  1266. data/third_party/closure-library/closure/goog/stats/basicstat_test.html +167 -0
  1267. data/third_party/closure-library/closure/goog/storage/collectablestorage.js +100 -0
  1268. data/third_party/closure-library/closure/goog/storage/collectablestorage_test.html +76 -0
  1269. data/third_party/closure-library/closure/goog/storage/encryptedstorage.js +201 -0
  1270. data/third_party/closure-library/closure/goog/storage/encryptedstorage_test.html +160 -0
  1271. data/third_party/closure-library/closure/goog/storage/errorcode.js +30 -0
  1272. data/third_party/closure-library/closure/goog/storage/expiringstorage.js +142 -0
  1273. data/third_party/closure-library/closure/goog/storage/expiringstorage_test.html +90 -0
  1274. data/third_party/closure-library/closure/goog/storage/mechanism/errorcode.js +31 -0
  1275. data/third_party/closure-library/closure/goog/storage/mechanism/errorhandlingmechanism.js +128 -0
  1276. data/third_party/closure-library/closure/goog/storage/mechanism/errorhandlingmechanism_test.html +83 -0
  1277. data/third_party/closure-library/closure/goog/storage/mechanism/html5localstorage.js +45 -0
  1278. data/third_party/closure-library/closure/goog/storage/mechanism/html5localstorage_test.html +60 -0
  1279. data/third_party/closure-library/closure/goog/storage/mechanism/html5sessionstorage.js +46 -0
  1280. data/third_party/closure-library/closure/goog/storage/mechanism/html5sessionstorage_test.html +61 -0
  1281. data/third_party/closure-library/closure/goog/storage/mechanism/html5webstorage.js +176 -0
  1282. data/third_party/closure-library/closure/goog/storage/mechanism/html5webstorage_test.html +122 -0
  1283. data/third_party/closure-library/closure/goog/storage/mechanism/ieuserdata.js +283 -0
  1284. data/third_party/closure-library/closure/goog/storage/mechanism/ieuserdata_test.html +78 -0
  1285. data/third_party/closure-library/closure/goog/storage/mechanism/iterablemechanism.js +86 -0
  1286. data/third_party/closure-library/closure/goog/storage/mechanism/iterablemechanismtester.js +117 -0
  1287. data/third_party/closure-library/closure/goog/storage/mechanism/mechanism.js +56 -0
  1288. data/third_party/closure-library/closure/goog/storage/mechanism/mechanismfactory.js +113 -0
  1289. data/third_party/closure-library/closure/goog/storage/mechanism/mechanismfactory_test.html +58 -0
  1290. data/third_party/closure-library/closure/goog/storage/mechanism/mechanismseparationtester.js +91 -0
  1291. data/third_party/closure-library/closure/goog/storage/mechanism/mechanismsharingtester.js +87 -0
  1292. data/third_party/closure-library/closure/goog/storage/mechanism/mechanismtester.js +200 -0
  1293. data/third_party/closure-library/closure/goog/storage/mechanism/prefixedmechanism.js +97 -0
  1294. data/third_party/closure-library/closure/goog/storage/mechanism/prefixedmechanism_test.html +66 -0
  1295. data/third_party/closure-library/closure/goog/storage/richstorage.js +149 -0
  1296. data/third_party/closure-library/closure/goog/storage/richstorage_test.html +87 -0
  1297. data/third_party/closure-library/closure/goog/storage/storage.js +111 -0
  1298. data/third_party/closure-library/closure/goog/storage/storage_test.html +64 -0
  1299. data/third_party/closure-library/closure/goog/storage/storage_test.js +60 -0
  1300. data/third_party/closure-library/closure/goog/string/linkify.js +236 -0
  1301. data/third_party/closure-library/closure/goog/string/linkify_test.html +441 -0
  1302. data/third_party/closure-library/closure/goog/string/newlines.js +153 -0
  1303. data/third_party/closure-library/closure/goog/string/newlines_test.html +19 -0
  1304. data/third_party/closure-library/closure/goog/string/newlines_test.js +87 -0
  1305. data/third_party/closure-library/closure/goog/string/parser.js +38 -0
  1306. data/third_party/closure-library/closure/goog/string/path.js +169 -0
  1307. data/third_party/closure-library/closure/goog/string/path_test.html +111 -0
  1308. data/third_party/closure-library/closure/goog/string/string.js +1378 -0
  1309. data/third_party/closure-library/closure/goog/string/string_test.html +19 -0
  1310. data/third_party/closure-library/closure/goog/string/string_test.js +1173 -0
  1311. data/third_party/closure-library/closure/goog/string/stringbuffer.js +103 -0
  1312. data/third_party/closure-library/closure/goog/string/stringbuffer_test.html +101 -0
  1313. data/third_party/closure-library/closure/goog/string/stringformat.js +251 -0
  1314. data/third_party/closure-library/closure/goog/string/stringformat_test.html +223 -0
  1315. data/third_party/closure-library/closure/goog/string/stringifier.js +38 -0
  1316. data/third_party/closure-library/closure/goog/structs/avltree.js +835 -0
  1317. data/third_party/closure-library/closure/goog/structs/avltree_test.html +303 -0
  1318. data/third_party/closure-library/closure/goog/structs/circularbuffer.js +223 -0
  1319. data/third_party/closure-library/closure/goog/structs/circularbuffer_test.html +105 -0
  1320. data/third_party/closure-library/closure/goog/structs/collection.js +55 -0
  1321. data/third_party/closure-library/closure/goog/structs/collection_test.html +57 -0
  1322. data/third_party/closure-library/closure/goog/structs/heap.js +333 -0
  1323. data/third_party/closure-library/closure/goog/structs/heap_test.html +220 -0
  1324. data/third_party/closure-library/closure/goog/structs/inversionmap.js +159 -0
  1325. data/third_party/closure-library/closure/goog/structs/inversionmap_test.html +157 -0
  1326. data/third_party/closure-library/closure/goog/structs/linkedmap.js +473 -0
  1327. data/third_party/closure-library/closure/goog/structs/linkedmap_test.html +300 -0
  1328. data/third_party/closure-library/closure/goog/structs/map.js +449 -0
  1329. data/third_party/closure-library/closure/goog/structs/map_test.html +430 -0
  1330. data/third_party/closure-library/closure/goog/structs/node.js +74 -0
  1331. data/third_party/closure-library/closure/goog/structs/pool.js +381 -0
  1332. data/third_party/closure-library/closure/goog/structs/pool_test.html +291 -0
  1333. data/third_party/closure-library/closure/goog/structs/prioritypool.js +184 -0
  1334. data/third_party/closure-library/closure/goog/structs/prioritypool_test.html +588 -0
  1335. data/third_party/closure-library/closure/goog/structs/priorityqueue.js +64 -0
  1336. data/third_party/closure-library/closure/goog/structs/priorityqueue_test.html +179 -0
  1337. data/third_party/closure-library/closure/goog/structs/quadtree.js +571 -0
  1338. data/third_party/closure-library/closure/goog/structs/quadtree_test.html +179 -0
  1339. data/third_party/closure-library/closure/goog/structs/queue.js +157 -0
  1340. data/third_party/closure-library/closure/goog/structs/queue_test.html +140 -0
  1341. data/third_party/closure-library/closure/goog/structs/set.js +274 -0
  1342. data/third_party/closure-library/closure/goog/structs/set_perf.html +271 -0
  1343. data/third_party/closure-library/closure/goog/structs/set_test.html +581 -0
  1344. data/third_party/closure-library/closure/goog/structs/simplepool.js +205 -0
  1345. data/third_party/closure-library/closure/goog/structs/stringset.js +403 -0
  1346. data/third_party/closure-library/closure/goog/structs/stringset_test.html +265 -0
  1347. data/third_party/closure-library/closure/goog/structs/structs.js +351 -0
  1348. data/third_party/closure-library/closure/goog/structs/structs_test.html +1050 -0
  1349. data/third_party/closure-library/closure/goog/structs/treenode.js +428 -0
  1350. data/third_party/closure-library/closure/goog/structs/treenode_test.html +370 -0
  1351. data/third_party/closure-library/closure/goog/structs/trie.js +368 -0
  1352. data/third_party/closure-library/closure/goog/structs/trie_test.html +378 -0
  1353. data/third_party/closure-library/closure/goog/style/bidi.js +182 -0
  1354. data/third_party/closure-library/closure/goog/style/bidi_test.html +211 -0
  1355. data/third_party/closure-library/closure/goog/style/cursor.js +115 -0
  1356. data/third_party/closure-library/closure/goog/style/cursor_test.html +132 -0
  1357. data/third_party/closure-library/closure/goog/style/style.js +2087 -0
  1358. data/third_party/closure-library/closure/goog/style/style_quirks_test.html +530 -0
  1359. data/third_party/closure-library/closure/goog/style/style_test.html +518 -0
  1360. data/third_party/closure-library/closure/goog/style/style_test.js +2602 -0
  1361. data/third_party/closure-library/closure/goog/style/style_test_iframe_quirk.html +27 -0
  1362. data/third_party/closure-library/closure/goog/style/style_test_iframe_standard.html +30 -0
  1363. data/third_party/closure-library/closure/goog/style/style_test_quirk.html +9 -0
  1364. data/third_party/closure-library/closure/goog/style/style_test_standard.html +11 -0
  1365. data/third_party/closure-library/closure/goog/style/style_webkit_scrollbars_test.html +79 -0
  1366. data/third_party/closure-library/closure/goog/style/stylescrollbartester.js +78 -0
  1367. data/third_party/closure-library/closure/goog/style/transition.js +138 -0
  1368. data/third_party/closure-library/closure/goog/style/transition_test.html +124 -0
  1369. data/third_party/closure-library/closure/goog/testing/asserts.js +1243 -0
  1370. data/third_party/closure-library/closure/goog/testing/asserts_test.html +1150 -0
  1371. data/third_party/closure-library/closure/goog/testing/async/mockcontrol.js +174 -0
  1372. data/third_party/closure-library/closure/goog/testing/async/mockcontrol_test.html +223 -0
  1373. data/third_party/closure-library/closure/goog/testing/asynctestcase.js +824 -0
  1374. data/third_party/closure-library/closure/goog/testing/asynctestcase_async_test.html +102 -0
  1375. data/third_party/closure-library/closure/goog/testing/asynctestcase_noasync_test.html +98 -0
  1376. data/third_party/closure-library/closure/goog/testing/asynctestcase_test.html +58 -0
  1377. data/third_party/closure-library/closure/goog/testing/benchmark.js +88 -0
  1378. data/third_party/closure-library/closure/goog/testing/continuationtestcase.js +689 -0
  1379. data/third_party/closure-library/closure/goog/testing/continuationtestcase_test.html +352 -0
  1380. data/third_party/closure-library/closure/goog/testing/deferredtestcase.js +155 -0
  1381. data/third_party/closure-library/closure/goog/testing/deferredtestcase_test.html +140 -0
  1382. data/third_party/closure-library/closure/goog/testing/dom.js +608 -0
  1383. data/third_party/closure-library/closure/goog/testing/dom_test.html +438 -0
  1384. data/third_party/closure-library/closure/goog/testing/editor/dom.js +293 -0
  1385. data/third_party/closure-library/closure/goog/testing/editor/dom_test.html +295 -0
  1386. data/third_party/closure-library/closure/goog/testing/editor/fieldmock.js +99 -0
  1387. data/third_party/closure-library/closure/goog/testing/editor/testhelper.js +176 -0
  1388. data/third_party/closure-library/closure/goog/testing/editor/testhelper_test.html +177 -0
  1389. data/third_party/closure-library/closure/goog/testing/events/eventobserver.js +86 -0
  1390. data/third_party/closure-library/closure/goog/testing/events/eventobserver_test.html +70 -0
  1391. data/third_party/closure-library/closure/goog/testing/events/events.js +713 -0
  1392. data/third_party/closure-library/closure/goog/testing/events/events_test.html +614 -0
  1393. data/third_party/closure-library/closure/goog/testing/events/matchers.js +41 -0
  1394. data/third_party/closure-library/closure/goog/testing/events/matchers_test.html +40 -0
  1395. data/third_party/closure-library/closure/goog/testing/events/onlinehandler.js +64 -0
  1396. data/third_party/closure-library/closure/goog/testing/events/onlinehandler_test.html +89 -0
  1397. data/third_party/closure-library/closure/goog/testing/expectedfailures.js +236 -0
  1398. data/third_party/closure-library/closure/goog/testing/expectedfailures_test.html +122 -0
  1399. data/third_party/closure-library/closure/goog/testing/fs/blob.js +116 -0
  1400. data/third_party/closure-library/closure/goog/testing/fs/blob_test.html +65 -0
  1401. data/third_party/closure-library/closure/goog/testing/fs/directoryentry_test.html +313 -0
  1402. data/third_party/closure-library/closure/goog/testing/fs/entry.js +621 -0
  1403. data/third_party/closure-library/closure/goog/testing/fs/entry_test.html +227 -0
  1404. data/third_party/closure-library/closure/goog/testing/fs/file.js +52 -0
  1405. data/third_party/closure-library/closure/goog/testing/fs/fileentry_test.html +93 -0
  1406. data/third_party/closure-library/closure/goog/testing/fs/filereader.js +272 -0
  1407. data/third_party/closure-library/closure/goog/testing/fs/filereader_test.html +236 -0
  1408. data/third_party/closure-library/closure/goog/testing/fs/filesystem.js +63 -0
  1409. data/third_party/closure-library/closure/goog/testing/fs/filewriter.js +261 -0
  1410. data/third_party/closure-library/closure/goog/testing/fs/filewriter_test.html +325 -0
  1411. data/third_party/closure-library/closure/goog/testing/fs/fs.js +147 -0
  1412. data/third_party/closure-library/closure/goog/testing/fs/fs_test.html +53 -0
  1413. data/third_party/closure-library/closure/goog/testing/fs/integration_test.html +223 -0
  1414. data/third_party/closure-library/closure/goog/testing/fs/progressevent.js +81 -0
  1415. data/third_party/closure-library/closure/goog/testing/functionmock.js +177 -0
  1416. data/third_party/closure-library/closure/goog/testing/functionmock_test.html +511 -0
  1417. data/third_party/closure-library/closure/goog/testing/graphics.js +64 -0
  1418. data/third_party/closure-library/closure/goog/testing/i18n/asserts.js +77 -0
  1419. data/third_party/closure-library/closure/goog/testing/i18n/asserts_test.html +19 -0
  1420. data/third_party/closure-library/closure/goog/testing/i18n/asserts_test.js +67 -0
  1421. data/third_party/closure-library/closure/goog/testing/jsunit.js +156 -0
  1422. data/third_party/closure-library/closure/goog/testing/loosemock.js +240 -0
  1423. data/third_party/closure-library/closure/goog/testing/loosemock_test.html +343 -0
  1424. data/third_party/closure-library/closure/goog/testing/messaging/mockmessagechannel.js +79 -0
  1425. data/third_party/closure-library/closure/goog/testing/messaging/mockmessageevent.js +100 -0
  1426. data/third_party/closure-library/closure/goog/testing/messaging/mockmessageport.js +85 -0
  1427. data/third_party/closure-library/closure/goog/testing/messaging/mockportnetwork.js +65 -0
  1428. data/third_party/closure-library/closure/goog/testing/mock.js +619 -0
  1429. data/third_party/closure-library/closure/goog/testing/mock_test.html +264 -0
  1430. data/third_party/closure-library/closure/goog/testing/mockclassfactory.js +578 -0
  1431. data/third_party/closure-library/closure/goog/testing/mockclassfactory_test.html +241 -0
  1432. data/third_party/closure-library/closure/goog/testing/mockclock.js +520 -0
  1433. data/third_party/closure-library/closure/goog/testing/mockclock_test.html +504 -0
  1434. data/third_party/closure-library/closure/goog/testing/mockcontrol.js +219 -0
  1435. data/third_party/closure-library/closure/goog/testing/mockcontrol_test.html +127 -0
  1436. data/third_party/closure-library/closure/goog/testing/mockinterface.js +45 -0
  1437. data/third_party/closure-library/closure/goog/testing/mockmatchers.js +395 -0
  1438. data/third_party/closure-library/closure/goog/testing/mockmatchers_test.html +388 -0
  1439. data/third_party/closure-library/closure/goog/testing/mockrandom.js +126 -0
  1440. data/third_party/closure-library/closure/goog/testing/mockrandom_test.html +56 -0
  1441. data/third_party/closure-library/closure/goog/testing/mockrange.js +66 -0
  1442. data/third_party/closure-library/closure/goog/testing/mockrange_test.html +41 -0
  1443. data/third_party/closure-library/closure/goog/testing/mockstorage.js +107 -0
  1444. data/third_party/closure-library/closure/goog/testing/mockstorage_test.html +78 -0
  1445. data/third_party/closure-library/closure/goog/testing/mockuseragent.js +141 -0
  1446. data/third_party/closure-library/closure/goog/testing/mockuseragent_test.html +59 -0
  1447. data/third_party/closure-library/closure/goog/testing/multitestrunner.js +1439 -0
  1448. data/third_party/closure-library/closure/goog/testing/net/xhrio.js +709 -0
  1449. data/third_party/closure-library/closure/goog/testing/net/xhrio_test.html +384 -0
  1450. data/third_party/closure-library/closure/goog/testing/net/xhriopool.js +64 -0
  1451. data/third_party/closure-library/closure/goog/testing/objectpropertystring.js +67 -0
  1452. data/third_party/closure-library/closure/goog/testing/performancetable.css +46 -0
  1453. data/third_party/closure-library/closure/goog/testing/performancetable.js +190 -0
  1454. data/third_party/closure-library/closure/goog/testing/performancetimer.js +405 -0
  1455. data/third_party/closure-library/closure/goog/testing/performancetimer_test.html +201 -0
  1456. data/third_party/closure-library/closure/goog/testing/propertyreplacer.js +243 -0
  1457. data/third_party/closure-library/closure/goog/testing/propertyreplacer_test.html +368 -0
  1458. data/third_party/closure-library/closure/goog/testing/proto2/proto2.js +127 -0
  1459. data/third_party/closure-library/closure/goog/testing/proto2/proto2_test.html +117 -0
  1460. data/third_party/closure-library/closure/goog/testing/pseudorandom.js +179 -0
  1461. data/third_party/closure-library/closure/goog/testing/pseudorandom_test.html +98 -0
  1462. data/third_party/closure-library/closure/goog/testing/recordfunction.js +201 -0
  1463. data/third_party/closure-library/closure/goog/testing/recordfunction_test.html +159 -0
  1464. data/third_party/closure-library/closure/goog/testing/shardingtestcase.js +122 -0
  1465. data/third_party/closure-library/closure/goog/testing/shardingtestcase_test.html +34 -0
  1466. data/third_party/closure-library/closure/goog/testing/singleton.js +46 -0
  1467. data/third_party/closure-library/closure/goog/testing/singleton_test.html +39 -0
  1468. data/third_party/closure-library/closure/goog/testing/stacktrace.js +555 -0
  1469. data/third_party/closure-library/closure/goog/testing/stacktrace_test.html +327 -0
  1470. data/third_party/closure-library/closure/goog/testing/storage/fakemechanism.js +66 -0
  1471. data/third_party/closure-library/closure/goog/testing/strictmock.js +128 -0
  1472. data/third_party/closure-library/closure/goog/testing/strictmock_test.html +412 -0
  1473. data/third_party/closure-library/closure/goog/testing/style/layoutasserts.js +310 -0
  1474. data/third_party/closure-library/closure/goog/testing/style/layoutasserts_test.html +269 -0
  1475. data/third_party/closure-library/closure/goog/testing/style/style.js +101 -0
  1476. data/third_party/closure-library/closure/goog/testing/style/style_test.html +162 -0
  1477. data/third_party/closure-library/closure/goog/testing/testcase.js +1233 -0
  1478. data/third_party/closure-library/closure/goog/testing/testqueue.js +66 -0
  1479. data/third_party/closure-library/closure/goog/testing/testrunner.js +399 -0
  1480. data/third_party/closure-library/closure/goog/testing/ui/rendererasserts.js +56 -0
  1481. data/third_party/closure-library/closure/goog/testing/ui/rendererasserts_test.html +52 -0
  1482. data/third_party/closure-library/closure/goog/testing/ui/rendererharness.js +176 -0
  1483. data/third_party/closure-library/closure/goog/testing/ui/style.js +137 -0
  1484. data/third_party/closure-library/closure/goog/testing/ui/style_reference.html +27 -0
  1485. data/third_party/closure-library/closure/goog/testing/ui/style_test.html +130 -0
  1486. data/third_party/closure-library/closure/goog/timer/timer.js +291 -0
  1487. data/third_party/closure-library/closure/goog/timer/timer_test.html +118 -0
  1488. data/third_party/closure-library/closure/goog/tweak/entries.js +997 -0
  1489. data/third_party/closure-library/closure/goog/tweak/entries_test.html +94 -0
  1490. data/third_party/closure-library/closure/goog/tweak/registry.js +310 -0
  1491. data/third_party/closure-library/closure/goog/tweak/registry_test.html +145 -0
  1492. data/third_party/closure-library/closure/goog/tweak/testhelpers.js +119 -0
  1493. data/third_party/closure-library/closure/goog/tweak/tweak.js +301 -0
  1494. data/third_party/closure-library/closure/goog/tweak/tweakui.js +817 -0
  1495. data/third_party/closure-library/closure/goog/tweak/tweakui_test.html +280 -0
  1496. data/third_party/closure-library/closure/goog/ui/abstractspellchecker.js +1138 -0
  1497. data/third_party/closure-library/closure/goog/ui/ac/ac.js +50 -0
  1498. data/third_party/closure-library/closure/goog/ui/ac/ac_test.html +204 -0
  1499. data/third_party/closure-library/closure/goog/ui/ac/arraymatcher.js +162 -0
  1500. data/third_party/closure-library/closure/goog/ui/ac/arraymatcher_test.html +130 -0
  1501. data/third_party/closure-library/closure/goog/ui/ac/autocomplete.js +919 -0
  1502. data/third_party/closure-library/closure/goog/ui/ac/autocomplete_test.html +1613 -0
  1503. data/third_party/closure-library/closure/goog/ui/ac/inputhandler.js +1308 -0
  1504. data/third_party/closure-library/closure/goog/ui/ac/inputhandler_test.html +685 -0
  1505. data/third_party/closure-library/closure/goog/ui/ac/remote.js +114 -0
  1506. data/third_party/closure-library/closure/goog/ui/ac/remotearraymatcher.js +271 -0
  1507. data/third_party/closure-library/closure/goog/ui/ac/remotearraymatcher_test.html +73 -0
  1508. data/third_party/closure-library/closure/goog/ui/ac/renderer.js +1023 -0
  1509. data/third_party/closure-library/closure/goog/ui/ac/renderer_test.html +606 -0
  1510. data/third_party/closure-library/closure/goog/ui/ac/renderoptions.js +80 -0
  1511. data/third_party/closure-library/closure/goog/ui/ac/richinputhandler.js +58 -0
  1512. data/third_party/closure-library/closure/goog/ui/ac/richremote.js +107 -0
  1513. data/third_party/closure-library/closure/goog/ui/ac/richremotearraymatcher.js +125 -0
  1514. data/third_party/closure-library/closure/goog/ui/activitymonitor.js +347 -0
  1515. data/third_party/closure-library/closure/goog/ui/activitymonitor_test.html +150 -0
  1516. data/third_party/closure-library/closure/goog/ui/advancedtooltip.js +366 -0
  1517. data/third_party/closure-library/closure/goog/ui/advancedtooltip_test.html +296 -0
  1518. data/third_party/closure-library/closure/goog/ui/animatedzippy.js +199 -0
  1519. data/third_party/closure-library/closure/goog/ui/animatedzippy_test.html +139 -0
  1520. data/third_party/closure-library/closure/goog/ui/attachablemenu.js +473 -0
  1521. data/third_party/closure-library/closure/goog/ui/bidiinput.js +178 -0
  1522. data/third_party/closure-library/closure/goog/ui/bidiinput_test.html +131 -0
  1523. data/third_party/closure-library/closure/goog/ui/bubble.js +472 -0
  1524. data/third_party/closure-library/closure/goog/ui/button.js +213 -0
  1525. data/third_party/closure-library/closure/goog/ui/button_perf.html +176 -0
  1526. data/third_party/closure-library/closure/goog/ui/button_test.html +257 -0
  1527. data/third_party/closure-library/closure/goog/ui/buttonrenderer.js +214 -0
  1528. data/third_party/closure-library/closure/goog/ui/buttonrenderer_test.html +223 -0
  1529. data/third_party/closure-library/closure/goog/ui/buttonside.js +41 -0
  1530. data/third_party/closure-library/closure/goog/ui/charcounter.js +199 -0
  1531. data/third_party/closure-library/closure/goog/ui/charpicker.js +880 -0
  1532. data/third_party/closure-library/closure/goog/ui/charpicker_test.html +88 -0
  1533. data/third_party/closure-library/closure/goog/ui/checkbox.js +269 -0
  1534. data/third_party/closure-library/closure/goog/ui/checkbox_test.html +370 -0
  1535. data/third_party/closure-library/closure/goog/ui/checkboxmenuitem.js +53 -0
  1536. data/third_party/closure-library/closure/goog/ui/checkboxrenderer.js +171 -0
  1537. data/third_party/closure-library/closure/goog/ui/colorbutton.js +58 -0
  1538. data/third_party/closure-library/closure/goog/ui/colorbutton_test.html +70 -0
  1539. data/third_party/closure-library/closure/goog/ui/colorbuttonrenderer.js +72 -0
  1540. data/third_party/closure-library/closure/goog/ui/colormenubutton.js +215 -0
  1541. data/third_party/closure-library/closure/goog/ui/colormenubuttonrenderer.js +144 -0
  1542. data/third_party/closure-library/closure/goog/ui/colormenubuttonrenderer_test.html +88 -0
  1543. data/third_party/closure-library/closure/goog/ui/colorpalette.js +177 -0
  1544. data/third_party/closure-library/closure/goog/ui/colorpalette_test.html +174 -0
  1545. data/third_party/closure-library/closure/goog/ui/colorpicker.js +344 -0
  1546. data/third_party/closure-library/closure/goog/ui/colorsplitbehavior.js +60 -0
  1547. data/third_party/closure-library/closure/goog/ui/combobox.js +961 -0
  1548. data/third_party/closure-library/closure/goog/ui/combobox_test.html +292 -0
  1549. data/third_party/closure-library/closure/goog/ui/component.js +1300 -0
  1550. data/third_party/closure-library/closure/goog/ui/component_test.html +889 -0
  1551. data/third_party/closure-library/closure/goog/ui/container.js +1322 -0
  1552. data/third_party/closure-library/closure/goog/ui/container_perf.html +55 -0
  1553. data/third_party/closure-library/closure/goog/ui/container_test.html +458 -0
  1554. data/third_party/closure-library/closure/goog/ui/containerrenderer.js +371 -0
  1555. data/third_party/closure-library/closure/goog/ui/containerrenderer_test.html +228 -0
  1556. data/third_party/closure-library/closure/goog/ui/containerscroller.js +222 -0
  1557. data/third_party/closure-library/closure/goog/ui/containerscroller_test.html +214 -0
  1558. data/third_party/closure-library/closure/goog/ui/control.js +1387 -0
  1559. data/third_party/closure-library/closure/goog/ui/control_perf.html +166 -0
  1560. data/third_party/closure-library/closure/goog/ui/control_test.html +2142 -0
  1561. data/third_party/closure-library/closure/goog/ui/controlcontent.js +28 -0
  1562. data/third_party/closure-library/closure/goog/ui/controlrenderer.js +855 -0
  1563. data/third_party/closure-library/closure/goog/ui/controlrenderer_test.html +1100 -0
  1564. data/third_party/closure-library/closure/goog/ui/cookieeditor.js +183 -0
  1565. data/third_party/closure-library/closure/goog/ui/cookieeditor_test.html +107 -0
  1566. data/third_party/closure-library/closure/goog/ui/css3buttonrenderer.js +152 -0
  1567. data/third_party/closure-library/closure/goog/ui/css3menubuttonrenderer.js +147 -0
  1568. data/third_party/closure-library/closure/goog/ui/cssnames.js +29 -0
  1569. data/third_party/closure-library/closure/goog/ui/custombutton.js +58 -0
  1570. data/third_party/closure-library/closure/goog/ui/custombuttonrenderer.js +267 -0
  1571. data/third_party/closure-library/closure/goog/ui/customcolorpalette.js +139 -0
  1572. data/third_party/closure-library/closure/goog/ui/customcolorpalette_test.html +60 -0
  1573. data/third_party/closure-library/closure/goog/ui/datepicker.js +1369 -0
  1574. data/third_party/closure-library/closure/goog/ui/datepicker_test.html +252 -0
  1575. data/third_party/closure-library/closure/goog/ui/datepickerrenderer.js +55 -0
  1576. data/third_party/closure-library/closure/goog/ui/decorate.js +38 -0
  1577. data/third_party/closure-library/closure/goog/ui/decorate_test.html +114 -0
  1578. data/third_party/closure-library/closure/goog/ui/defaultdatepickerrenderer.js +202 -0
  1579. data/third_party/closure-library/closure/goog/ui/dialog.js +1556 -0
  1580. data/third_party/closure-library/closure/goog/ui/dialog_test.html +776 -0
  1581. data/third_party/closure-library/closure/goog/ui/dimensionpicker.js +305 -0
  1582. data/third_party/closure-library/closure/goog/ui/dimensionpicker_test.html +171 -0
  1583. data/third_party/closure-library/closure/goog/ui/dimensionpickerrenderer.js +416 -0
  1584. data/third_party/closure-library/closure/goog/ui/dimensionpickerrenderer_test.html +49 -0
  1585. data/third_party/closure-library/closure/goog/ui/dragdropdetector.js +642 -0
  1586. data/third_party/closure-library/closure/goog/ui/drilldownrow.js +486 -0
  1587. data/third_party/closure-library/closure/goog/ui/drilldownrow_test.html +92 -0
  1588. data/third_party/closure-library/closure/goog/ui/editor/abstractdialog.js +440 -0
  1589. data/third_party/closure-library/closure/goog/ui/editor/abstractdialog_test.html +473 -0
  1590. data/third_party/closure-library/closure/goog/ui/editor/bubble.js +525 -0
  1591. data/third_party/closure-library/closure/goog/ui/editor/bubble_test.html +264 -0
  1592. data/third_party/closure-library/closure/goog/ui/editor/defaulttoolbar.js +1065 -0
  1593. data/third_party/closure-library/closure/goog/ui/editor/equationeditordialog.js +123 -0
  1594. data/third_party/closure-library/closure/goog/ui/editor/equationeditorokevent.js +49 -0
  1595. data/third_party/closure-library/closure/goog/ui/editor/linkdialog.js +1064 -0
  1596. data/third_party/closure-library/closure/goog/ui/editor/linkdialog_test.html +653 -0
  1597. data/third_party/closure-library/closure/goog/ui/editor/messages.js +123 -0
  1598. data/third_party/closure-library/closure/goog/ui/editor/tabpane.js +198 -0
  1599. data/third_party/closure-library/closure/goog/ui/editor/toolbarcontroller.js +295 -0
  1600. data/third_party/closure-library/closure/goog/ui/editor/toolbarfactory.js +440 -0
  1601. data/third_party/closure-library/closure/goog/ui/editor/toolbarfactory_test.html +73 -0
  1602. data/third_party/closure-library/closure/goog/ui/emoji/emoji.js +72 -0
  1603. data/third_party/closure-library/closure/goog/ui/emoji/emojipalette.js +288 -0
  1604. data/third_party/closure-library/closure/goog/ui/emoji/emojipaletterenderer.js +208 -0
  1605. data/third_party/closure-library/closure/goog/ui/emoji/emojipicker.js +804 -0
  1606. data/third_party/closure-library/closure/goog/ui/emoji/emojipicker_test.html +913 -0
  1607. data/third_party/closure-library/closure/goog/ui/emoji/fast_nonprogressive_emojipicker_test.html +256 -0
  1608. data/third_party/closure-library/closure/goog/ui/emoji/fast_progressive_emojipicker_test.html +256 -0
  1609. data/third_party/closure-library/closure/goog/ui/emoji/popupemojipicker.js +410 -0
  1610. data/third_party/closure-library/closure/goog/ui/emoji/popupemojipicker_test.html +80 -0
  1611. data/third_party/closure-library/closure/goog/ui/emoji/progressiveemojipaletterenderer.js +98 -0
  1612. data/third_party/closure-library/closure/goog/ui/emoji/spriteinfo.js +212 -0
  1613. data/third_party/closure-library/closure/goog/ui/emoji/spriteinfo_test.html +51 -0
  1614. data/third_party/closure-library/closure/goog/ui/equation/arrowpalette.js +47 -0
  1615. data/third_party/closure-library/closure/goog/ui/equation/changeevent.js +37 -0
  1616. data/third_party/closure-library/closure/goog/ui/equation/comparisonpalette.js +56 -0
  1617. data/third_party/closure-library/closure/goog/ui/equation/editorpane.js +93 -0
  1618. data/third_party/closure-library/closure/goog/ui/equation/equationeditor.js +220 -0
  1619. data/third_party/closure-library/closure/goog/ui/equation/equationeditordialog.js +137 -0
  1620. data/third_party/closure-library/closure/goog/ui/equation/greekpalette.js +75 -0
  1621. data/third_party/closure-library/closure/goog/ui/equation/imagerenderer.js +190 -0
  1622. data/third_party/closure-library/closure/goog/ui/equation/mathpalette.js +55 -0
  1623. data/third_party/closure-library/closure/goog/ui/equation/menupalette.js +86 -0
  1624. data/third_party/closure-library/closure/goog/ui/equation/palette.js +288 -0
  1625. data/third_party/closure-library/closure/goog/ui/equation/palettemanager.js +203 -0
  1626. data/third_party/closure-library/closure/goog/ui/equation/symbolpalette.js +74 -0
  1627. data/third_party/closure-library/closure/goog/ui/equation/texeditor.js +141 -0
  1628. data/third_party/closure-library/closure/goog/ui/equation/texpane.js +444 -0
  1629. data/third_party/closure-library/closure/goog/ui/filteredmenu.js +575 -0
  1630. data/third_party/closure-library/closure/goog/ui/filteredmenu_test.html +321 -0
  1631. data/third_party/closure-library/closure/goog/ui/filterobservingmenuitem.js +97 -0
  1632. data/third_party/closure-library/closure/goog/ui/filterobservingmenuitemrenderer.js +62 -0
  1633. data/third_party/closure-library/closure/goog/ui/flatbuttonrenderer.js +146 -0
  1634. data/third_party/closure-library/closure/goog/ui/flatmenubuttonrenderer.js +238 -0
  1635. data/third_party/closure-library/closure/goog/ui/formpost.js +109 -0
  1636. data/third_party/closure-library/closure/goog/ui/formpost_test.html +105 -0
  1637. data/third_party/closure-library/closure/goog/ui/gauge.js +1011 -0
  1638. data/third_party/closure-library/closure/goog/ui/gaugetheme.js +169 -0
  1639. data/third_party/closure-library/closure/goog/ui/hovercard.js +456 -0
  1640. data/third_party/closure-library/closure/goog/ui/hovercard_test.html +360 -0
  1641. data/third_party/closure-library/closure/goog/ui/hsvapalette.js +298 -0
  1642. data/third_party/closure-library/closure/goog/ui/hsvapalette_test.html +152 -0
  1643. data/third_party/closure-library/closure/goog/ui/hsvpalette.js +505 -0
  1644. data/third_party/closure-library/closure/goog/ui/hsvpalette_test.html +219 -0
  1645. data/third_party/closure-library/closure/goog/ui/idgenerator.js +57 -0
  1646. data/third_party/closure-library/closure/goog/ui/idletimer.js +299 -0
  1647. data/third_party/closure-library/closure/goog/ui/idletimer_test.html +100 -0
  1648. data/third_party/closure-library/closure/goog/ui/iframemask.js +257 -0
  1649. data/third_party/closure-library/closure/goog/ui/iframemask_test.html +230 -0
  1650. data/third_party/closure-library/closure/goog/ui/imagelessbuttonrenderer.js +204 -0
  1651. data/third_party/closure-library/closure/goog/ui/imagelessmenubuttonrenderer.js +207 -0
  1652. data/third_party/closure-library/closure/goog/ui/inputdatepicker.js +305 -0
  1653. data/third_party/closure-library/closure/goog/ui/inputdatepicker_test.html +111 -0
  1654. data/third_party/closure-library/closure/goog/ui/itemevent.js +50 -0
  1655. data/third_party/closure-library/closure/goog/ui/keyboardshortcuthandler.js +1017 -0
  1656. data/third_party/closure-library/closure/goog/ui/keyboardshortcuthandler_test.html +702 -0
  1657. data/third_party/closure-library/closure/goog/ui/labelinput.js +592 -0
  1658. data/third_party/closure-library/closure/goog/ui/labelinput_test.html +252 -0
  1659. data/third_party/closure-library/closure/goog/ui/linkbuttonrenderer.js +67 -0
  1660. data/third_party/closure-library/closure/goog/ui/media/flashobject.js +631 -0
  1661. data/third_party/closure-library/closure/goog/ui/media/flashobject_test.html +236 -0
  1662. data/third_party/closure-library/closure/goog/ui/media/flickr.js +308 -0
  1663. data/third_party/closure-library/closure/goog/ui/media/flickr_test.html +114 -0
  1664. data/third_party/closure-library/closure/goog/ui/media/googlevideo.js +281 -0
  1665. data/third_party/closure-library/closure/goog/ui/media/googlevideo_test.html +105 -0
  1666. data/third_party/closure-library/closure/goog/ui/media/media.js +285 -0
  1667. data/third_party/closure-library/closure/goog/ui/media/media_test.html +118 -0
  1668. data/third_party/closure-library/closure/goog/ui/media/mediamodel.js +960 -0
  1669. data/third_party/closure-library/closure/goog/ui/media/mediamodel_test.html +108 -0
  1670. data/third_party/closure-library/closure/goog/ui/media/mp3.js +228 -0
  1671. data/third_party/closure-library/closure/goog/ui/media/mp3_test.html +78 -0
  1672. data/third_party/closure-library/closure/goog/ui/media/photo.js +142 -0
  1673. data/third_party/closure-library/closure/goog/ui/media/photo_test.html +62 -0
  1674. data/third_party/closure-library/closure/goog/ui/media/picasa.js +321 -0
  1675. data/third_party/closure-library/closure/goog/ui/media/picasa_test.html +121 -0
  1676. data/third_party/closure-library/closure/goog/ui/media/vimeo.js +276 -0
  1677. data/third_party/closure-library/closure/goog/ui/media/vimeo_test.html +102 -0
  1678. data/third_party/closure-library/closure/goog/ui/media/youtube.js +357 -0
  1679. data/third_party/closure-library/closure/goog/ui/media/youtube_test.html +243 -0
  1680. data/third_party/closure-library/closure/goog/ui/menu.js +476 -0
  1681. data/third_party/closure-library/closure/goog/ui/menu_test.html +167 -0
  1682. data/third_party/closure-library/closure/goog/ui/menubar.js +44 -0
  1683. data/third_party/closure-library/closure/goog/ui/menubardecorator.js +35 -0
  1684. data/third_party/closure-library/closure/goog/ui/menubarrenderer.js +74 -0
  1685. data/third_party/closure-library/closure/goog/ui/menubase.js +190 -0
  1686. data/third_party/closure-library/closure/goog/ui/menubutton.js +903 -0
  1687. data/third_party/closure-library/closure/goog/ui/menubutton_test.html +637 -0
  1688. data/third_party/closure-library/closure/goog/ui/menubutton_test_frame.html +41 -0
  1689. data/third_party/closure-library/closure/goog/ui/menubuttonrenderer.js +266 -0
  1690. data/third_party/closure-library/closure/goog/ui/menubuttonrenderer_test.html +179 -0
  1691. data/third_party/closure-library/closure/goog/ui/menuheader.js +62 -0
  1692. data/third_party/closure-library/closure/goog/ui/menuheaderrenderer.js +54 -0
  1693. data/third_party/closure-library/closure/goog/ui/menuitem.js +233 -0
  1694. data/third_party/closure-library/closure/goog/ui/menuitem_test.html +559 -0
  1695. data/third_party/closure-library/closure/goog/ui/menuitemrenderer.js +358 -0
  1696. data/third_party/closure-library/closure/goog/ui/menuitemrenderer_test.html +201 -0
  1697. data/third_party/closure-library/closure/goog/ui/menurenderer.js +123 -0
  1698. data/third_party/closure-library/closure/goog/ui/menuseparator.js +51 -0
  1699. data/third_party/closure-library/closure/goog/ui/menuseparatorrenderer.js +113 -0
  1700. data/third_party/closure-library/closure/goog/ui/menuseparatorrenderer_test.html +61 -0
  1701. data/third_party/closure-library/closure/goog/ui/mockactivitymonitor.js +71 -0
  1702. data/third_party/closure-library/closure/goog/ui/mockactivitymonitor_test.html +19 -0
  1703. data/third_party/closure-library/closure/goog/ui/mockactivitymonitor_test.js +94 -0
  1704. data/third_party/closure-library/closure/goog/ui/modalpopup.js +698 -0
  1705. data/third_party/closure-library/closure/goog/ui/modalpopup_test.html +419 -0
  1706. data/third_party/closure-library/closure/goog/ui/nativebuttonrenderer.js +207 -0
  1707. data/third_party/closure-library/closure/goog/ui/nativebuttonrenderer_test.html +214 -0
  1708. data/third_party/closure-library/closure/goog/ui/offlineinstalldialog.js +1089 -0
  1709. data/third_party/closure-library/closure/goog/ui/offlinestatuscard.js +580 -0
  1710. data/third_party/closure-library/closure/goog/ui/offlinestatuscomponent.js +540 -0
  1711. data/third_party/closure-library/closure/goog/ui/option.js +68 -0
  1712. data/third_party/closure-library/closure/goog/ui/palette.js +598 -0
  1713. data/third_party/closure-library/closure/goog/ui/palette_test.html +135 -0
  1714. data/third_party/closure-library/closure/goog/ui/paletterenderer.js +372 -0
  1715. data/third_party/closure-library/closure/goog/ui/paletterenderer_test.html +83 -0
  1716. data/third_party/closure-library/closure/goog/ui/plaintextspellchecker.js +672 -0
  1717. data/third_party/closure-library/closure/goog/ui/plaintextspellchecker_test.html +239 -0
  1718. data/third_party/closure-library/closure/goog/ui/popup.js +344 -0
  1719. data/third_party/closure-library/closure/goog/ui/popup_test.html +137 -0
  1720. data/third_party/closure-library/closure/goog/ui/popupbase.js +822 -0
  1721. data/third_party/closure-library/closure/goog/ui/popupbase_test.html +484 -0
  1722. data/third_party/closure-library/closure/goog/ui/popupcolorpicker.js +441 -0
  1723. data/third_party/closure-library/closure/goog/ui/popupcolorpicker_test.html +71 -0
  1724. data/third_party/closure-library/closure/goog/ui/popupdatepicker.js +273 -0
  1725. data/third_party/closure-library/closure/goog/ui/popupmenu.js +557 -0
  1726. data/third_party/closure-library/closure/goog/ui/popupmenu_test.html +308 -0
  1727. data/third_party/closure-library/closure/goog/ui/progressbar.js +401 -0
  1728. data/third_party/closure-library/closure/goog/ui/prompt.js +405 -0
  1729. data/third_party/closure-library/closure/goog/ui/prompt_test.html +144 -0
  1730. data/third_party/closure-library/closure/goog/ui/rangemodel.js +302 -0
  1731. data/third_party/closure-library/closure/goog/ui/rangemodel_test.html +270 -0
  1732. data/third_party/closure-library/closure/goog/ui/ratings.js +451 -0
  1733. data/third_party/closure-library/closure/goog/ui/registry.js +167 -0
  1734. data/third_party/closure-library/closure/goog/ui/registry_test.html +237 -0
  1735. data/third_party/closure-library/closure/goog/ui/richtextspellchecker.js +626 -0
  1736. data/third_party/closure-library/closure/goog/ui/richtextspellchecker_test.html +247 -0
  1737. data/third_party/closure-library/closure/goog/ui/roundedpanel.js +625 -0
  1738. data/third_party/closure-library/closure/goog/ui/roundedpanel_test.html +57 -0
  1739. data/third_party/closure-library/closure/goog/ui/roundedtabrenderer.js +197 -0
  1740. data/third_party/closure-library/closure/goog/ui/scrollfloater.js +585 -0
  1741. data/third_party/closure-library/closure/goog/ui/scrollfloater_test.html +144 -0
  1742. data/third_party/closure-library/closure/goog/ui/select.js +434 -0
  1743. data/third_party/closure-library/closure/goog/ui/select_test.html +235 -0
  1744. data/third_party/closure-library/closure/goog/ui/selectionmenubutton.js +299 -0
  1745. data/third_party/closure-library/closure/goog/ui/selectionmenubutton_test.html +237 -0
  1746. data/third_party/closure-library/closure/goog/ui/selectionmodel.js +300 -0
  1747. data/third_party/closure-library/closure/goog/ui/selectionmodel_test.html +225 -0
  1748. data/third_party/closure-library/closure/goog/ui/separator.js +80 -0
  1749. data/third_party/closure-library/closure/goog/ui/serverchart.js +1837 -0
  1750. data/third_party/closure-library/closure/goog/ui/serverchart_test.html +638 -0
  1751. data/third_party/closure-library/closure/goog/ui/slider.js +126 -0
  1752. data/third_party/closure-library/closure/goog/ui/sliderbase.js +1592 -0
  1753. data/third_party/closure-library/closure/goog/ui/sliderbase_test.html +897 -0
  1754. data/third_party/closure-library/closure/goog/ui/splitbehavior.js +340 -0
  1755. data/third_party/closure-library/closure/goog/ui/splitbehavior_test.html +161 -0
  1756. data/third_party/closure-library/closure/goog/ui/splitpane.js +898 -0
  1757. data/third_party/closure-library/closure/goog/ui/splitpane_test.html +229 -0
  1758. data/third_party/closure-library/closure/goog/ui/style/app/buttonrenderer.js +201 -0
  1759. data/third_party/closure-library/closure/goog/ui/style/app/buttonrenderer_test.html +155 -0
  1760. data/third_party/closure-library/closure/goog/ui/style/app/menubuttonrenderer.js +233 -0
  1761. data/third_party/closure-library/closure/goog/ui/style/app/menubuttonrenderer_test.html +167 -0
  1762. data/third_party/closure-library/closure/goog/ui/style/app/primaryactionbuttonrenderer.js +88 -0
  1763. data/third_party/closure-library/closure/goog/ui/style/app/primaryactionbuttonrenderer_test.html +76 -0
  1764. data/third_party/closure-library/closure/goog/ui/submenu.js +667 -0
  1765. data/third_party/closure-library/closure/goog/ui/submenu_test.html +563 -0
  1766. data/third_party/closure-library/closure/goog/ui/submenurenderer.js +233 -0
  1767. data/third_party/closure-library/closure/goog/ui/tab.js +102 -0
  1768. data/third_party/closure-library/closure/goog/ui/tab_test.html +62 -0
  1769. data/third_party/closure-library/closure/goog/ui/tabbar.js +394 -0
  1770. data/third_party/closure-library/closure/goog/ui/tabbar_test.html +612 -0
  1771. data/third_party/closure-library/closure/goog/ui/tabbarrenderer.js +175 -0
  1772. data/third_party/closure-library/closure/goog/ui/tabbarrenderer_test.html +138 -0
  1773. data/third_party/closure-library/closure/goog/ui/tablesorter.js +325 -0
  1774. data/third_party/closure-library/closure/goog/ui/tablesorter_test.html +197 -0
  1775. data/third_party/closure-library/closure/goog/ui/tabpane.js +675 -0
  1776. data/third_party/closure-library/closure/goog/ui/tabpane_test.html +107 -0
  1777. data/third_party/closure-library/closure/goog/ui/tabrenderer.js +153 -0
  1778. data/third_party/closure-library/closure/goog/ui/tabrenderer_test.html +135 -0
  1779. data/third_party/closure-library/closure/goog/ui/textarea.js +577 -0
  1780. data/third_party/closure-library/closure/goog/ui/textarea_test.html +314 -0
  1781. data/third_party/closure-library/closure/goog/ui/textarearenderer.js +169 -0
  1782. data/third_party/closure-library/closure/goog/ui/togglebutton.js +58 -0
  1783. data/third_party/closure-library/closure/goog/ui/toolbar.js +46 -0
  1784. data/third_party/closure-library/closure/goog/ui/toolbarbutton.js +55 -0
  1785. data/third_party/closure-library/closure/goog/ui/toolbarbuttonrenderer.js +57 -0
  1786. data/third_party/closure-library/closure/goog/ui/toolbarcolormenubutton.js +58 -0
  1787. data/third_party/closure-library/closure/goog/ui/toolbarcolormenubuttonrenderer.js +98 -0
  1788. data/third_party/closure-library/closure/goog/ui/toolbarcolormenubuttonrenderer_test.html +66 -0
  1789. data/third_party/closure-library/closure/goog/ui/toolbarmenubutton.js +57 -0
  1790. data/third_party/closure-library/closure/goog/ui/toolbarmenubuttonrenderer.js +57 -0
  1791. data/third_party/closure-library/closure/goog/ui/toolbarrenderer.js +99 -0
  1792. data/third_party/closure-library/closure/goog/ui/toolbarselect.js +56 -0
  1793. data/third_party/closure-library/closure/goog/ui/toolbarseparator.js +53 -0
  1794. data/third_party/closure-library/closure/goog/ui/toolbarseparatorrenderer.js +91 -0
  1795. data/third_party/closure-library/closure/goog/ui/toolbartogglebutton.js +54 -0
  1796. data/third_party/closure-library/closure/goog/ui/tooltip.js +999 -0
  1797. data/third_party/closure-library/closure/goog/ui/tooltip_test.html +380 -0
  1798. data/third_party/closure-library/closure/goog/ui/tree/basenode.js +1458 -0
  1799. data/third_party/closure-library/closure/goog/ui/tree/basenode_test.html +232 -0
  1800. data/third_party/closure-library/closure/goog/ui/tree/treecontrol.js +663 -0
  1801. data/third_party/closure-library/closure/goog/ui/tree/treecontrol_test.html +113 -0
  1802. data/third_party/closure-library/closure/goog/ui/tree/treenode.js +107 -0
  1803. data/third_party/closure-library/closure/goog/ui/tree/typeahead.js +332 -0
  1804. data/third_party/closure-library/closure/goog/ui/tree/typeahead_test.html +133 -0
  1805. data/third_party/closure-library/closure/goog/ui/tristatemenuitem.js +184 -0
  1806. data/third_party/closure-library/closure/goog/ui/tristatemenuitemrenderer.js +84 -0
  1807. data/third_party/closure-library/closure/goog/ui/twothumbslider.js +157 -0
  1808. data/third_party/closure-library/closure/goog/ui/twothumbslider_test.html +39 -0
  1809. data/third_party/closure-library/closure/goog/ui/zippy.js +445 -0
  1810. data/third_party/closure-library/closure/goog/ui/zippy_test.html +315 -0
  1811. data/third_party/closure-library/closure/goog/uri/uri.js +1502 -0
  1812. data/third_party/closure-library/closure/goog/uri/uri_test.html +21 -0
  1813. data/third_party/closure-library/closure/goog/uri/uri_test.js +1048 -0
  1814. data/third_party/closure-library/closure/goog/uri/utils.js +1053 -0
  1815. data/third_party/closure-library/closure/goog/uri/utils_test.html +562 -0
  1816. data/third_party/closure-library/closure/goog/useragent/adobereader.js +90 -0
  1817. data/third_party/closure-library/closure/goog/useragent/adobereader_test.html +34 -0
  1818. data/third_party/closure-library/closure/goog/useragent/flash.js +153 -0
  1819. data/third_party/closure-library/closure/goog/useragent/flash_test.html +34 -0
  1820. data/third_party/closure-library/closure/goog/useragent/iphoto.js +87 -0
  1821. data/third_party/closure-library/closure/goog/useragent/jscript.js +95 -0
  1822. data/third_party/closure-library/closure/goog/useragent/jscript_test.html +65 -0
  1823. data/third_party/closure-library/closure/goog/useragent/picasa.js +112 -0
  1824. data/third_party/closure-library/closure/goog/useragent/platform.js +82 -0
  1825. data/third_party/closure-library/closure/goog/useragent/platform_test.html +182 -0
  1826. data/third_party/closure-library/closure/goog/useragent/product.js +253 -0
  1827. data/third_party/closure-library/closure/goog/useragent/product_isversion.js +140 -0
  1828. data/third_party/closure-library/closure/goog/useragent/product_test.html +380 -0
  1829. data/third_party/closure-library/closure/goog/useragent/useragent.js +599 -0
  1830. data/third_party/closure-library/closure/goog/useragent/useragent_quirks_test.html +27 -0
  1831. data/third_party/closure-library/closure/goog/useragent/useragent_test.html +300 -0
  1832. data/third_party/closure-library/closure/goog/vec/float32array.js +110 -0
  1833. data/third_party/closure-library/closure/goog/vec/float32array_test.html +69 -0
  1834. data/third_party/closure-library/closure/goog/vec/float64array.js +117 -0
  1835. data/third_party/closure-library/closure/goog/vec/float64array_test.html +69 -0
  1836. data/third_party/closure-library/closure/goog/vec/mat3.js +1211 -0
  1837. data/third_party/closure-library/closure/goog/vec/mat3_test.html +465 -0
  1838. data/third_party/closure-library/closure/goog/vec/mat3d.js +1039 -0
  1839. data/third_party/closure-library/closure/goog/vec/mat3d_test.html +432 -0
  1840. data/third_party/closure-library/closure/goog/vec/mat3f.js +1039 -0
  1841. data/third_party/closure-library/closure/goog/vec/mat3f_test.html +432 -0
  1842. data/third_party/closure-library/closure/goog/vec/mat4.js +1822 -0
  1843. data/third_party/closure-library/closure/goog/vec/mat4_test.html +781 -0
  1844. data/third_party/closure-library/closure/goog/vec/mat4d.js +1769 -0
  1845. data/third_party/closure-library/closure/goog/vec/mat4d_test.html +738 -0
  1846. data/third_party/closure-library/closure/goog/vec/mat4f.js +1769 -0
  1847. data/third_party/closure-library/closure/goog/vec/mat4f_test.html +738 -0
  1848. data/third_party/closure-library/closure/goog/vec/matrix3.js +720 -0
  1849. data/third_party/closure-library/closure/goog/vec/matrix3_test.html +301 -0
  1850. data/third_party/closure-library/closure/goog/vec/matrix4.js +1405 -0
  1851. data/third_party/closure-library/closure/goog/vec/matrix4_test.html +626 -0
  1852. data/third_party/closure-library/closure/goog/vec/quaternion.js +458 -0
  1853. data/third_party/closure-library/closure/goog/vec/quaternion_test.html +195 -0
  1854. data/third_party/closure-library/closure/goog/vec/ray.js +94 -0
  1855. data/third_party/closure-library/closure/goog/vec/ray_test.html +66 -0
  1856. data/third_party/closure-library/closure/goog/vec/vec.js +73 -0
  1857. data/third_party/closure-library/closure/goog/vec/vec2.js +376 -0
  1858. data/third_party/closure-library/closure/goog/vec/vec2_test.html +216 -0
  1859. data/third_party/closure-library/closure/goog/vec/vec2d.js +325 -0
  1860. data/third_party/closure-library/closure/goog/vec/vec2d_test.html +208 -0
  1861. data/third_party/closure-library/closure/goog/vec/vec2f.js +325 -0
  1862. data/third_party/closure-library/closure/goog/vec/vec2f_test.html +208 -0
  1863. data/third_party/closure-library/closure/goog/vec/vec3.js +474 -0
  1864. data/third_party/closure-library/closure/goog/vec/vec3_test.html +258 -0
  1865. data/third_party/closure-library/closure/goog/vec/vec3d.js +358 -0
  1866. data/third_party/closure-library/closure/goog/vec/vec3d_test.html +232 -0
  1867. data/third_party/closure-library/closure/goog/vec/vec3f.js +358 -0
  1868. data/third_party/closure-library/closure/goog/vec/vec3f_test.html +232 -0
  1869. data/third_party/closure-library/closure/goog/vec/vec4.js +406 -0
  1870. data/third_party/closure-library/closure/goog/vec/vec4_test.html +192 -0
  1871. data/third_party/closure-library/closure/goog/vec/vec4d.js +293 -0
  1872. data/third_party/closure-library/closure/goog/vec/vec4d_test.html +168 -0
  1873. data/third_party/closure-library/closure/goog/vec/vec4f.js +293 -0
  1874. data/third_party/closure-library/closure/goog/vec/vec4f_test.html +168 -0
  1875. data/third_party/closure-library/closure/goog/vec/vec_array_perf.html +443 -0
  1876. data/third_party/closure-library/closure/goog/vec/vec_perf.html +101 -0
  1877. data/third_party/closure-library/closure/goog/webgl/webgl.js +2194 -0
  1878. data/third_party/closure-library/closure/goog/window/window.js +225 -0
  1879. data/third_party/closure-library/closure/goog/window/window_test.html +239 -0
  1880. data/third_party/closure-library/closure/known_issues/testdata/closure_library_warnings.txt +47 -0
  1881. data/third_party/closure-library/third_party/closure/goog/base.js +2 -0
  1882. data/third_party/closure-library/third_party/closure/goog/caja/string/html/htmlparser.js +611 -0
  1883. data/third_party/closure-library/third_party/closure/goog/caja/string/html/htmlsanitizer.js +605 -0
  1884. data/third_party/closure-library/third_party/closure/goog/deps.js +20 -0
  1885. data/third_party/closure-library/third_party/closure/goog/dojo/dom/query.js +1543 -0
  1886. data/third_party/closure-library/third_party/closure/goog/dojo/dom/query_compiled_test.html +65 -0
  1887. data/third_party/closure-library/third_party/closure/goog/dojo/dom/query_test.html +64 -0
  1888. data/third_party/closure-library/third_party/closure/goog/dojo/dom/query_test.js +158 -0
  1889. data/third_party/closure-library/third_party/closure/goog/jpeg_encoder/jpeg_encoder_basic.js +751 -0
  1890. data/third_party/closure-library/third_party/closure/goog/loremipsum/text/loremipsum.js +712 -0
  1891. data/third_party/closure-library/third_party/closure/goog/loremipsum/text/loremipsum_test.html +60 -0
  1892. data/third_party/closure-library/third_party/closure/goog/mochikit/async/deferred.js +764 -0
  1893. data/third_party/closure-library/third_party/closure/goog/mochikit/async/deferred_async_test.html +144 -0
  1894. data/third_party/closure-library/third_party/closure/goog/mochikit/async/deferred_test.html +877 -0
  1895. data/third_party/closure-library/third_party/closure/goog/mochikit/async/deferredlist.js +205 -0
  1896. data/third_party/closure-library/third_party/closure/goog/mochikit/async/deferredlist_test.html +504 -0
  1897. data/third_party/closure-library/third_party/closure/goog/osapi/osapi.js +95 -0
  1898. metadata +2054 -0
@@ -0,0 +1,225 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <!--
4
+ Copyright 2011 The Closure Library Authors. All Rights Reserved.
5
+
6
+ Use of this source code is governed by the Apache License, Version 2.0.
7
+ See the COPYING file for details.
8
+ -->
9
+ <!--
10
+ -->
11
+ <head>
12
+ <title>Closure Unit Tests - goog.ui.SelectionModel</title>
13
+ <script src="../base.js"></script>
14
+ <script>
15
+ goog.require('goog.testing.jsunit');
16
+ goog.require('goog.testing.recordFunction');
17
+ goog.require('goog.ui.SelectionModel');
18
+ </script>
19
+ </head>
20
+ <body>
21
+
22
+ <script>
23
+
24
+ var selectionModel, items, addedItem, addedItems;
25
+
26
+ function setUp() {
27
+ items = [1, 2, 3, 4];
28
+ addedItem = 5;
29
+ addedItems = [6, 7, 8];
30
+ selectionModel = new goog.ui.SelectionModel(items);
31
+ }
32
+
33
+ function tearDown() {
34
+ goog.dispose(selectionModel);
35
+ }
36
+
37
+ /*
38
+ * Checks that the selection model returns the correct item count.
39
+ */
40
+ function testGetItemCount() {
41
+ assertEquals(items.length, selectionModel.getItemCount());
42
+ }
43
+
44
+ /*
45
+ * Checks that the correct first element is returned by the selection model.
46
+ */
47
+ function testGetFirst() {
48
+ assertEquals(items[0], selectionModel.getFirst());
49
+ }
50
+
51
+ /*
52
+ * Checks that the correct last element is returned by the selection model.
53
+ */
54
+ function testGetLast() {
55
+ assertEquals(items[items.length - 1], selectionModel.getLast());
56
+ }
57
+
58
+ /*
59
+ * Tests the behavior of goog.ui.SelectionModel.getItemAt(index).
60
+ */
61
+ function testGetItemAt() {
62
+ goog.array.forEach(items,
63
+ function(item, i) {
64
+ assertEquals(item, selectionModel.getItemAt(i));
65
+ });
66
+ }
67
+
68
+ /*
69
+ * Checks that an item can be correctly added to the selection model.
70
+ */
71
+ function testAddItem() {
72
+ assertEquals(items.length, selectionModel.getItemCount());
73
+
74
+ selectionModel.addItem(addedItem);
75
+
76
+ assertEquals(items.length + 1, selectionModel.getItemCount());
77
+ assertEquals(addedItem, selectionModel.getLast());
78
+ }
79
+
80
+ /*
81
+ * Checks that an item can be added to the selection model at a specific index.
82
+ */
83
+ function testAddItemAt() {
84
+ assertEquals(items.length, selectionModel.getItemCount());
85
+
86
+ var insertIndex = 2;
87
+ assertEquals(items[insertIndex], selectionModel.getItemAt(insertIndex));
88
+
89
+ selectionModel.addItemAt(addedItem, insertIndex);
90
+
91
+ var resultArray = goog.array.clone(items);
92
+ goog.array.insertAt(resultArray, addedItem, insertIndex);
93
+
94
+ assertEquals(items.length + 1, selectionModel.getItemCount());
95
+ assertEquals(addedItem, selectionModel.getItemAt(insertIndex));
96
+ assertArrayEquals(resultArray, selectionModel.getItems());
97
+ }
98
+
99
+ /*
100
+ * Checks that multiple items can be correctly added to the selection model.
101
+ */
102
+ function testAddItems() {
103
+ assertEquals(items.length, selectionModel.getItemCount());
104
+
105
+ selectionModel.addItems(addedItems);
106
+
107
+ assertEquals(items.length + addedItems.length, selectionModel.getItemCount());
108
+
109
+ var resultArray = goog.array.concat(items, addedItems);
110
+ assertArrayEquals(resultArray, selectionModel.getItems());
111
+ }
112
+
113
+ /*
114
+ * Checks that all elements can be removed from the selection model.
115
+ */
116
+ function testClear() {
117
+ assertArrayEquals(items, selectionModel.getItems());
118
+
119
+ selectionModel.clear();
120
+
121
+ assertArrayEquals([], selectionModel.getItems());
122
+ }
123
+
124
+ /*
125
+ * Checks that all items can be obtained from the selection model.
126
+ */
127
+ function testGetItems() {
128
+ assertArrayEquals(items, selectionModel.getItems());
129
+ };
130
+
131
+ /*
132
+ * Checks that an item's index can be found in the selection model.
133
+ */
134
+ function testIndexOfItem() {
135
+ goog.array.forEach(items,
136
+ function(item, i) {
137
+ assertEquals(i, selectionModel.indexOfItem(item));
138
+ });
139
+ }
140
+
141
+ /*
142
+ * Checks that an item can be removed from the selection model.
143
+ */
144
+ function testRemoveItem() {
145
+ assertEquals(items.length, selectionModel.getItemCount());
146
+
147
+ var resultArray = goog.array.clone(items);
148
+ goog.array.removeAt(resultArray, 2);
149
+
150
+ selectionModel.removeItem(items[2]);
151
+
152
+ assertEquals(items.length - 1, selectionModel.getItemCount());
153
+ assertArrayEquals(resultArray, selectionModel.getItems());
154
+ }
155
+
156
+ /*
157
+ * Checks that an item at a particular index can be removed from the selection
158
+ * model.
159
+ */
160
+ function testRemoveItemAt() {
161
+ assertEquals(items.length, selectionModel.getItemCount());
162
+
163
+ var resultArray = goog.array.clone(items);
164
+ var removeIndex = 2;
165
+
166
+ goog.array.removeAt(resultArray, removeIndex);
167
+
168
+ selectionModel.removeItemAt(removeIndex);
169
+
170
+ assertEquals(items.length - 1, selectionModel.getItemCount());
171
+ assertNotEquals(items[removeIndex], selectionModel.getItemAt(removeIndex));
172
+ assertArrayEquals(resultArray, selectionModel.getItems());
173
+ }
174
+
175
+ /*
176
+ * Checks that item selection at a particular index works.
177
+ */
178
+ function testSelectedIndex() {
179
+ // Default selected index is -1
180
+ assertEquals(-1, selectionModel.getSelectedIndex());
181
+
182
+ selectionModel.setSelectedIndex(2);
183
+
184
+ assertEquals(2, selectionModel.getSelectedIndex());
185
+ assertEquals(items[2], selectionModel.getSelectedItem());
186
+ }
187
+
188
+ /*
189
+ * Checks that items can be selected in the selection model.
190
+ */
191
+ function testSelectedItem() {
192
+ assertNull(selectionModel.getSelectedItem());
193
+
194
+ selectionModel.setSelectedItem(items[1]);
195
+
196
+ assertNotNull(selectionModel.getSelectedItem());
197
+ assertEquals(items[1], selectionModel.getSelectedItem());
198
+ assertEquals(1, selectionModel.getSelectedIndex());
199
+ }
200
+
201
+ /*
202
+ * Checks that an installed handler is called on selection change.
203
+ */
204
+ function testSelectionHandler() {
205
+ var myRecordFunction = new goog.testing.recordFunction();
206
+
207
+ selectionModel.setSelectionHandler(myRecordFunction);
208
+
209
+ // Select index 2
210
+ selectionModel.setSelectedIndex(2);
211
+ // De-select 2 and select 3
212
+ selectionModel.setSelectedIndex(3);
213
+
214
+ var recordCalls = myRecordFunction.getCalls();
215
+
216
+ assertEquals(3, recordCalls.length);
217
+ // Calls: Select items[2], de-select items[2], select items[3]
218
+ assertArrayEquals([items[2], true], recordCalls[0].getArguments());
219
+ assertArrayEquals([items[2], false], recordCalls[1].getArguments());
220
+ assertArrayEquals([items[3], true], recordCalls[2].getArguments());
221
+ }
222
+ </script>
223
+
224
+ </body>
225
+ </html>
@@ -0,0 +1,80 @@
1
+ // Copyright 2007 The Closure Library Authors. All Rights Reserved.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS-IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ /**
16
+ * @fileoverview A class for representing a separator, with renderers for both
17
+ * horizontal (menu) and vertical (toolbar) separators.
18
+ *
19
+ * @author attila@google.com (Attila Bodis)
20
+ */
21
+
22
+ goog.provide('goog.ui.Separator');
23
+
24
+ goog.require('goog.a11y.aria');
25
+ goog.require('goog.asserts');
26
+ goog.require('goog.ui.Component');
27
+ goog.require('goog.ui.Control');
28
+ goog.require('goog.ui.MenuSeparatorRenderer');
29
+ goog.require('goog.ui.registry');
30
+
31
+
32
+
33
+ /**
34
+ * Class representing a separator. Although it extends {@link goog.ui.Control},
35
+ * the Separator class doesn't allocate any event handlers, nor does it change
36
+ * its appearance on mouseover, etc.
37
+ * @param {goog.ui.MenuSeparatorRenderer=} opt_renderer Renderer to render or
38
+ * decorate the separator; defaults to {@link goog.ui.MenuSeparatorRenderer}.
39
+ * @param {goog.dom.DomHelper=} opt_domHelper Optional DOM helper, used for
40
+ * document interaction.
41
+ * @constructor
42
+ * @extends {goog.ui.Control}
43
+ */
44
+ goog.ui.Separator = function(opt_renderer, opt_domHelper) {
45
+ goog.ui.Control.call(this, null, opt_renderer ||
46
+ goog.ui.MenuSeparatorRenderer.getInstance(), opt_domHelper);
47
+
48
+ this.setSupportedState(goog.ui.Component.State.DISABLED, false);
49
+ this.setSupportedState(goog.ui.Component.State.HOVER, false);
50
+ this.setSupportedState(goog.ui.Component.State.ACTIVE, false);
51
+ this.setSupportedState(goog.ui.Component.State.FOCUSED, false);
52
+
53
+ // Separators are always considered disabled.
54
+ this.setStateInternal(goog.ui.Component.State.DISABLED);
55
+ };
56
+ goog.inherits(goog.ui.Separator, goog.ui.Control);
57
+
58
+
59
+ /**
60
+ * Configures the component after its DOM has been rendered. Overrides
61
+ * {@link goog.ui.Control#enterDocument} by making sure no event handler
62
+ * is allocated.
63
+ * @override
64
+ */
65
+ goog.ui.Separator.prototype.enterDocument = function() {
66
+ goog.ui.Separator.superClass_.enterDocument.call(this);
67
+ var element = this.getElement();
68
+ goog.asserts.assert(element,
69
+ 'The DOM element for the separator cannot be null.');
70
+ goog.a11y.aria.setRole(element, 'separator');
71
+ };
72
+
73
+
74
+ // Register a decorator factory function for goog.ui.MenuSeparators.
75
+ goog.ui.registry.setDecoratorByClassName(
76
+ goog.ui.MenuSeparatorRenderer.CSS_CLASS,
77
+ function() {
78
+ // Separator defaults to using MenuSeparatorRenderer.
79
+ return new goog.ui.Separator();
80
+ });
@@ -0,0 +1,1837 @@
1
+ // Copyright 2007 The Closure Library Authors. All Rights Reserved.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS-IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+
16
+ /**
17
+ * @fileoverview Component for generating chart PNGs using Google Chart Server.
18
+ *
19
+ * @deprecated Google Chart Images service (the server-side component of this
20
+ * class) has been deprecated. See
21
+ * https://developers.google.com/chart/ for alternatives.
22
+ *
23
+ * @see ../demos/serverchart.html
24
+ */
25
+
26
+
27
+ /**
28
+ * Namespace for chart functions
29
+ */
30
+ goog.provide('goog.ui.ServerChart');
31
+ goog.provide('goog.ui.ServerChart.AxisDisplayType');
32
+ goog.provide('goog.ui.ServerChart.ChartType');
33
+ goog.provide('goog.ui.ServerChart.EncodingType');
34
+ goog.provide('goog.ui.ServerChart.Event');
35
+ goog.provide('goog.ui.ServerChart.LegendPosition');
36
+ goog.provide('goog.ui.ServerChart.MaximumValue');
37
+ goog.provide('goog.ui.ServerChart.MultiAxisAlignment');
38
+ goog.provide('goog.ui.ServerChart.MultiAxisType');
39
+ goog.provide('goog.ui.ServerChart.UriParam');
40
+ goog.provide('goog.ui.ServerChart.UriTooLongEvent');
41
+
42
+ goog.require('goog.Uri');
43
+ goog.require('goog.array');
44
+ goog.require('goog.asserts');
45
+ goog.require('goog.events.Event');
46
+ goog.require('goog.string');
47
+ goog.require('goog.ui.Component');
48
+
49
+
50
+
51
+ /**
52
+ * Will construct a chart using Google's chartserver.
53
+ *
54
+ * @param {goog.ui.ServerChart.ChartType} type The chart type.
55
+ * @param {number=} opt_width The width of the chart.
56
+ * @param {number=} opt_height The height of the chart.
57
+ * @param {goog.dom.DomHelper=} opt_domHelper Optional DOM Helper.
58
+ * @param {string=} opt_uri Optional uri used to connect to the chart server, if
59
+ * different than goog.ui.ServerChart.CHART_SERVER_SCHEME_INDEPENDENT_URI.
60
+ * @constructor
61
+ * @extends {goog.ui.Component}
62
+ *
63
+ * @deprecated Google Chart Server has been deprecated. See
64
+ * https://developers.google.com/chart/image/ for details.
65
+ */
66
+ goog.ui.ServerChart = function(type, opt_width, opt_height, opt_domHelper,
67
+ opt_uri) {
68
+ goog.ui.Component.call(this, opt_domHelper);
69
+
70
+ /**
71
+ * Image URI.
72
+ * @type {goog.Uri}
73
+ * @private
74
+ */
75
+ this.uri_ = new goog.Uri(
76
+ opt_uri || goog.ui.ServerChart.CHART_SERVER_SCHEME_INDEPENDENT_URI);
77
+
78
+ /**
79
+ * Encoding method for the URI data format.
80
+ * @type {goog.ui.ServerChart.EncodingType}
81
+ * @private
82
+ */
83
+ this.encodingType_ = goog.ui.ServerChart.EncodingType.AUTOMATIC;
84
+
85
+ /**
86
+ * Two-dimensional array of the data sets on the chart.
87
+ * @type {Array.<Array.<number>>}
88
+ * @private
89
+ */
90
+ this.dataSets_ = [];
91
+
92
+ /**
93
+ * Colors for each data set.
94
+ * @type {Array.<string>}
95
+ * @private
96
+ */
97
+ this.setColors_ = [];
98
+
99
+ /**
100
+ * Legend texts for each data set.
101
+ * @type {Array.<string>}
102
+ * @private
103
+ */
104
+ this.setLegendTexts_ = [];
105
+
106
+ /**
107
+ * Labels on the X-axis.
108
+ * @type {Array.<string>}
109
+ * @private
110
+ */
111
+ this.xLabels_ = [];
112
+
113
+ /**
114
+ * Labels on the left along the Y-axis.
115
+ * @type {Array.<string>}
116
+ * @private
117
+ */
118
+ this.leftLabels_ = [];
119
+
120
+ /**
121
+ * Labels on the right along the Y-axis.
122
+ * @type {Array.<string>}
123
+ * @private
124
+ */
125
+ this.rightLabels_ = [];
126
+
127
+ /**
128
+ * Axis type for each multi-axis in the chart. The indices into this array
129
+ * also work as the reference index for all other multi-axis properties.
130
+ * @type {Array.<goog.ui.ServerChart.MultiAxisType>}
131
+ * @private
132
+ */
133
+ this.multiAxisType_ = [];
134
+
135
+ /**
136
+ * Axis text for each multi-axis in the chart, indexed by the indices from
137
+ * multiAxisType_ in a sparse array.
138
+ * @type {Object}
139
+ * @private
140
+ */
141
+ this.multiAxisLabelText_ = {};
142
+
143
+
144
+ /**
145
+ * Axis position for each multi-axis in the chart, indexed by the indices
146
+ * from multiAxisType_ in a sparse array.
147
+ * @type {Object}
148
+ * @private
149
+ */
150
+ this.multiAxisLabelPosition_ = {};
151
+
152
+ /**
153
+ * Axis range for each multi-axis in the chart, indexed by the indices from
154
+ * multiAxisType_ in a sparse array.
155
+ * @type {Object}
156
+ * @private
157
+ */
158
+ this.multiAxisRange_ = {};
159
+
160
+ /**
161
+ * Axis style for each multi-axis in the chart, indexed by the indices from
162
+ * multiAxisType_ in a sparse array.
163
+ * @type {Object}
164
+ * @private
165
+ */
166
+ this.multiAxisLabelStyle_ = {};
167
+
168
+ this.setType(type);
169
+ this.setSize(opt_width, opt_height);
170
+
171
+ /**
172
+ * Minimum value for the chart (used for normalization). By default,
173
+ * this is set to infinity, and is eventually updated to the lowest given
174
+ * value in the data. The minimum value is then subtracted from all other
175
+ * values. For a pie chart, subtracting the minimum value does not make
176
+ * sense, so minValue_ is set to zero because 0 is the additive identity.
177
+ * @type {number}
178
+ * @private
179
+ */
180
+ this.minValue_ = this.isPieChart() ? 0 : Infinity;
181
+ };
182
+ goog.inherits(goog.ui.ServerChart, goog.ui.Component);
183
+
184
+
185
+ /**
186
+ * Base scheme-independent URI for the chart renderer.
187
+ * @type {string}
188
+ */
189
+ goog.ui.ServerChart.CHART_SERVER_SCHEME_INDEPENDENT_URI =
190
+ '//chart.googleapis.com/chart';
191
+
192
+
193
+ /**
194
+ * Base HTTP URI for the chart renderer.
195
+ * @type {string}
196
+ */
197
+ goog.ui.ServerChart.CHART_SERVER_HTTP_URI =
198
+ 'http://chart.googleapis.com/chart';
199
+
200
+
201
+ /**
202
+ * Base HTTPS URI for the chart renderer.
203
+ * @type {string}
204
+ */
205
+ goog.ui.ServerChart.CHART_SERVER_HTTPS_URI =
206
+ 'https://chart.googleapis.com/chart';
207
+
208
+
209
+ /**
210
+ * Base URI for the chart renderer.
211
+ * @type {string}
212
+ * @deprecated Use
213
+ * {@link goog.ui.ServerChart.CHART_SERVER_SCHEME_INDEPENDENT_URI},
214
+ * {@link goog.ui.ServerChart.CHART_SERVER_HTTP_URI} or
215
+ * {@link goog.ui.ServerChart.CHART_SERVER_HTTPS_URI} instead.
216
+ */
217
+ goog.ui.ServerChart.CHART_SERVER_URI =
218
+ goog.ui.ServerChart.CHART_SERVER_HTTP_URI;
219
+
220
+
221
+ /**
222
+ * The 0 - 1.0 ("fraction of the range") value to use when getMinValue() ==
223
+ * getMaxValue(). This determines, for example, the vertical position
224
+ * of the line in a flat line-chart.
225
+ * @type {number}
226
+ */
227
+ goog.ui.ServerChart.DEFAULT_NORMALIZATION = 0.5;
228
+
229
+
230
+ /**
231
+ * The upper limit on the length of the chart image URI, after encoding.
232
+ * If the URI's length equals or exceeds it, goog.ui.ServerChart.UriTooLongEvent
233
+ * is dispatched on the goog.ui.ServerChart object.
234
+ * @type {number}
235
+ * @private
236
+ */
237
+ goog.ui.ServerChart.prototype.uriLengthLimit_ = 2048;
238
+
239
+
240
+ /**
241
+ * Number of gridlines along the X-axis.
242
+ * @type {number}
243
+ * @private
244
+ */
245
+ goog.ui.ServerChart.prototype.gridX_ = 0;
246
+
247
+
248
+ /**
249
+ * Number of gridlines along the Y-axis.
250
+ * @type {number}
251
+ * @private
252
+ */
253
+ goog.ui.ServerChart.prototype.gridY_ = 0;
254
+
255
+
256
+ /**
257
+ * Maximum value for the chart (used for normalization). The minimum is
258
+ * declared in the constructor.
259
+ * @type {number}
260
+ * @private
261
+ */
262
+ goog.ui.ServerChart.prototype.maxValue_ = -Infinity;
263
+
264
+
265
+ /**
266
+ * Chart title.
267
+ * @type {?string}
268
+ * @private
269
+ */
270
+ goog.ui.ServerChart.prototype.title_ = null;
271
+
272
+
273
+ /**
274
+ * Chart title size.
275
+ * @type {number}
276
+ * @private
277
+ */
278
+ goog.ui.ServerChart.prototype.titleSize_ = 13.5;
279
+
280
+
281
+ /**
282
+ * Chart title color.
283
+ * @type {string}
284
+ * @private
285
+ */
286
+ goog.ui.ServerChart.prototype.titleColor_ = '333333';
287
+
288
+
289
+ /**
290
+ * Chart legend.
291
+ * @type {Array.<string>?}
292
+ * @private
293
+ */
294
+ goog.ui.ServerChart.prototype.legend_ = null;
295
+
296
+
297
+ /**
298
+ * ChartServer supports using data sets to position markers. A data set
299
+ * that is being used for positioning only can be made "invisible", in other
300
+ * words, the caller can indicate to ChartServer that ordinary chart elements
301
+ * (e.g. bars in a bar chart) should not be drawn on the data points of the
302
+ * invisible data set. Such data sets must be provided at the end of the
303
+ * chd parameter, and if invisible data sets are being used, the chd
304
+ * parameter must indicate the number of visible data sets.
305
+ * @type {?number}
306
+ * @private
307
+ */
308
+ goog.ui.ServerChart.prototype.numVisibleDataSets_ = null;
309
+
310
+
311
+ /**
312
+ * Creates the DOM node (image) needed for the Chart
313
+ * @override
314
+ */
315
+ goog.ui.ServerChart.prototype.createDom = function() {
316
+ var size = this.getSize();
317
+ this.setElementInternal(this.getDomHelper().createDom(
318
+ 'img', {'src': this.getUri(),
319
+ 'class': goog.getCssName('goog-serverchart-image'),
320
+ 'width': size[0], 'height': size[1]}));
321
+ };
322
+
323
+
324
+ /**
325
+ * Decorate an image already in the DOM.
326
+ * Expects the following structure:
327
+ * <pre>
328
+ * - img
329
+ * </pre>
330
+ *
331
+ * @param {Element} img Image to decorate.
332
+ * @override
333
+ */
334
+ goog.ui.ServerChart.prototype.decorateInternal = function(img) {
335
+ img.src = this.getUri();
336
+ this.setElementInternal(img);
337
+ };
338
+
339
+
340
+ /**
341
+ * Updates the image if any of the data or settings have changed.
342
+ */
343
+ goog.ui.ServerChart.prototype.updateChart = function() {
344
+ if (this.getElement()) {
345
+ this.getElement().src = this.getUri();
346
+ }
347
+ };
348
+
349
+
350
+ /**
351
+ * Sets the URI of the chart.
352
+ *
353
+ * @param {goog.Uri} uri The chart URI.
354
+ */
355
+ goog.ui.ServerChart.prototype.setUri = function(uri) {
356
+ this.uri_ = uri;
357
+ };
358
+
359
+
360
+ /**
361
+ * Returns the URI of the chart.
362
+ *
363
+ * @return {goog.Uri} The chart URI.
364
+ */
365
+ goog.ui.ServerChart.prototype.getUri = function() {
366
+ this.computeDataString_();
367
+ return this.uri_;
368
+ };
369
+
370
+
371
+ /**
372
+ * Returns the upper limit on the length of the chart image URI, after encoding.
373
+ * If the URI's length equals or exceeds it, goog.ui.ServerChart.UriTooLongEvent
374
+ * is dispatched on the goog.ui.ServerChart object.
375
+ *
376
+ * @return {number} The chart URI length limit.
377
+ */
378
+ goog.ui.ServerChart.prototype.getUriLengthLimit = function() {
379
+ return this.uriLengthLimit_;
380
+ };
381
+
382
+
383
+ /**
384
+ * Sets the upper limit on the length of the chart image URI, after encoding.
385
+ * If the URI's length equals or exceeds it, goog.ui.ServerChart.UriTooLongEvent
386
+ * is dispatched on the goog.ui.ServerChart object.
387
+ *
388
+ * @param {number} uriLengthLimit The chart URI length limit.
389
+ */
390
+ goog.ui.ServerChart.prototype.setUriLengthLimit = function(uriLengthLimit) {
391
+ this.uriLengthLimit_ = uriLengthLimit;
392
+ };
393
+
394
+
395
+ /**
396
+ * Sets the 'chg' parameter of the chart Uri.
397
+ * This is used by various types of charts to specify Grids.
398
+ *
399
+ * @param {string} value Value for the 'chg' parameter in the chart Uri.
400
+ */
401
+ goog.ui.ServerChart.prototype.setGridParameter = function(value) {
402
+ this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.GRID, value);
403
+ };
404
+
405
+
406
+ /**
407
+ * Returns the 'chg' parameter of the chart Uri.
408
+ * This is used by various types of charts to specify Grids.
409
+ *
410
+ * @return {string|undefined} The 'chg' parameter of the chart Uri.
411
+ */
412
+ goog.ui.ServerChart.prototype.getGridParameter = function() {
413
+ return /** @type {string} */ (
414
+ this.uri_.getParameterValue(goog.ui.ServerChart.UriParam.GRID));
415
+ };
416
+
417
+
418
+ /**
419
+ * Sets the 'chm' parameter of the chart Uri.
420
+ * This is used by various types of charts to specify Markers.
421
+ *
422
+ * @param {string} value Value for the 'chm' parameter in the chart Uri.
423
+ */
424
+ goog.ui.ServerChart.prototype.setMarkerParameter = function(value) {
425
+ this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.MARKERS, value);
426
+ };
427
+
428
+
429
+ /**
430
+ * Returns the 'chm' parameter of the chart Uri.
431
+ * This is used by various types of charts to specify Markers.
432
+ *
433
+ * @return {string|undefined} The 'chm' parameter of the chart Uri.
434
+ */
435
+ goog.ui.ServerChart.prototype.getMarkerParameter = function() {
436
+ return /** @type {string} */ (
437
+ this.uri_.getParameterValue(goog.ui.ServerChart.UriParam.MARKERS));
438
+ };
439
+
440
+
441
+ /**
442
+ * Sets the 'chp' parameter of the chart Uri.
443
+ * This is used by various types of charts to specify certain options.
444
+ * e.g., finance charts use this to designate which line is the 0 axis.
445
+ *
446
+ * @param {string|number} value Value for the 'chp' parameter in the chart Uri.
447
+ */
448
+ goog.ui.ServerChart.prototype.setMiscParameter = function(value) {
449
+ this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.MISC_PARAMS,
450
+ String(value));
451
+ };
452
+
453
+
454
+ /**
455
+ * Returns the 'chp' parameter of the chart Uri.
456
+ * This is used by various types of charts to specify certain options.
457
+ * e.g., finance charts use this to designate which line is the 0 axis.
458
+ *
459
+ * @return {string|undefined} The 'chp' parameter of the chart Uri.
460
+ */
461
+ goog.ui.ServerChart.prototype.getMiscParameter = function() {
462
+ return /** @type {string} */ (
463
+ this.uri_.getParameterValue(goog.ui.ServerChart.UriParam.MISC_PARAMS));
464
+ };
465
+
466
+
467
+ /**
468
+ * Enum of chart data encoding types
469
+ *
470
+ * @enum {string}
471
+ */
472
+ goog.ui.ServerChart.EncodingType = {
473
+ AUTOMATIC: '',
474
+ EXTENDED: 'e',
475
+ SIMPLE: 's',
476
+ TEXT: 't'
477
+ };
478
+
479
+
480
+ /**
481
+ * Enum of chart types with their short names used by the chartserver.
482
+ *
483
+ * @enum {string}
484
+ */
485
+ goog.ui.ServerChart.ChartType = {
486
+ BAR: 'br',
487
+ CLOCK: 'cf',
488
+ CONCENTRIC_PIE: 'pc',
489
+ FILLEDLINE: 'lr',
490
+ FINANCE: 'lfi',
491
+ GOOGLEOMETER: 'gom',
492
+ HORIZONTAL_GROUPED_BAR: 'bhg',
493
+ HORIZONTAL_STACKED_BAR: 'bhs',
494
+ LINE: 'lc',
495
+ MAP: 't',
496
+ MAPUSA: 'tuss',
497
+ MAPWORLD: 'twoc',
498
+ PIE: 'p',
499
+ PIE3D: 'p3',
500
+ RADAR: 'rs',
501
+ SCATTER: 's',
502
+ SPARKLINE: 'ls',
503
+ VENN: 'v',
504
+ VERTICAL_GROUPED_BAR: 'bvg',
505
+ VERTICAL_STACKED_BAR: 'bvs',
506
+ XYLINE: 'lxy'
507
+ };
508
+
509
+
510
+ /**
511
+ * Enum of multi-axis types.
512
+ *
513
+ * @enum {string}
514
+ */
515
+ goog.ui.ServerChart.MultiAxisType = {
516
+ X_AXIS: 'x',
517
+ LEFT_Y_AXIS: 'y',
518
+ RIGHT_Y_AXIS: 'r',
519
+ TOP_AXIS: 't'
520
+ };
521
+
522
+
523
+ /**
524
+ * Enum of multi-axis alignments.
525
+ *
526
+ * @enum {number}
527
+ */
528
+ goog.ui.ServerChart.MultiAxisAlignment = {
529
+ ALIGN_LEFT: -1,
530
+ ALIGN_CENTER: 0,
531
+ ALIGN_RIGHT: 1
532
+ };
533
+
534
+
535
+ /**
536
+ * Enum of legend positions.
537
+ *
538
+ * @enum {string}
539
+ */
540
+ goog.ui.ServerChart.LegendPosition = {
541
+ TOP: 't',
542
+ BOTTOM: 'b',
543
+ LEFT: 'l',
544
+ RIGHT: 'r'
545
+ };
546
+
547
+
548
+ /**
549
+ * Enum of line and tick options for an axis.
550
+ *
551
+ * @enum {string}
552
+ */
553
+ goog.ui.ServerChart.AxisDisplayType = {
554
+ LINE_AND_TICKS: 'lt',
555
+ LINE: 'l',
556
+ TICKS: 't'
557
+ };
558
+
559
+
560
+ /**
561
+ * Enum of chart maximum values in pixels, as listed at:
562
+ * http://code.google.com/apis/chart/basics.html
563
+ *
564
+ * @enum {number}
565
+ */
566
+ goog.ui.ServerChart.MaximumValue = {
567
+ WIDTH: 1000,
568
+ HEIGHT: 1000,
569
+ MAP_WIDTH: 440,
570
+ MAP_HEIGHT: 220,
571
+ TOTAL_AREA: 300000
572
+ };
573
+
574
+
575
+ /**
576
+ * Enum of ChartServer URI parameters.
577
+ *
578
+ * @enum {string}
579
+ */
580
+ goog.ui.ServerChart.UriParam = {
581
+ BACKGROUND_FILL: 'chf',
582
+ BAR_HEIGHT: 'chbh',
583
+ DATA: 'chd',
584
+ DATA_COLORS: 'chco',
585
+ DATA_LABELS: 'chld',
586
+ DATA_SCALING: 'chds',
587
+ DIGITAL_SIGNATURE: 'sig',
588
+ GEOGRAPHICAL_REGION: 'chtm',
589
+ GRID: 'chg',
590
+ LABEL_COLORS: 'chlc',
591
+ LEFT_Y_LABELS: 'chly',
592
+ LEGEND: 'chdl',
593
+ LEGEND_POSITION: 'chdlp',
594
+ LEGEND_TEXTS: 'chdl',
595
+ LINE_STYLES: 'chls',
596
+ MARGINS: 'chma',
597
+ MARKERS: 'chm',
598
+ MISC_PARAMS: 'chp',
599
+ MULTI_AXIS_LABEL_POSITION: 'chxp',
600
+ MULTI_AXIS_LABEL_TEXT: 'chxl',
601
+ MULTI_AXIS_RANGE: 'chxr',
602
+ MULTI_AXIS_STYLE: 'chxs',
603
+ MULTI_AXIS_TYPES: 'chxt',
604
+ RIGHT_LABELS: 'chlr',
605
+ RIGHT_LABEL_POSITIONS: 'chlrp',
606
+ SIZE: 'chs',
607
+ TITLE: 'chtt',
608
+ TITLE_FORMAT: 'chts',
609
+ TYPE: 'cht',
610
+ X_AXIS_STYLE: 'chx',
611
+ X_LABELS: 'chl'
612
+ };
613
+
614
+
615
+ /**
616
+ * Sets the background fill.
617
+ *
618
+ * @param {Array.<Object>} fill An array of background fill specification
619
+ * objects. Each object may have the following properties:
620
+ * {string} area The area to fill, either 'bg' for background or 'c' for
621
+ * chart area. The default is 'bg'.
622
+ * {string} color (required) The color of the background fill.
623
+ * // TODO(user): Add support for gradient/stripes, which requires
624
+ * // a different object structure.
625
+ */
626
+ goog.ui.ServerChart.prototype.setBackgroundFill = function(fill) {
627
+ var value = [];
628
+ goog.array.forEach(fill, function(spec) {
629
+ spec.area = spec.area || 'bg';
630
+ spec.effect = spec.effect || 's';
631
+ value.push([spec.area, spec.effect, spec.color].join(','));
632
+ });
633
+ value = value.join('|');
634
+ this.setParameterValue(goog.ui.ServerChart.UriParam.BACKGROUND_FILL, value);
635
+ };
636
+
637
+
638
+ /**
639
+ * Returns the background fill.
640
+ *
641
+ * @return {Array.<Object>} An array of background fill specifications.
642
+ * If the fill specification string is in an unsupported format, the method
643
+ * returns an empty array.
644
+ */
645
+ goog.ui.ServerChart.prototype.getBackgroundFill = function() {
646
+ var value =
647
+ this.uri_.getParameterValue(goog.ui.ServerChart.UriParam.BACKGROUND_FILL);
648
+ var result = [];
649
+ if (goog.isDefAndNotNull(value)) {
650
+ var fillSpecifications = value.split('|');
651
+ var valid = true;
652
+ goog.array.forEach(fillSpecifications, function(spec) {
653
+ var parts = spec.split(',');
654
+ if (valid && parts[1] == 's') {
655
+ result.push({area: parts[0], effect: parts[1], color: parts[2]});
656
+ } else {
657
+ // If the format is unsupported, return an empty array.
658
+ result = [];
659
+ valid = false;
660
+ }
661
+ });
662
+ }
663
+ return result;
664
+ };
665
+
666
+
667
+ /**
668
+ * Sets the encoding type.
669
+ *
670
+ * @param {goog.ui.ServerChart.EncodingType} type Desired data encoding type.
671
+ */
672
+ goog.ui.ServerChart.prototype.setEncodingType = function(type) {
673
+ this.encodingType_ = type;
674
+ };
675
+
676
+
677
+ /**
678
+ * Gets the encoding type.
679
+ *
680
+ * @return {goog.ui.ServerChart.EncodingType} The encoding type.
681
+ */
682
+ goog.ui.ServerChart.prototype.getEncodingType = function() {
683
+ return this.encodingType_;
684
+ };
685
+
686
+
687
+ /**
688
+ * Sets the chart type.
689
+ *
690
+ * @param {goog.ui.ServerChart.ChartType} type The desired chart type.
691
+ */
692
+ goog.ui.ServerChart.prototype.setType = function(type) {
693
+ this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.TYPE, type);
694
+ };
695
+
696
+
697
+ /**
698
+ * Returns the chart type.
699
+ *
700
+ * @return {goog.ui.ServerChart.ChartType} The chart type.
701
+ */
702
+ goog.ui.ServerChart.prototype.getType = function() {
703
+ return /** @type {goog.ui.ServerChart.ChartType} */ (
704
+ this.uri_.getParameterValue(goog.ui.ServerChart.UriParam.TYPE));
705
+ };
706
+
707
+
708
+ /**
709
+ * Sets the chart size.
710
+ *
711
+ * @param {number=} opt_width Optional chart width, defaults to 300.
712
+ * @param {number=} opt_height Optional chart height, defaults to 150.
713
+ */
714
+ goog.ui.ServerChart.prototype.setSize = function(opt_width, opt_height) {
715
+ var sizeString = [opt_width || 300, opt_height || 150].join('x');
716
+ this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.SIZE, sizeString);
717
+ };
718
+
719
+
720
+ /**
721
+ * Returns the chart size.
722
+ *
723
+ * @return {Array.<string>} [Width, Height].
724
+ */
725
+ goog.ui.ServerChart.prototype.getSize = function() {
726
+ var sizeStr = this.uri_.getParameterValue(goog.ui.ServerChart.UriParam.SIZE);
727
+ return sizeStr.split('x');
728
+ };
729
+
730
+
731
+ /**
732
+ * Sets the minimum value of the chart.
733
+ *
734
+ * @param {number} minValue The minimum value of the chart.
735
+ */
736
+ goog.ui.ServerChart.prototype.setMinValue = function(minValue) {
737
+ this.minValue_ = minValue;
738
+ };
739
+
740
+
741
+ /**
742
+ * @return {number} The minimum value of the chart.
743
+ */
744
+ goog.ui.ServerChart.prototype.getMinValue = function() {
745
+ return this.minValue_;
746
+ };
747
+
748
+
749
+ /**
750
+ * Sets the maximum value of the chart.
751
+ *
752
+ * @param {number} maxValue The maximum value of the chart.
753
+ */
754
+ goog.ui.ServerChart.prototype.setMaxValue = function(maxValue) {
755
+ this.maxValue_ = maxValue;
756
+ };
757
+
758
+
759
+ /**
760
+ * @return {number} The maximum value of the chart.
761
+ */
762
+ goog.ui.ServerChart.prototype.getMaxValue = function() {
763
+ return this.maxValue_;
764
+ };
765
+
766
+
767
+ /**
768
+ * Sets the chart margins.
769
+ *
770
+ * @param {number} leftMargin The size in pixels of the left margin.
771
+ * @param {number} rightMargin The size in pixels of the right margin.
772
+ * @param {number} topMargin The size in pixels of the top margin.
773
+ * @param {number} bottomMargin The size in pixels of the bottom margin.
774
+ */
775
+ goog.ui.ServerChart.prototype.setMargins = function(leftMargin, rightMargin,
776
+ topMargin, bottomMargin) {
777
+ var margins = [leftMargin, rightMargin, topMargin, bottomMargin].join(',');
778
+ var UriParam = goog.ui.ServerChart.UriParam;
779
+ this.uri_.setParameterValue(UriParam.MARGINS, margins);
780
+ };
781
+
782
+
783
+ /**
784
+ * Sets the number of grid lines along the X-axis.
785
+ *
786
+ * @param {number} gridlines The number of X-axis grid lines.
787
+ */
788
+ goog.ui.ServerChart.prototype.setGridX = function(gridlines) {
789
+ // Need data for this to work.
790
+ this.gridX_ = gridlines;
791
+ this.setGrids_(this.gridX_, this.gridY_);
792
+ };
793
+
794
+
795
+ /**
796
+ * @return {number} The number of gridlines along the X-axis.
797
+ */
798
+ goog.ui.ServerChart.prototype.getGridX = function() {
799
+ return this.gridX_;
800
+ };
801
+
802
+
803
+ /**
804
+ * Sets the number of grid lines along the Y-axis.
805
+ *
806
+ * @param {number} gridlines The number of Y-axis grid lines.
807
+ */
808
+ goog.ui.ServerChart.prototype.setGridY = function(gridlines) {
809
+ // Need data for this to work.
810
+ this.gridY_ = gridlines;
811
+ this.setGrids_(this.gridX_, this.gridY_);
812
+ };
813
+
814
+
815
+ /**
816
+ * @return {number} The number of gridlines along the Y-axis.
817
+ */
818
+ goog.ui.ServerChart.prototype.getGridY = function() {
819
+ return this.gridY_;
820
+ };
821
+
822
+
823
+ /**
824
+ * Sets the grids for the chart
825
+ *
826
+ * @private
827
+ * @param {number} x The number of grid lines along the x-axis.
828
+ * @param {number} y The number of grid lines along the y-axis.
829
+ */
830
+ goog.ui.ServerChart.prototype.setGrids_ = function(x, y) {
831
+ var gridArray = [x == 0 ? 0 : 100 / x,
832
+ y == 0 ? 0 : 100 / y];
833
+ this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.GRID,
834
+ gridArray.join(','));
835
+ };
836
+
837
+
838
+ /**
839
+ * Sets the X Labels for the chart.
840
+ *
841
+ * @param {Array.<string>} labels The X Labels for the chart.
842
+ */
843
+ goog.ui.ServerChart.prototype.setXLabels = function(labels) {
844
+ this.xLabels_ = labels;
845
+ this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.X_LABELS,
846
+ this.xLabels_.join('|'));
847
+ };
848
+
849
+
850
+ /**
851
+ * @return {Array.<string>} The X Labels for the chart.
852
+ */
853
+ goog.ui.ServerChart.prototype.getXLabels = function() {
854
+ return this.xLabels_;
855
+ };
856
+
857
+
858
+ /**
859
+ * @return {boolean} Whether the chart is a bar chart.
860
+ */
861
+ goog.ui.ServerChart.prototype.isBarChart = function() {
862
+ var type = this.getType();
863
+ return type == goog.ui.ServerChart.ChartType.BAR ||
864
+ type == goog.ui.ServerChart.ChartType.HORIZONTAL_GROUPED_BAR ||
865
+ type == goog.ui.ServerChart.ChartType.HORIZONTAL_STACKED_BAR ||
866
+ type == goog.ui.ServerChart.ChartType.VERTICAL_GROUPED_BAR ||
867
+ type == goog.ui.ServerChart.ChartType.VERTICAL_STACKED_BAR;
868
+ };
869
+
870
+
871
+ /**
872
+ * @return {boolean} Whether the chart is a pie chart.
873
+ */
874
+ goog.ui.ServerChart.prototype.isPieChart = function() {
875
+ var type = this.getType();
876
+ return type == goog.ui.ServerChart.ChartType.PIE ||
877
+ type == goog.ui.ServerChart.ChartType.PIE3D ||
878
+ type == goog.ui.ServerChart.ChartType.CONCENTRIC_PIE;
879
+ };
880
+
881
+
882
+ /**
883
+ * @return {boolean} Whether the chart is a grouped bar chart.
884
+ */
885
+ goog.ui.ServerChart.prototype.isGroupedBarChart = function() {
886
+ var type = this.getType();
887
+ return type == goog.ui.ServerChart.ChartType.HORIZONTAL_GROUPED_BAR ||
888
+ type == goog.ui.ServerChart.ChartType.VERTICAL_GROUPED_BAR;
889
+ };
890
+
891
+
892
+ /**
893
+ * @return {boolean} Whether the chart is a horizontal bar chart.
894
+ */
895
+ goog.ui.ServerChart.prototype.isHorizontalBarChart = function() {
896
+ var type = this.getType();
897
+ return type == goog.ui.ServerChart.ChartType.BAR ||
898
+ type == goog.ui.ServerChart.ChartType.HORIZONTAL_GROUPED_BAR ||
899
+ type == goog.ui.ServerChart.ChartType.HORIZONTAL_STACKED_BAR;
900
+ };
901
+
902
+
903
+ /**
904
+ * @return {boolean} Whether the chart is a line chart.
905
+ */
906
+ goog.ui.ServerChart.prototype.isLineChart = function() {
907
+ var type = this.getType();
908
+ return type == goog.ui.ServerChart.ChartType.FILLEDLINE ||
909
+ type == goog.ui.ServerChart.ChartType.LINE ||
910
+ type == goog.ui.ServerChart.ChartType.SPARKLINE ||
911
+ type == goog.ui.ServerChart.ChartType.XYLINE;
912
+ };
913
+
914
+
915
+ /**
916
+ * @return {boolean} Whether the chart is a map.
917
+ */
918
+ goog.ui.ServerChart.prototype.isMap = function() {
919
+ var type = this.getType();
920
+ return type == goog.ui.ServerChart.ChartType.MAP ||
921
+ type == goog.ui.ServerChart.ChartType.MAPUSA ||
922
+ type == goog.ui.ServerChart.ChartType.MAPWORLD;
923
+ };
924
+
925
+
926
+ /**
927
+ * @return {boolean} Whether the chart is a stacked bar chart.
928
+ */
929
+ goog.ui.ServerChart.prototype.isStackedBarChart = function() {
930
+ var type = this.getType();
931
+ return type == goog.ui.ServerChart.ChartType.BAR ||
932
+ type == goog.ui.ServerChart.ChartType.HORIZONTAL_STACKED_BAR ||
933
+ type == goog.ui.ServerChart.ChartType.VERTICAL_STACKED_BAR;
934
+ };
935
+
936
+
937
+ /**
938
+ * @return {boolean} Whether the chart is a vertical bar chart.
939
+ */
940
+ goog.ui.ServerChart.prototype.isVerticalBarChart = function() {
941
+ var type = this.getType();
942
+ return type == goog.ui.ServerChart.ChartType.VERTICAL_GROUPED_BAR ||
943
+ type == goog.ui.ServerChart.ChartType.VERTICAL_STACKED_BAR;
944
+ };
945
+
946
+
947
+ /**
948
+ * Sets the Left Labels for the chart.
949
+ * NOTE: The array should start with the lowest value, and then
950
+ * move progessively up the axis. So if you want labels
951
+ * from 0 to 100 with 0 at bottom of the graph, then you would
952
+ * want to pass something like [0,25,50,75,100].
953
+ *
954
+ * @param {Array.<string>} labels The Left Labels for the chart.
955
+ */
956
+ goog.ui.ServerChart.prototype.setLeftLabels = function(labels) {
957
+ this.leftLabels_ = labels;
958
+ this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.LEFT_Y_LABELS,
959
+ this.leftLabels_.reverse().join('|'));
960
+ };
961
+
962
+
963
+ /**
964
+ * @return {Array.<string>} The Left Labels for the chart.
965
+ */
966
+ goog.ui.ServerChart.prototype.getLeftLabels = function() {
967
+ return this.leftLabels_;
968
+ };
969
+
970
+
971
+ /**
972
+ * Sets the given ChartServer parameter.
973
+ *
974
+ * @param {goog.ui.ServerChart.UriParam} key The ChartServer parameter to set.
975
+ * @param {string} value The value to set for the ChartServer parameter.
976
+ */
977
+ goog.ui.ServerChart.prototype.setParameterValue = function(key, value) {
978
+ this.uri_.setParameterValue(key, value);
979
+ };
980
+
981
+
982
+ /**
983
+ * Removes the given ChartServer parameter.
984
+ *
985
+ * @param {goog.ui.ServerChart.UriParam} key The ChartServer parameter to
986
+ * remove.
987
+ */
988
+ goog.ui.ServerChart.prototype.removeParameter = function(key) {
989
+ this.uri_.removeParameter(key);
990
+ };
991
+
992
+
993
+ /**
994
+ * Sets the Right Labels for the chart.
995
+ * NOTE: The array should start with the lowest value, and then
996
+ * move progessively up the axis. So if you want labels
997
+ * from 0 to 100 with 0 at bottom of the graph, then you would
998
+ * want to pass something like [0,25,50,75,100].
999
+ *
1000
+ * @param {Array.<string>} labels The Right Labels for the chart.
1001
+ */
1002
+ goog.ui.ServerChart.prototype.setRightLabels = function(labels) {
1003
+ this.rightLabels_ = labels;
1004
+ this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.RIGHT_LABELS,
1005
+ this.rightLabels_.reverse().join('|'));
1006
+ };
1007
+
1008
+
1009
+ /**
1010
+ * @return {Array.<string>} The Right Labels for the chart.
1011
+ */
1012
+ goog.ui.ServerChart.prototype.getRightLabels = function() {
1013
+ return this.rightLabels_;
1014
+ };
1015
+
1016
+
1017
+ /**
1018
+ * Sets the position relative to the chart where the legend is to be displayed.
1019
+ *
1020
+ * @param {goog.ui.ServerChart.LegendPosition} value Legend position.
1021
+ */
1022
+ goog.ui.ServerChart.prototype.setLegendPosition = function(value) {
1023
+ this.uri_.setParameterValue(
1024
+ goog.ui.ServerChart.UriParam.LEGEND_POSITION, value);
1025
+ };
1026
+
1027
+
1028
+ /**
1029
+ * Returns the position relative to the chart where the legend is to be
1030
+ * displayed.
1031
+ *
1032
+ * @return {goog.ui.ServerChart.LegendPosition} Legend position.
1033
+ */
1034
+ goog.ui.ServerChart.prototype.getLegendPosition = function() {
1035
+ return /** @type {goog.ui.ServerChart.LegendPosition} */ (
1036
+ this.uri_.getParameterValue(
1037
+ goog.ui.ServerChart.UriParam.LEGEND_POSITION));
1038
+ };
1039
+
1040
+
1041
+ /**
1042
+ * Sets the number of "visible" data sets. All data sets that come after
1043
+ * the visible data set are not drawn as part of the chart. Instead, they
1044
+ * are available for positioning markers.
1045
+
1046
+ * @param {?number} n The number of visible data sets, or null if all data
1047
+ * sets are to be visible.
1048
+ */
1049
+ goog.ui.ServerChart.prototype.setNumVisibleDataSets = function(n) {
1050
+ this.numVisibleDataSets_ = n;
1051
+ };
1052
+
1053
+
1054
+ /**
1055
+ * Returns the number of "visible" data sets. All data sets that come after
1056
+ * the visible data set are not drawn as part of the chart. Instead, they
1057
+ * are available for positioning markers.
1058
+ *
1059
+ * @return {?number} The number of visible data sets, or null if all data
1060
+ * sets are visible.
1061
+ */
1062
+ goog.ui.ServerChart.prototype.getNumVisibleDataSets = function() {
1063
+ return this.numVisibleDataSets_;
1064
+ };
1065
+
1066
+
1067
+ /**
1068
+ * Sets the weight function for a Venn Diagram along with the associated
1069
+ * colors and legend text. Weights are assigned as follows:
1070
+ * weights[0] is relative area of circle A.
1071
+ * weights[1] is relative area of circle B.
1072
+ * weights[2] is relative area of circle C.
1073
+ * weights[3] is relative area of overlap of circles A and B.
1074
+ * weights[4] is relative area of overlap of circles A and C.
1075
+ * weights[5] is relative area of overlap of circles B and C.
1076
+ * weights[6] is relative area of overlap of circles A, B and C.
1077
+ * For a two circle Venn Diagram the weights are assigned as follows:
1078
+ * weights[0] is relative area of circle A.
1079
+ * weights[1] is relative area of circle B.
1080
+ * weights[2] is relative area of overlap of circles A and B.
1081
+ *
1082
+ * @param {Array.<number>} weights The relative weights of the circles.
1083
+ * @param {Array.<string>=} opt_legendText The legend labels for the circles.
1084
+ * @param {Array.<string>=} opt_colors The colors for the circles.
1085
+ */
1086
+ goog.ui.ServerChart.prototype.setVennSeries = function(
1087
+ weights, opt_legendText, opt_colors) {
1088
+ if (this.getType() != goog.ui.ServerChart.ChartType.VENN) {
1089
+ throw Error('Can only set a weight function for a Venn diagram.');
1090
+ }
1091
+ var dataMin = this.arrayMin_(weights);
1092
+ if (dataMin < this.minValue_) {
1093
+ this.minValue_ = dataMin;
1094
+ }
1095
+ var dataMax = this.arrayMax_(weights);
1096
+ if (dataMax > this.maxValue_) {
1097
+ this.maxValue_ = dataMax;
1098
+ }
1099
+ if (goog.isDef(opt_legendText)) {
1100
+ goog.array.forEach(
1101
+ opt_legendText,
1102
+ goog.bind(function(legend) {
1103
+ this.setLegendTexts_.push(legend);
1104
+ }, this));
1105
+ this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.LEGEND_TEXTS,
1106
+ this.setLegendTexts_.join('|'));
1107
+ }
1108
+ // If the caller only gave three weights, then they wanted a two circle
1109
+ // Venn Diagram. Create a 3 circle weight function where circle C has
1110
+ // area zero.
1111
+ if (weights.length == 3) {
1112
+ weights[3] = weights[2];
1113
+ weights[2] = 0.0;
1114
+ }
1115
+ this.dataSets_.push(weights);
1116
+ if (goog.isDef(opt_colors)) {
1117
+ goog.array.forEach(opt_colors, goog.bind(function(color) {
1118
+ this.setColors_.push(color);
1119
+ }, this));
1120
+ this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.DATA_COLORS,
1121
+ this.setColors_.join(','));
1122
+ }
1123
+ };
1124
+
1125
+
1126
+ /**
1127
+ * Sets the title of the chart.
1128
+ *
1129
+ * @param {string} title The chart title.
1130
+ */
1131
+ goog.ui.ServerChart.prototype.setTitle = function(title) {
1132
+ this.title_ = title;
1133
+ this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.TITLE,
1134
+ this.title_.replace(/\n/g, '|'));
1135
+ };
1136
+
1137
+
1138
+ /**
1139
+ * Sets the size of the chart title.
1140
+ *
1141
+ * @param {number} size The title size, in points.
1142
+ */
1143
+ goog.ui.ServerChart.prototype.setTitleSize = function(size) {
1144
+ this.titleSize_ = size;
1145
+ this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.TITLE_FORMAT,
1146
+ this.titleColor_ + ',' + this.titleSize_);
1147
+ };
1148
+
1149
+
1150
+ /**
1151
+ * @return {number} size The title size, in points.
1152
+ */
1153
+ goog.ui.ServerChart.prototype.getTitleSize = function() {
1154
+ return this.titleSize_;
1155
+ };
1156
+
1157
+
1158
+ /**
1159
+ * Sets the color of the chart title.
1160
+ *
1161
+ * NOTE: The color string should NOT have a '#' at the beginning of it.
1162
+ *
1163
+ * @param {string} color The hex value for the title color.
1164
+ */
1165
+ goog.ui.ServerChart.prototype.setTitleColor = function(color) {
1166
+ this.titleColor_ = color;
1167
+ this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.TITLE_FORMAT,
1168
+ this.titleColor_ + ',' + this.titleSize_);
1169
+ };
1170
+
1171
+
1172
+ /**
1173
+ * @return {string} color The hex value for the title color.
1174
+ */
1175
+ goog.ui.ServerChart.prototype.getTitleColor = function() {
1176
+ return this.titleColor_;
1177
+ };
1178
+
1179
+
1180
+ /**
1181
+ * Adds a legend to the chart.
1182
+ *
1183
+ * @param {Array.<string>} legend The legend to add.
1184
+ */
1185
+ goog.ui.ServerChart.prototype.setLegend = function(legend) {
1186
+ this.legend_ = legend;
1187
+ this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.LEGEND,
1188
+ this.legend_.join('|'));
1189
+ };
1190
+
1191
+
1192
+ /**
1193
+ * Sets the data scaling.
1194
+ * NOTE: This also changes the encoding type because data scaling will
1195
+ * only work with {@code goog.ui.ServerChart.EncodingType.TEXT}
1196
+ * encoding.
1197
+ * @param {number} minimum The lowest number to apply to the data.
1198
+ * @param {number} maximum The highest number to apply to the data.
1199
+ */
1200
+ goog.ui.ServerChart.prototype.setDataScaling = function(minimum, maximum) {
1201
+ this.encodingType_ = goog.ui.ServerChart.EncodingType.TEXT;
1202
+ this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.DATA_SCALING,
1203
+ minimum + ',' + maximum);
1204
+ };
1205
+
1206
+
1207
+ /**
1208
+ * Sets the widths of the bars and the spaces between the bars in a bar
1209
+ * chart.
1210
+ * NOTE: If the space between groups is specified but the space between
1211
+ * bars is left undefined, the space between groups will be interpreted
1212
+ * as the space between bars because this is the behavior exposed
1213
+ * in the external developers guide.
1214
+ * @param {number} barWidth The width of a bar in pixels.
1215
+ * @param {number=} opt_spaceBars The width of the space between
1216
+ * bars in a group in pixels.
1217
+ * @param {number=} opt_spaceGroups The width of the space between
1218
+ * groups.
1219
+ */
1220
+ goog.ui.ServerChart.prototype.setBarSpaceWidths = function(barWidth,
1221
+ opt_spaceBars,
1222
+ opt_spaceGroups) {
1223
+ var widths = [barWidth];
1224
+ if (goog.isDef(opt_spaceBars)) {
1225
+ widths.push(opt_spaceBars);
1226
+ }
1227
+ if (goog.isDef(opt_spaceGroups)) {
1228
+ widths.push(opt_spaceGroups);
1229
+ }
1230
+ this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.BAR_HEIGHT,
1231
+ widths.join(','));
1232
+ };
1233
+
1234
+
1235
+ /**
1236
+ * Specifies that the bar width in a bar chart should be calculated
1237
+ * automatically given the space available in the chart, while optionally
1238
+ * setting the spaces between the bars.
1239
+ * NOTE: If the space between groups is specified but the space between
1240
+ * bars is left undefined, the space between groups will be interpreted
1241
+ * as the space between bars because this is the behavior exposed
1242
+ * in the external developers guide.
1243
+ * @param {number=} opt_spaceBars The width of the space between
1244
+ * bars in a group in pixels.
1245
+ * @param {number=} opt_spaceGroups The width of the space between
1246
+ * groups.
1247
+ */
1248
+ goog.ui.ServerChart.prototype.setAutomaticBarWidth = function(opt_spaceBars,
1249
+ opt_spaceGroups) {
1250
+ var widths = ['a'];
1251
+ if (goog.isDef(opt_spaceBars)) {
1252
+ widths.push(opt_spaceBars);
1253
+ }
1254
+ if (goog.isDef(opt_spaceGroups)) {
1255
+ widths.push(opt_spaceGroups);
1256
+ }
1257
+ this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.BAR_HEIGHT,
1258
+ widths.join(','));
1259
+ };
1260
+
1261
+
1262
+ /**
1263
+ * Adds a multi-axis to the chart, and sets its type. Multiple axes of the same
1264
+ * type can be added.
1265
+ *
1266
+ * @param {goog.ui.ServerChart.MultiAxisType} axisType The desired axis type.
1267
+ * @return {number} The index of the newly inserted axis, suitable for feeding
1268
+ * to the setMultiAxis*() functions.
1269
+ */
1270
+ goog.ui.ServerChart.prototype.addMultiAxis = function(axisType) {
1271
+ this.multiAxisType_.push(axisType);
1272
+ this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.MULTI_AXIS_TYPES,
1273
+ this.multiAxisType_.join(','));
1274
+ return this.multiAxisType_.length - 1;
1275
+ };
1276
+
1277
+
1278
+ /**
1279
+ * Returns the axis type for the given axis, or all of them in an array if the
1280
+ * axis number is not given.
1281
+ *
1282
+ * @param {number=} opt_axisNumber The axis index, as returned by addMultiAxis.
1283
+ * @return {goog.ui.ServerChart.MultiAxisType|
1284
+ * Array.<goog.ui.ServerChart.MultiAxisType>}
1285
+ * The axis type for the given axis, or all of them in an array if the
1286
+ * axis number is not given.
1287
+ */
1288
+ goog.ui.ServerChart.prototype.getMultiAxisType = function(opt_axisNumber) {
1289
+ if (goog.isDef(opt_axisNumber)) {
1290
+ return this.multiAxisType_[opt_axisNumber];
1291
+ }
1292
+ return this.multiAxisType_;
1293
+ };
1294
+
1295
+
1296
+ /**
1297
+ * Sets the label text (usually multiple values) for a given axis, overwriting
1298
+ * any existing values.
1299
+ *
1300
+ * @param {number} axisNumber The axis index, as returned by addMultiAxis.
1301
+ * @param {Array.<string>} labelText The actual label text to be added.
1302
+ */
1303
+ goog.ui.ServerChart.prototype.setMultiAxisLabelText = function(axisNumber,
1304
+ labelText) {
1305
+ this.multiAxisLabelText_[axisNumber] = labelText;
1306
+
1307
+ var axisString = this.computeMultiAxisDataString_(this.multiAxisLabelText_,
1308
+ ':|',
1309
+ '|',
1310
+ '|');
1311
+ this.uri_.setParameterValue(
1312
+ goog.ui.ServerChart.UriParam.MULTI_AXIS_LABEL_TEXT,
1313
+ axisString);
1314
+ };
1315
+
1316
+
1317
+ /**
1318
+ * Returns the label text, or all of them in a two-dimensional array if the
1319
+ * axis number is not given.
1320
+ *
1321
+ * @param {number=} opt_axisNumber The axis index, as returned by addMultiAxis.
1322
+ * @return {Object|Array.<string>} The label text, or all of them in a
1323
+ * two-dimensional array if the axis number is not given.
1324
+ */
1325
+ goog.ui.ServerChart.prototype.getMultiAxisLabelText = function(opt_axisNumber) {
1326
+ if (goog.isDef(opt_axisNumber)) {
1327
+ return this.multiAxisLabelText_[opt_axisNumber];
1328
+ }
1329
+ return this.multiAxisLabelText_;
1330
+ };
1331
+
1332
+
1333
+ /**
1334
+ * Sets the label positions for a given axis, overwriting any existing values.
1335
+ * The label positions are assumed to be floating-point numbers within the
1336
+ * range of the axis.
1337
+ *
1338
+ * @param {number} axisNumber The axis index, as returned by addMultiAxis.
1339
+ * @param {Array.<number>} labelPosition The actual label positions to be added.
1340
+ */
1341
+ goog.ui.ServerChart.prototype.setMultiAxisLabelPosition = function(
1342
+ axisNumber, labelPosition) {
1343
+ this.multiAxisLabelPosition_[axisNumber] = labelPosition;
1344
+
1345
+ var positionString = this.computeMultiAxisDataString_(
1346
+ this.multiAxisLabelPosition_,
1347
+ ',',
1348
+ ',',
1349
+ '|');
1350
+ this.uri_.setParameterValue(
1351
+ goog.ui.ServerChart.UriParam.MULTI_AXIS_LABEL_POSITION,
1352
+ positionString);
1353
+ };
1354
+
1355
+
1356
+ /**
1357
+ * Returns the label positions for a given axis number, or all of them in a
1358
+ * two-dimensional array if the axis number is not given.
1359
+ *
1360
+ * @param {number=} opt_axisNumber The axis index, as returned by addMultiAxis.
1361
+ * @return {Object|Array.<number>} The label positions for a given axis number,
1362
+ * or all of them in a two-dimensional array if the axis number is not
1363
+ * given.
1364
+ */
1365
+ goog.ui.ServerChart.prototype.getMultiAxisLabelPosition =
1366
+ function(opt_axisNumber) {
1367
+ if (goog.isDef(opt_axisNumber)) {
1368
+ return this.multiAxisLabelPosition_[opt_axisNumber];
1369
+ }
1370
+ return this.multiAxisLabelPosition_;
1371
+ };
1372
+
1373
+
1374
+ /**
1375
+ * Sets the label range for a given axis, overwriting any existing range.
1376
+ * The default range is from 0 to 100. If the start value is larger than the
1377
+ * end value, the axis direction is reversed. rangeStart and rangeEnd must
1378
+ * be two different finite numbers.
1379
+ *
1380
+ * @param {number} axisNumber The axis index, as returned by addMultiAxis.
1381
+ * @param {number} rangeStart The new start of the range.
1382
+ * @param {number} rangeEnd The new end of the range.
1383
+ * @param {number=} opt_interval The interval between axis labels.
1384
+ */
1385
+ goog.ui.ServerChart.prototype.setMultiAxisRange = function(axisNumber,
1386
+ rangeStart,
1387
+ rangeEnd,
1388
+ opt_interval) {
1389
+ goog.asserts.assert(rangeStart != rangeEnd,
1390
+ 'Range start and end cannot be the same value.');
1391
+ goog.asserts.assert(isFinite(rangeStart) && isFinite(rangeEnd),
1392
+ 'Range start and end must be finite numbers.');
1393
+ this.multiAxisRange_[axisNumber] = [rangeStart, rangeEnd];
1394
+ if (goog.isDef(opt_interval)) {
1395
+ this.multiAxisRange_[axisNumber].push(opt_interval);
1396
+ }
1397
+ var rangeString = this.computeMultiAxisDataString_(this.multiAxisRange_,
1398
+ ',', ',', '|');
1399
+ this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.MULTI_AXIS_RANGE,
1400
+ rangeString);
1401
+ };
1402
+
1403
+
1404
+ /**
1405
+ * Returns the label range for a given axis number as a two-element array of
1406
+ * (range start, range end), or all of them in a two-dimensional array if the
1407
+ * axis number is not given.
1408
+ *
1409
+ * @param {number=} opt_axisNumber The axis index, as returned by addMultiAxis.
1410
+ * @return {Object|Array.<number>} The label range for a given axis number as a
1411
+ * two-element array of (range start, range end), or all of them in a
1412
+ * two-dimensional array if the axis number is not given.
1413
+ */
1414
+ goog.ui.ServerChart.prototype.getMultiAxisRange = function(opt_axisNumber) {
1415
+ if (goog.isDef(opt_axisNumber)) {
1416
+ return this.multiAxisRange_[opt_axisNumber];
1417
+ }
1418
+ return this.multiAxisRange_;
1419
+ };
1420
+
1421
+
1422
+ /**
1423
+ * Sets the label style for a given axis, overwriting any existing style.
1424
+ * The default style is as follows: Default is x-axis labels are centered, left
1425
+ * hand y-axis labels are right aligned, right hand y-axis labels are left
1426
+ * aligned. The font size and alignment are optional parameters.
1427
+ *
1428
+ * NOTE: The color string should NOT have a '#' at the beginning of it.
1429
+ *
1430
+ * @param {number} axisNumber The axis index, as returned by addMultiAxis.
1431
+ * @param {string} color The hex value for this label's color.
1432
+ * @param {number=} opt_fontSize The label font size, in pixels.
1433
+ * @param {goog.ui.ServerChart.MultiAxisAlignment=} opt_alignment The label
1434
+ * alignment.
1435
+ * @param {goog.ui.ServerChart.AxisDisplayType=} opt_axisDisplay The axis
1436
+ * line and ticks.
1437
+ */
1438
+ goog.ui.ServerChart.prototype.setMultiAxisLabelStyle = function(
1439
+ axisNumber, color, opt_fontSize, opt_alignment, opt_axisDisplay) {
1440
+ var style = [color];
1441
+ if (goog.isDef(opt_fontSize) || goog.isDef(opt_alignment)) {
1442
+ style.push(opt_fontSize || '');
1443
+ }
1444
+ if (goog.isDef(opt_alignment)) {
1445
+ style.push(opt_alignment);
1446
+ }
1447
+ if (opt_axisDisplay) {
1448
+ style.push(opt_axisDisplay);
1449
+ }
1450
+ this.multiAxisLabelStyle_[axisNumber] = style;
1451
+ var styleString = this.computeMultiAxisDataString_(this.multiAxisLabelStyle_,
1452
+ ',',
1453
+ ',',
1454
+ '|');
1455
+ this.uri_.setParameterValue(
1456
+ goog.ui.ServerChart.UriParam.MULTI_AXIS_STYLE,
1457
+ styleString);
1458
+ };
1459
+
1460
+
1461
+ /**
1462
+ * Returns the label style for a given axis number as a one- to three-element
1463
+ * array, or all of them in a two-dimensional array if the axis number is not
1464
+ * given.
1465
+ *
1466
+ * @param {number=} opt_axisNumber The axis index, as returned by addMultiAxis.
1467
+ * @return {Object|Array.<number>} The label style for a given axis number as a
1468
+ * one- to three-element array, or all of them in a two-dimensional array if
1469
+ * the axis number is not given.
1470
+ */
1471
+ goog.ui.ServerChart.prototype.getMultiAxisLabelStyle =
1472
+ function(opt_axisNumber) {
1473
+ if (goog.isDef(opt_axisNumber)) {
1474
+ return this.multiAxisLabelStyle_[opt_axisNumber];
1475
+ }
1476
+ return this.multiAxisLabelStyle_;
1477
+ };
1478
+
1479
+
1480
+ /**
1481
+ * Adds a data set.
1482
+ * NOTE: The color string should NOT have a '#' at the beginning of it.
1483
+ *
1484
+ * @param {Array.<number|null>} data An array of numbers (values can be
1485
+ * NaN or null).
1486
+ * @param {string} color The hex value for this data set's color.
1487
+ * @param {string=} opt_legendText The legend text, if any, for this data
1488
+ * series. NOTE: If specified, all previously added data sets must also
1489
+ * have a legend text.
1490
+ */
1491
+ goog.ui.ServerChart.prototype.addDataSet = function(data,
1492
+ color,
1493
+ opt_legendText) {
1494
+ var dataMin = this.arrayMin_(data);
1495
+ if (dataMin < this.minValue_) {
1496
+ this.minValue_ = dataMin;
1497
+ }
1498
+
1499
+ var dataMax = this.arrayMax_(data);
1500
+ if (dataMax > this.maxValue_) {
1501
+ this.maxValue_ = dataMax;
1502
+ }
1503
+
1504
+ if (goog.isDef(opt_legendText)) {
1505
+ if (this.setLegendTexts_.length < this.dataSets_.length) {
1506
+ throw Error('Cannot start adding legends text after first element.');
1507
+ }
1508
+ this.setLegendTexts_.push(opt_legendText);
1509
+ this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.LEGEND_TEXTS,
1510
+ this.setLegendTexts_.join('|'));
1511
+ }
1512
+
1513
+ this.dataSets_.push(data);
1514
+ this.setColors_.push(color);
1515
+
1516
+ this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.DATA_COLORS,
1517
+ this.setColors_.join(','));
1518
+ };
1519
+
1520
+
1521
+ /**
1522
+ * Clears the data sets from the graph. All data, including the colors and
1523
+ * legend text, is cleared.
1524
+ */
1525
+ goog.ui.ServerChart.prototype.clearDataSets = function() {
1526
+ var queryData = this.uri_.getQueryData();
1527
+ queryData.remove(goog.ui.ServerChart.UriParam.LEGEND_TEXTS);
1528
+ queryData.remove(goog.ui.ServerChart.UriParam.DATA_COLORS);
1529
+ queryData.remove(goog.ui.ServerChart.UriParam.DATA);
1530
+ this.setLegendTexts_.length = 0;
1531
+ this.setColors_.length = 0;
1532
+ this.dataSets_.length = 0;
1533
+ };
1534
+
1535
+
1536
+ /**
1537
+ * Returns the given data set or all of them in a two-dimensional array if
1538
+ * the set number is not given.
1539
+ *
1540
+ * @param {number=} opt_setNumber Optional data set number to get.
1541
+ * @return {Array} The given data set or all of them in a two-dimensional array
1542
+ * if the set number is not given.
1543
+ */
1544
+ goog.ui.ServerChart.prototype.getData = function(opt_setNumber) {
1545
+ if (goog.isDef(opt_setNumber)) {
1546
+ return this.dataSets_[opt_setNumber];
1547
+ }
1548
+ return this.dataSets_;
1549
+ };
1550
+
1551
+
1552
+ /**
1553
+ * Computes the data string using the data in this.dataSets_ and sets
1554
+ * the object's URI accordingly. If the URI's length equals or exceeds the
1555
+ * limit, goog.ui.ServerChart.UriTooLongEvent is dispatched on the
1556
+ * goog.ui.ServerChart object.
1557
+ * @private
1558
+ */
1559
+ goog.ui.ServerChart.prototype.computeDataString_ = function() {
1560
+ var ok;
1561
+ if (this.encodingType_ != goog.ui.ServerChart.EncodingType.AUTOMATIC) {
1562
+ ok = this.computeDataStringForEncoding_(this.encodingType_);
1563
+ } else {
1564
+ ok = this.computeDataStringForEncoding_(
1565
+ goog.ui.ServerChart.EncodingType.EXTENDED);
1566
+ if (!ok) {
1567
+ ok = this.computeDataStringForEncoding_(
1568
+ goog.ui.ServerChart.EncodingType.SIMPLE);
1569
+ }
1570
+ }
1571
+ if (!ok) {
1572
+ this.dispatchEvent(
1573
+ new goog.ui.ServerChart.UriTooLongEvent(this.uri_.toString()));
1574
+ }
1575
+ };
1576
+
1577
+
1578
+ /**
1579
+ * Computes the data string using the data in this.dataSets_ and the encoding
1580
+ * specified by the encoding parameter, which must not be AUTOMATIC, and sets
1581
+ * the object's URI accordingly.
1582
+ * @param {goog.ui.ServerChart.EncodingType} encoding The data encoding to use;
1583
+ * must not be AUTOMATIC.
1584
+ * @return {boolean} False if the resulting URI is too long.
1585
+ * @private
1586
+ */
1587
+ goog.ui.ServerChart.prototype.computeDataStringForEncoding_ = function(
1588
+ encoding) {
1589
+ var dataStrings = [];
1590
+ for (var i = 0, setLen = this.dataSets_.length; i < setLen; ++i) {
1591
+ dataStrings[i] = this.getChartServerValues_(this.dataSets_[i],
1592
+ this.minValue_,
1593
+ this.maxValue_,
1594
+ encoding);
1595
+ }
1596
+ var delimiter = encoding == goog.ui.ServerChart.EncodingType.TEXT ? '|' : ',';
1597
+ dataStrings = dataStrings.join(delimiter);
1598
+ var data;
1599
+ if (this.numVisibleDataSets_ == null) {
1600
+ data = goog.string.buildString(encoding, ':', dataStrings);
1601
+ } else {
1602
+ data = goog.string.buildString(encoding, this.numVisibleDataSets_, ':',
1603
+ dataStrings);
1604
+ }
1605
+ this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.DATA, data);
1606
+ return this.uri_.toString().length < this.uriLengthLimit_;
1607
+ };
1608
+
1609
+
1610
+ /**
1611
+ * Computes a multi-axis data string from the given data and separators. The
1612
+ * general data format for each index/element in the array will be
1613
+ * "<arrayIndex><indexSeparator><arrayElement.join(elementSeparator)>", with
1614
+ * axisSeparator used between multiple elements.
1615
+ * @param {Object} data The data to compute the data string for, as a
1616
+ * sparse array of arrays. NOTE: The function uses the length of
1617
+ * multiAxisType_ to determine the upper bound for the outer array.
1618
+ * @param {string} indexSeparator The separator string inserted between each
1619
+ * index and the data itself, commonly a comma (,).
1620
+ * @param {string} elementSeparator The separator string inserted between each
1621
+ * element inside each sub-array in the data, if there are more than one;
1622
+ * commonly a comma (,).
1623
+ * @param {string} axisSeparator The separator string inserted between each
1624
+ * axis specification, if there are more than one; usually a pipe sign (|).
1625
+ * @return {string} The multi-axis data string.
1626
+ * @private
1627
+ */
1628
+ goog.ui.ServerChart.prototype.computeMultiAxisDataString_ = function(
1629
+ data,
1630
+ indexSeparator,
1631
+ elementSeparator,
1632
+ axisSeparator) {
1633
+ var elementStrings = [];
1634
+ for (var i = 0, setLen = this.multiAxisType_.length; i < setLen; ++i) {
1635
+ if (data[i]) {
1636
+ elementStrings.push(i + indexSeparator + data[i].join(elementSeparator));
1637
+ }
1638
+ }
1639
+ return elementStrings.join(axisSeparator);
1640
+ };
1641
+
1642
+
1643
+ /**
1644
+ * Array of possible ChartServer data values
1645
+ * @type {string}
1646
+ */
1647
+ goog.ui.ServerChart.CHART_VALUES = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' +
1648
+ 'abcdefghijklmnopqrstuvwxyz' +
1649
+ '0123456789';
1650
+
1651
+
1652
+ /**
1653
+ * Array of extended ChartServer data values
1654
+ * @type {string}
1655
+ */
1656
+ goog.ui.ServerChart.CHART_VALUES_EXTENDED = goog.ui.ServerChart.CHART_VALUES +
1657
+ '-.';
1658
+
1659
+
1660
+ /**
1661
+ * Upper bound for extended values
1662
+ */
1663
+ goog.ui.ServerChart.EXTENDED_UPPER_BOUND =
1664
+ Math.pow(goog.ui.ServerChart.CHART_VALUES_EXTENDED.length, 2) - 1;
1665
+
1666
+
1667
+ /**
1668
+ * Converts a single number to an encoded data value suitable for ChartServer.
1669
+ * The TEXT encoding is the number in decimal; the SIMPLE encoding is a single
1670
+ * character, and the EXTENDED encoding is two characters. See
1671
+ * http://code.google.com/apis/chart/docs/data_formats.html for the detailed
1672
+ * specification of these encoding formats.
1673
+ *
1674
+ * @private
1675
+ * @param {?number} value The value to convert (null for a missing data point).
1676
+ * @param {number} minValue The minimum value (used for normalization).
1677
+ * @param {number} maxValue The maximum value (used for normalization).
1678
+ * @param {goog.ui.ServerChart.EncodingType} encoding The data encoding to use;
1679
+ * must not be AUTOMATIC.
1680
+ * @return {string} The encoded data value.
1681
+ */
1682
+ goog.ui.ServerChart.prototype.getConvertedValue_ = function(value,
1683
+ minValue,
1684
+ maxValue,
1685
+ encoding) {
1686
+ goog.asserts.assert(minValue <= maxValue,
1687
+ 'minValue should be less than or equal to maxValue');
1688
+ var isExtended = (encoding == goog.ui.ServerChart.EncodingType.EXTENDED);
1689
+
1690
+ if (goog.isNull(value) || !goog.isDef(value) || isNaN(value) ||
1691
+ value < minValue || value > maxValue) {
1692
+ return isExtended ? '__' : '_';
1693
+ }
1694
+
1695
+ if (encoding == goog.ui.ServerChart.EncodingType.TEXT) {
1696
+ return String(value);
1697
+ }
1698
+
1699
+ var frac = goog.ui.ServerChart.DEFAULT_NORMALIZATION;
1700
+ if (maxValue > minValue) {
1701
+ frac = (value - minValue) / (maxValue - minValue);
1702
+ // Previous checks of value ensure that 0 <= frac <= 1 at this point.
1703
+ }
1704
+
1705
+ if (isExtended) {
1706
+ var maxIndex = goog.ui.ServerChart.CHART_VALUES_EXTENDED.length;
1707
+ var upperBound = goog.ui.ServerChart.EXTENDED_UPPER_BOUND;
1708
+ var index1 = Math.floor(frac * upperBound / maxIndex);
1709
+ var index2 = Math.floor((frac * upperBound) % maxIndex);
1710
+ var extendedVals = goog.ui.ServerChart.CHART_VALUES_EXTENDED;
1711
+ return extendedVals.charAt(index1) + extendedVals.charAt(index2);
1712
+ }
1713
+
1714
+ var index = Math.round(frac * (goog.ui.ServerChart.CHART_VALUES.length - 1));
1715
+ return goog.ui.ServerChart.CHART_VALUES.charAt(index);
1716
+ };
1717
+
1718
+
1719
+ /**
1720
+ * Creates the chd string for chartserver.
1721
+ *
1722
+ * @private
1723
+ * @param {Array.<number>} values An array of numbers to graph.
1724
+ * @param {number} minValue The minimum value (used for normalization).
1725
+ * @param {number} maxValue The maximum value (used for normalization).
1726
+ * @param {goog.ui.ServerChart.EncodingType} encoding The data encoding to use;
1727
+ * must not be AUTOMATIC.
1728
+ * @return {string} The chd string for chartserver.
1729
+ */
1730
+ goog.ui.ServerChart.prototype.getChartServerValues_ = function(values,
1731
+ minValue,
1732
+ maxValue,
1733
+ encoding) {
1734
+ var s = [];
1735
+ for (var i = 0, valuesLen = values.length; i < valuesLen; ++i) {
1736
+ s.push(this.getConvertedValue_(values[i], minValue,
1737
+ maxValue, encoding));
1738
+ }
1739
+ return s.join(
1740
+ this.encodingType_ == goog.ui.ServerChart.EncodingType.TEXT ? ',' : '');
1741
+ };
1742
+
1743
+
1744
+ /**
1745
+ * Finds the minimum value in an array and returns it.
1746
+ * Needed because Math.min does not handle sparse arrays the way we want.
1747
+ *
1748
+ * @param {Array.<number?>} ary An array of values.
1749
+ * @return {number} The minimum value.
1750
+ * @private
1751
+ */
1752
+ goog.ui.ServerChart.prototype.arrayMin_ = function(ary) {
1753
+ var min = Infinity;
1754
+ for (var i = 0, aryLen = ary.length; i < aryLen; ++i) {
1755
+ var value = ary[i];
1756
+ if (value != null && value < min) {
1757
+ min = value;
1758
+ }
1759
+ }
1760
+ return min;
1761
+ };
1762
+
1763
+
1764
+ /**
1765
+ * Finds the maximum value in an array and returns it.
1766
+ * Needed because Math.max does not handle sparse arrays the way we want.
1767
+ *
1768
+ * @param {Array.<number?>} ary An array of values.
1769
+ * @return {number} The maximum value.
1770
+ * @private
1771
+ */
1772
+ goog.ui.ServerChart.prototype.arrayMax_ = function(ary) {
1773
+ var max = -Infinity;
1774
+ for (var i = 0, aryLen = ary.length; i < aryLen; ++i) {
1775
+ var value = ary[i];
1776
+ if (value != null && value > max) {
1777
+ max = value;
1778
+ }
1779
+ }
1780
+ return max;
1781
+ };
1782
+
1783
+
1784
+ /** @override */
1785
+ goog.ui.ServerChart.prototype.disposeInternal = function() {
1786
+ goog.ui.ServerChart.superClass_.disposeInternal.call(this);
1787
+ delete this.xLabels_;
1788
+ delete this.leftLabels_;
1789
+ delete this.rightLabels_;
1790
+ delete this.gridX_;
1791
+ delete this.gridY_;
1792
+ delete this.setColors_;
1793
+ delete this.setLegendTexts_;
1794
+ delete this.dataSets_;
1795
+ this.uri_ = null;
1796
+ delete this.minValue_;
1797
+ delete this.maxValue_;
1798
+ this.title_ = null;
1799
+ delete this.multiAxisType_;
1800
+ delete this.multiAxisLabelText_;
1801
+ delete this.multiAxisLabelPosition_;
1802
+ delete this.multiAxisRange_;
1803
+ delete this.multiAxisLabelStyle_;
1804
+ this.legend_ = null;
1805
+ };
1806
+
1807
+
1808
+ /**
1809
+ * Event types dispatched by the ServerChart object
1810
+ * @enum {string}
1811
+ */
1812
+ goog.ui.ServerChart.Event = {
1813
+ /**
1814
+ * Dispatched when the resulting URI reaches or exceeds the URI length limit.
1815
+ */
1816
+ URI_TOO_LONG: 'uritoolong'
1817
+ };
1818
+
1819
+
1820
+
1821
+ /**
1822
+ * Class for the event dispatched on the ServerChart when the resulting URI
1823
+ * exceeds the URI length limit.
1824
+ * @constructor
1825
+ * @param {string} uri The overly-long URI string.
1826
+ * @extends {goog.events.Event}
1827
+ */
1828
+ goog.ui.ServerChart.UriTooLongEvent = function(uri) {
1829
+ goog.events.Event.call(this, goog.ui.ServerChart.Event.URI_TOO_LONG);
1830
+
1831
+ /**
1832
+ * The overly-long URI string.
1833
+ * @type {string}
1834
+ */
1835
+ this.uri = uri;
1836
+ };
1837
+ goog.inherits(goog.ui.ServerChart.UriTooLongEvent, goog.events.Event);