k4compiler 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +20 -0
- data/.gitmodules +3 -0
- data/.rspec +2 -0
- data/Gemfile +4 -0
- data/Guardfile +8 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +1 -0
- data/k4compiler.gemspec +50 -0
- data/lib/k4compiler.rb +26 -0
- data/lib/k4compiler/compiler.rb +41 -0
- data/lib/k4compiler/compiler/base.rb +24 -0
- data/lib/k4compiler/compiler/closure.rb +96 -0
- data/lib/k4compiler/compiler/markdown.rb +78 -0
- data/lib/k4compiler/compiler/scss.rb +31 -0
- data/lib/k4compiler/config.rb +59 -0
- data/lib/k4compiler/version.rb +3 -0
- data/spec/k4compiler/compiler/base_spec.rb +40 -0
- data/spec/k4compiler/compiler/closure/compiled-src/hello-with-closure-compiled-script.js +18317 -0
- data/spec/k4compiler/compiler/closure/src/hello-compiled-script.js +15 -0
- data/spec/k4compiler/compiler/closure/src/hello-with-closure.js +15 -0
- data/spec/k4compiler/compiler/closure/src/hello.js +15 -0
- data/spec/k4compiler/compiler/closure_spec.rb +159 -0
- data/spec/k4compiler/compiler/markdown_spec.rb +153 -0
- data/spec/k4compiler/compiler/scss/_body.scss +5 -0
- data/spec/k4compiler/compiler/scss/sample.scss +9 -0
- data/spec/k4compiler/compiler/scss_spec.rb +70 -0
- data/spec/k4compiler/compiler_spec.rb +75 -0
- data/spec/k4compiler/config_spec.rb +116 -0
- data/spec/k4compiler_spec.rb +17 -0
- data/spec/spec_helper.rb +8 -0
- data/third_party/.gitkeep +1 -0
- data/third_party/closure-compiler-20130603/COPYING +202 -0
- data/third_party/closure-compiler-20130603/README +292 -0
- data/third_party/closure-compiler-20130603/compiler.jar +0 -0
- data/third_party/closure-library/.gitignore +12 -0
- data/third_party/closure-library/AUTHORS +17 -0
- data/third_party/closure-library/CONTRIBUTING +5 -0
- data/third_party/closure-library/LICENSE +176 -0
- data/third_party/closure-library/README +6 -0
- data/third_party/closure-library/all_tests.html +113 -0
- data/third_party/closure-library/alltests.js +16 -0
- data/third_party/closure-library/closure/bin/build/closurebuilder.py +262 -0
- data/third_party/closure-library/closure/bin/build/depstree.py +189 -0
- data/third_party/closure-library/closure/bin/build/depstree_test.py +127 -0
- data/third_party/closure-library/closure/bin/build/depswriter.py +202 -0
- data/third_party/closure-library/closure/bin/build/jscompiler.py +135 -0
- data/third_party/closure-library/closure/bin/build/jscompiler_test.py +120 -0
- data/third_party/closure-library/closure/bin/build/source.py +121 -0
- data/third_party/closure-library/closure/bin/build/source_test.py +134 -0
- data/third_party/closure-library/closure/bin/build/treescan.py +78 -0
- data/third_party/closure-library/closure/bin/calcdeps.py +590 -0
- data/third_party/closure-library/closure/bin/labs/code/generate_jsdoc.py +171 -0
- data/third_party/closure-library/closure/bin/labs/code/generate_jsdoc_test.py +167 -0
- data/third_party/closure-library/closure/bin/labs/code/run_py_tests.sh +28 -0
- data/third_party/closure-library/closure/bin/scopify.py +211 -0
- data/third_party/closure-library/closure/css/inlay/g-base.css +82 -0
- data/third_party/closure-library/closure/css/inlay/g-fixed.css +173 -0
- data/third_party/closure-library/closure/css/inlay/g-ratio.css +253 -0
- data/third_party/closure-library/closure/goog/a11y/aria/announcer.js +108 -0
- data/third_party/closure-library/closure/goog/a11y/aria/announcer_test.html +97 -0
- data/third_party/closure-library/closure/goog/a11y/aria/aria.js +362 -0
- data/third_party/closure-library/closure/goog/a11y/aria/aria_test.html +263 -0
- data/third_party/closure-library/closure/goog/a11y/aria/attributes.js +389 -0
- data/third_party/closure-library/closure/goog/a11y/aria/datatables.js +68 -0
- data/third_party/closure-library/closure/goog/a11y/aria/roles.js +216 -0
- data/third_party/closure-library/closure/goog/array/array.js +1507 -0
- data/third_party/closure-library/closure/goog/array/array_test.html +1674 -0
- data/third_party/closure-library/closure/goog/asserts/asserts.js +293 -0
- data/third_party/closure-library/closure/goog/asserts/asserts_test.html +178 -0
- data/third_party/closure-library/closure/goog/async/animationdelay.js +270 -0
- data/third_party/closure-library/closure/goog/async/animationdelay_test.html +93 -0
- data/third_party/closure-library/closure/goog/async/conditionaldelay.js +235 -0
- data/third_party/closure-library/closure/goog/async/conditionaldelay_test.html +227 -0
- data/third_party/closure-library/closure/goog/async/delay.js +177 -0
- data/third_party/closure-library/closure/goog/async/delay_test.html +148 -0
- data/third_party/closure-library/closure/goog/async/nexttick.js +174 -0
- data/third_party/closure-library/closure/goog/async/nexttick_test.html +137 -0
- data/third_party/closure-library/closure/goog/async/throttle.js +189 -0
- data/third_party/closure-library/closure/goog/async/throttle_test.html +102 -0
- data/third_party/closure-library/closure/goog/base.js +1593 -0
- data/third_party/closure-library/closure/goog/base_test.html +1206 -0
- data/third_party/closure-library/closure/goog/bootstrap/nodejs.js +91 -0
- data/third_party/closure-library/closure/goog/bootstrap/webworkers.js +37 -0
- data/third_party/closure-library/closure/goog/color/alpha.js +467 -0
- data/third_party/closure-library/closure/goog/color/alpha_test.html +301 -0
- data/third_party/closure-library/closure/goog/color/color.js +773 -0
- data/third_party/closure-library/closure/goog/color/color_test.html +661 -0
- data/third_party/closure-library/closure/goog/color/names.js +176 -0
- data/third_party/closure-library/closure/goog/crypt/aes.js +1027 -0
- data/third_party/closure-library/closure/goog/crypt/aes_test.html +593 -0
- data/third_party/closure-library/closure/goog/crypt/arc4.js +162 -0
- data/third_party/closure-library/closure/goog/crypt/arc4_test.html +63 -0
- data/third_party/closure-library/closure/goog/crypt/base64.js +272 -0
- data/third_party/closure-library/closure/goog/crypt/base64_test.html +117 -0
- data/third_party/closure-library/closure/goog/crypt/basen.js +242 -0
- data/third_party/closure-library/closure/goog/crypt/basen_test.html +167 -0
- data/third_party/closure-library/closure/goog/crypt/blobhasher.js +284 -0
- data/third_party/closure-library/closure/goog/crypt/blobhasher_test.html +385 -0
- data/third_party/closure-library/closure/goog/crypt/blockcipher.js +52 -0
- data/third_party/closure-library/closure/goog/crypt/cbc.js +150 -0
- data/third_party/closure-library/closure/goog/crypt/cbc_test.html +18 -0
- data/third_party/closure-library/closure/goog/crypt/cbc_test.js +100 -0
- data/third_party/closure-library/closure/goog/crypt/crypt.js +155 -0
- data/third_party/closure-library/closure/goog/crypt/crypt_perf.html +85 -0
- data/third_party/closure-library/closure/goog/crypt/crypt_test.html +98 -0
- data/third_party/closure-library/closure/goog/crypt/hash.js +62 -0
- data/third_party/closure-library/closure/goog/crypt/hash32.js +184 -0
- data/third_party/closure-library/closure/goog/crypt/hash32_test.html +287 -0
- data/third_party/closure-library/closure/goog/crypt/hashtester.js +243 -0
- data/third_party/closure-library/closure/goog/crypt/hmac.js +162 -0
- data/third_party/closure-library/closure/goog/crypt/hmac_test.html +113 -0
- data/third_party/closure-library/closure/goog/crypt/md5.js +429 -0
- data/third_party/closure-library/closure/goog/crypt/md5_perf.html +39 -0
- data/third_party/closure-library/closure/goog/crypt/md5_test.html +152 -0
- data/third_party/closure-library/closure/goog/crypt/pbkdf2.js +127 -0
- data/third_party/closure-library/closure/goog/crypt/pbkdf2_test.html +68 -0
- data/third_party/closure-library/closure/goog/crypt/sha1.js +275 -0
- data/third_party/closure-library/closure/goog/crypt/sha1_perf.html +40 -0
- data/third_party/closure-library/closure/goog/crypt/sha1_test.html +79 -0
- data/third_party/closure-library/closure/goog/crypt/sha2.js +275 -0
- data/third_party/closure-library/closure/goog/crypt/sha224.js +53 -0
- data/third_party/closure-library/closure/goog/crypt/sha224_perf.html +40 -0
- data/third_party/closure-library/closure/goog/crypt/sha224_test.html +57 -0
- data/third_party/closure-library/closure/goog/crypt/sha256.js +53 -0
- data/third_party/closure-library/closure/goog/crypt/sha256_perf.html +40 -0
- data/third_party/closure-library/closure/goog/crypt/sha256_test.html +66 -0
- data/third_party/closure-library/closure/goog/css/autocomplete.css +43 -0
- data/third_party/closure-library/closure/goog/css/bubble.css +84 -0
- data/third_party/closure-library/closure/goog/css/button.css +38 -0
- data/third_party/closure-library/closure/goog/css/charpicker.css +206 -0
- data/third_party/closure-library/closure/goog/css/checkbox.css +38 -0
- data/third_party/closure-library/closure/goog/css/colormenubutton.css +25 -0
- data/third_party/closure-library/closure/goog/css/colorpalette.css +54 -0
- data/third_party/closure-library/closure/goog/css/colorpicker-simplegrid.css +49 -0
- data/third_party/closure-library/closure/goog/css/combobox.css +54 -0
- data/third_party/closure-library/closure/goog/css/common.css +41 -0
- data/third_party/closure-library/closure/goog/css/css3button.css +77 -0
- data/third_party/closure-library/closure/goog/css/css3menubutton.css +23 -0
- data/third_party/closure-library/closure/goog/css/custombutton.css +164 -0
- data/third_party/closure-library/closure/goog/css/datepicker.css +148 -0
- data/third_party/closure-library/closure/goog/css/dialog.css +72 -0
- data/third_party/closure-library/closure/goog/css/dimensionpicker.css +47 -0
- data/third_party/closure-library/closure/goog/css/dragdropdetector.css +48 -0
- data/third_party/closure-library/closure/goog/css/editor/bubble.css +73 -0
- data/third_party/closure-library/closure/goog/css/editor/dialog.css +66 -0
- data/third_party/closure-library/closure/goog/css/editor/equationeditor.css +113 -0
- data/third_party/closure-library/closure/goog/css/editor/linkdialog.css +36 -0
- data/third_party/closure-library/closure/goog/css/editortoolbar.css +225 -0
- data/third_party/closure-library/closure/goog/css/filteredmenu.css +30 -0
- data/third_party/closure-library/closure/goog/css/filterobservingmenuitem.css +25 -0
- data/third_party/closure-library/closure/goog/css/flatbutton.css +64 -0
- data/third_party/closure-library/closure/goog/css/flatmenubutton.css +63 -0
- data/third_party/closure-library/closure/goog/css/hovercard.css +51 -0
- data/third_party/closure-library/closure/goog/css/hsvapalette.css +231 -0
- data/third_party/closure-library/closure/goog/css/hsvpalette.css +179 -0
- data/third_party/closure-library/closure/goog/css/imagelessbutton.css +160 -0
- data/third_party/closure-library/closure/goog/css/imagelessmenubutton.css +23 -0
- data/third_party/closure-library/closure/goog/css/inputdatepicker.css +12 -0
- data/third_party/closure-library/closure/goog/css/linkbutton.css +26 -0
- data/third_party/closure-library/closure/goog/css/menu.css +27 -0
- data/third_party/closure-library/closure/goog/css/menubar.css +57 -0
- data/third_party/closure-library/closure/goog/css/menubutton.css +169 -0
- data/third_party/closure-library/closure/goog/css/menuitem.css +148 -0
- data/third_party/closure-library/closure/goog/css/menuseparator.css +19 -0
- data/third_party/closure-library/closure/goog/css/multitestrunner.css +121 -0
- data/third_party/closure-library/closure/goog/css/offline.css +147 -0
- data/third_party/closure-library/closure/goog/css/palette.css +36 -0
- data/third_party/closure-library/closure/goog/css/popupdatepicker.css +17 -0
- data/third_party/closure-library/closure/goog/css/roundedpanel.css +29 -0
- data/third_party/closure-library/closure/goog/css/roundedtab.css +158 -0
- data/third_party/closure-library/closure/goog/css/submenu.css +38 -0
- data/third_party/closure-library/closure/goog/css/tab.css +105 -0
- data/third_party/closure-library/closure/goog/css/tabbar.css +52 -0
- data/third_party/closure-library/closure/goog/css/tablesorter.css +14 -0
- data/third_party/closure-library/closure/goog/css/toolbar.css +400 -0
- data/third_party/closure-library/closure/goog/css/tooltip.css +14 -0
- data/third_party/closure-library/closure/goog/css/tree.css +146 -0
- data/third_party/closure-library/closure/goog/css/tristatemenuitem.css +43 -0
- data/third_party/closure-library/closure/goog/cssom/cssom.js +449 -0
- data/third_party/closure-library/closure/goog/cssom/cssom_test.html +343 -0
- data/third_party/closure-library/closure/goog/cssom/cssom_test_import_1.css +11 -0
- data/third_party/closure-library/closure/goog/cssom/cssom_test_import_2.css +10 -0
- data/third_party/closure-library/closure/goog/cssom/cssom_test_link_1.css +10 -0
- data/third_party/closure-library/closure/goog/cssom/iframe/style.js +1023 -0
- data/third_party/closure-library/closure/goog/cssom/iframe/style_test.html +391 -0
- data/third_party/closure-library/closure/goog/cssom/iframe/style_test_import.css +10 -0
- data/third_party/closure-library/closure/goog/datasource/datamanager.js +559 -0
- data/third_party/closure-library/closure/goog/datasource/datasource.js +656 -0
- data/third_party/closure-library/closure/goog/datasource/datasource_test.html +265 -0
- data/third_party/closure-library/closure/goog/datasource/expr.js +544 -0
- data/third_party/closure-library/closure/goog/datasource/expr_test.html +97 -0
- data/third_party/closure-library/closure/goog/datasource/fastdatanode.js +811 -0
- data/third_party/closure-library/closure/goog/datasource/fastdatanode_test.html +254 -0
- data/third_party/closure-library/closure/goog/datasource/jsdatasource.js +460 -0
- data/third_party/closure-library/closure/goog/datasource/jsondatasource.js +148 -0
- data/third_party/closure-library/closure/goog/datasource/jsxmlhttpdatasource.js +195 -0
- data/third_party/closure-library/closure/goog/datasource/jsxmlhttpdatasource_test.html +94 -0
- data/third_party/closure-library/closure/goog/datasource/xmldatasource.js +415 -0
- data/third_party/closure-library/closure/goog/date/date.js +1718 -0
- data/third_party/closure-library/closure/goog/date/date_test.html +1392 -0
- data/third_party/closure-library/closure/goog/date/datelike.js +27 -0
- data/third_party/closure-library/closure/goog/date/daterange.js +413 -0
- data/third_party/closure-library/closure/goog/date/daterange_test.html +253 -0
- data/third_party/closure-library/closure/goog/date/relative.js +465 -0
- data/third_party/closure-library/closure/goog/date/relative_test.html +267 -0
- data/third_party/closure-library/closure/goog/date/utcdatetime.js +179 -0
- data/third_party/closure-library/closure/goog/date/utcdatetime_test.html +124 -0
- data/third_party/closure-library/closure/goog/db/cursor.js +214 -0
- data/third_party/closure-library/closure/goog/db/db.js +182 -0
- data/third_party/closure-library/closure/goog/db/db_test.html +1657 -0
- data/third_party/closure-library/closure/goog/db/error.js +359 -0
- data/third_party/closure-library/closure/goog/db/index.js +245 -0
- data/third_party/closure-library/closure/goog/db/indexeddb.js +337 -0
- data/third_party/closure-library/closure/goog/db/keyrange.js +117 -0
- data/third_party/closure-library/closure/goog/db/objectstore.js +399 -0
- data/third_party/closure-library/closure/goog/db/old_db_test.html +1244 -0
- data/third_party/closure-library/closure/goog/db/transaction.js +218 -0
- data/third_party/closure-library/closure/goog/debug/console.js +207 -0
- data/third_party/closure-library/closure/goog/debug/console_test.html +195 -0
- data/third_party/closure-library/closure/goog/debug/debug.js +501 -0
- data/third_party/closure-library/closure/goog/debug/debug_test.html +68 -0
- data/third_party/closure-library/closure/goog/debug/debugwindow.js +615 -0
- data/third_party/closure-library/closure/goog/debug/debugwindow_test.html +29 -0
- data/third_party/closure-library/closure/goog/debug/devcss/devcss.js +444 -0
- data/third_party/closure-library/closure/goog/debug/devcss/devcss_test.html +365 -0
- data/third_party/closure-library/closure/goog/debug/devcss/devcssrunner.js +26 -0
- data/third_party/closure-library/closure/goog/debug/divconsole.js +141 -0
- data/third_party/closure-library/closure/goog/debug/enhanceerror_test.html +138 -0
- data/third_party/closure-library/closure/goog/debug/entrypointregistry.js +158 -0
- data/third_party/closure-library/closure/goog/debug/entrypointregistry_test.html +87 -0
- data/third_party/closure-library/closure/goog/debug/error.js +51 -0
- data/third_party/closure-library/closure/goog/debug/error_test.html +101 -0
- data/third_party/closure-library/closure/goog/debug/errorhandler.js +363 -0
- data/third_party/closure-library/closure/goog/debug/errorhandler_async_test.html +112 -0
- data/third_party/closure-library/closure/goog/debug/errorhandler_test.html +292 -0
- data/third_party/closure-library/closure/goog/debug/errorhandlerweakdep.js +38 -0
- data/third_party/closure-library/closure/goog/debug/errorreporter.js +376 -0
- data/third_party/closure-library/closure/goog/debug/errorreporter_test.html +351 -0
- data/third_party/closure-library/closure/goog/debug/fancywindow.js +362 -0
- data/third_party/closure-library/closure/goog/debug/formatter.js +316 -0
- data/third_party/closure-library/closure/goog/debug/fpsdisplay.js +162 -0
- data/third_party/closure-library/closure/goog/debug/fpsdisplay_test.html +53 -0
- data/third_party/closure-library/closure/goog/debug/gcdiagnostics.js +143 -0
- data/third_party/closure-library/closure/goog/debug/logbuffer.js +147 -0
- data/third_party/closure-library/closure/goog/debug/logbuffer_test.html +105 -0
- data/third_party/closure-library/closure/goog/debug/logger.js +853 -0
- data/third_party/closure-library/closure/goog/debug/logger_test.html +208 -0
- data/third_party/closure-library/closure/goog/debug/logrecord.js +271 -0
- data/third_party/closure-library/closure/goog/debug/logrecordserializer.js +121 -0
- data/third_party/closure-library/closure/goog/debug/logrecordserializer_test.html +96 -0
- data/third_party/closure-library/closure/goog/debug/reflect.js +178 -0
- data/third_party/closure-library/closure/goog/debug/reflect_test.html +101 -0
- data/third_party/closure-library/closure/goog/debug/relativetimeprovider.js +83 -0
- data/third_party/closure-library/closure/goog/debug/tracer.js +724 -0
- data/third_party/closure-library/closure/goog/debug/tracer_test.html +57 -0
- data/third_party/closure-library/closure/goog/demos/advancedtooltip.html +78 -0
- data/third_party/closure-library/closure/goog/demos/animationqueue.html +149 -0
- data/third_party/closure-library/closure/goog/demos/autocomplete-basic.html +56 -0
- data/third_party/closure-library/closure/goog/demos/autocompleteremote.html +40 -0
- data/third_party/closure-library/closure/goog/demos/autocompleteremotedata.js +18 -0
- data/third_party/closure-library/closure/goog/demos/autocompleterichremote.html +137 -0
- data/third_party/closure-library/closure/goog/demos/autocompleterichremotedata.js +33 -0
- data/third_party/closure-library/closure/goog/demos/bidiinput.html +72 -0
- data/third_party/closure-library/closure/goog/demos/blobhasher.html +61 -0
- data/third_party/closure-library/closure/goog/demos/bubble.html +250 -0
- data/third_party/closure-library/closure/goog/demos/button.html +395 -0
- data/third_party/closure-library/closure/goog/demos/charcounter.html +57 -0
- data/third_party/closure-library/closure/goog/demos/charpicker.html +66 -0
- data/third_party/closure-library/closure/goog/demos/checkbox.html +122 -0
- data/third_party/closure-library/closure/goog/demos/color-contrast.html +60 -0
- data/third_party/closure-library/closure/goog/demos/colormenubutton.html +221 -0
- data/third_party/closure-library/closure/goog/demos/colorpicker.html +43 -0
- data/third_party/closure-library/closure/goog/demos/combobox.html +160 -0
- data/third_party/closure-library/closure/goog/demos/container.html +670 -0
- data/third_party/closure-library/closure/goog/demos/control.html +477 -0
- data/third_party/closure-library/closure/goog/demos/css/demo.css +75 -0
- data/third_party/closure-library/closure/goog/demos/css/emojipicker.css +36 -0
- data/third_party/closure-library/closure/goog/demos/css/emojisprite.css +92 -0
- data/third_party/closure-library/closure/goog/demos/css3button.html +166 -0
- data/third_party/closure-library/closure/goog/demos/css3menubutton.html +285 -0
- data/third_party/closure-library/closure/goog/demos/cssspriteanimation.html +80 -0
- data/third_party/closure-library/closure/goog/demos/datepicker.html +183 -0
- data/third_party/closure-library/closure/goog/demos/debug.html +118 -0
- data/third_party/closure-library/closure/goog/demos/depsgraph.html +220 -0
- data/third_party/closure-library/closure/goog/demos/dialog.html +156 -0
- data/third_party/closure-library/closure/goog/demos/dimensionpicker.html +108 -0
- data/third_party/closure-library/closure/goog/demos/dimensionpicker_rtl.html +123 -0
- data/third_party/closure-library/closure/goog/demos/dom_selection.html +88 -0
- data/third_party/closure-library/closure/goog/demos/drag.html +191 -0
- data/third_party/closure-library/closure/goog/demos/dragdrop.html +263 -0
- data/third_party/closure-library/closure/goog/demos/dragdropdetector.html +46 -0
- data/third_party/closure-library/closure/goog/demos/dragdropdetector_target.html +17 -0
- data/third_party/closure-library/closure/goog/demos/dragger.html +83 -0
- data/third_party/closure-library/closure/goog/demos/draglistgroup.html +273 -0
- data/third_party/closure-library/closure/goog/demos/dragscrollsupport.html +133 -0
- data/third_party/closure-library/closure/goog/demos/drilldownrow.html +78 -0
- data/third_party/closure-library/closure/goog/demos/editor/deps.js +21 -0
- data/third_party/closure-library/closure/goog/demos/editor/editor.html +139 -0
- data/third_party/closure-library/closure/goog/demos/editor/equationeditor.html +36 -0
- data/third_party/closure-library/closure/goog/demos/editor/equationeditor.js +40 -0
- data/third_party/closure-library/closure/goog/demos/editor/field_basic.html +74 -0
- data/third_party/closure-library/closure/goog/demos/editor/helloworld.html +91 -0
- data/third_party/closure-library/closure/goog/demos/editor/helloworld.js +81 -0
- data/third_party/closure-library/closure/goog/demos/editor/helloworld_test.html +75 -0
- data/third_party/closure-library/closure/goog/demos/editor/helloworlddialog.js +171 -0
- data/third_party/closure-library/closure/goog/demos/editor/helloworlddialog_test.html +100 -0
- data/third_party/closure-library/closure/goog/demos/editor/helloworlddialogplugin.js +116 -0
- data/third_party/closure-library/closure/goog/demos/editor/helloworlddialogplugin_test.html +198 -0
- data/third_party/closure-library/closure/goog/demos/editor/seamlessfield.html +106 -0
- data/third_party/closure-library/closure/goog/demos/editor/tableeditor.html +93 -0
- data/third_party/closure-library/closure/goog/demos/effects.html +162 -0
- data/third_party/closure-library/closure/goog/demos/emoji/200.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/201.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/202.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/203.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/204.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/205.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/206.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2BC.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2BD.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2BE.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2BF.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C0.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C1.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C2.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C3.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C4.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C5.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C6.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C7.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C8.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2C9.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2CA.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2CB.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2CC.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2CD.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2CE.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2CF.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D0.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D1.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D2.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D3.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D4.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D5.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D6.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D7.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D8.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2D9.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2DA.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2DB.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2DC.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2DD.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2DE.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2DF.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E0.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E1.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E2.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E3.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E4.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E5.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E6.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E7.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E8.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2E9.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2EA.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2EB.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2EC.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2ED.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2EE.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2EF.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F0.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F1.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F2.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F3.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F4.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F5.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F6.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F7.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F8.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2F9.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2FA.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2FB.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2FC.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2FD.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2FE.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/2FF.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/none.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/sprite.png +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/sprite2.png +0 -0
- data/third_party/closure-library/closure/goog/demos/emoji/unknown.gif +0 -0
- data/third_party/closure-library/closure/goog/demos/event-propagation.html +192 -0
- data/third_party/closure-library/closure/goog/demos/events.html +99 -0
- data/third_party/closure-library/closure/goog/demos/eventtarget.html +70 -0
- data/third_party/closure-library/closure/goog/demos/filedrophandler.html +65 -0
- data/third_party/closure-library/closure/goog/demos/filteredmenu.html +118 -0
- data/third_party/closure-library/closure/goog/demos/focushandler.html +58 -0
- data/third_party/closure-library/closure/goog/demos/fpsdisplay.html +50 -0
- data/third_party/closure-library/closure/goog/demos/fx/css3/transition.html +222 -0
- data/third_party/closure-library/closure/goog/demos/gauge.html +158 -0
- data/third_party/closure-library/closure/goog/demos/graphics/advancedcoordinates.html +141 -0
- data/third_party/closure-library/closure/goog/demos/graphics/advancedcoordinates2.html +130 -0
- data/third_party/closure-library/closure/goog/demos/graphics/basicelements.html +264 -0
- data/third_party/closure-library/closure/goog/demos/graphics/events.html +114 -0
- data/third_party/closure-library/closure/goog/demos/graphics/modifyelements.html +195 -0
- data/third_party/closure-library/closure/goog/demos/graphics/subpixel.html +80 -0
- data/third_party/closure-library/closure/goog/demos/graphics/tiger.html +105 -0
- data/third_party/closure-library/closure/goog/demos/graphics/tigerdata.js +2841 -0
- data/third_party/closure-library/closure/goog/demos/history1.html +132 -0
- data/third_party/closure-library/closure/goog/demos/history2.html +119 -0
- data/third_party/closure-library/closure/goog/demos/history3.html +116 -0
- data/third_party/closure-library/closure/goog/demos/history3js.html +48 -0
- data/third_party/closure-library/closure/goog/demos/history_blank.html +26 -0
- data/third_party/closure-library/closure/goog/demos/hovercard.html +177 -0
- data/third_party/closure-library/closure/goog/demos/hsvapalette.html +55 -0
- data/third_party/closure-library/closure/goog/demos/hsvpalette.html +56 -0
- data/third_party/closure-library/closure/goog/demos/html5history.html +87 -0
- data/third_party/closure-library/closure/goog/demos/imagelessbutton.html +221 -0
- data/third_party/closure-library/closure/goog/demos/imagelessmenubutton.html +285 -0
- data/third_party/closure-library/closure/goog/demos/index.html +20 -0
- data/third_party/closure-library/closure/goog/demos/index_nav.html +255 -0
- data/third_party/closure-library/closure/goog/demos/index_splash.html +27 -0
- data/third_party/closure-library/closure/goog/demos/inline_block_quirks.html +125 -0
- data/third_party/closure-library/closure/goog/demos/inline_block_standards.html +126 -0
- data/third_party/closure-library/closure/goog/demos/inputdatepicker.html +60 -0
- data/third_party/closure-library/closure/goog/demos/inputhandler.html +88 -0
- data/third_party/closure-library/closure/goog/demos/jsonprettyprinter.html +80 -0
- data/third_party/closure-library/closure/goog/demos/keyboardshortcuts.html +112 -0
- data/third_party/closure-library/closure/goog/demos/keyhandler.html +118 -0
- data/third_party/closure-library/closure/goog/demos/labelinput.html +42 -0
- data/third_party/closure-library/closure/goog/demos/menu.html +220 -0
- data/third_party/closure-library/closure/goog/demos/menubar.html +211 -0
- data/third_party/closure-library/closure/goog/demos/menubutton.html +380 -0
- data/third_party/closure-library/closure/goog/demos/menubutton_frame.html +27 -0
- data/third_party/closure-library/closure/goog/demos/menuitem.html +164 -0
- data/third_party/closure-library/closure/goog/demos/mousewheelhandler.html +109 -0
- data/third_party/closure-library/closure/goog/demos/offline.html +268 -0
- data/third_party/closure-library/closure/goog/demos/onlinehandler.html +79 -0
- data/third_party/closure-library/closure/goog/demos/palette.html +302 -0
- data/third_party/closure-library/closure/goog/demos/pastehandler.html +54 -0
- data/third_party/closure-library/closure/goog/demos/pixeldensitymonitor.html +51 -0
- data/third_party/closure-library/closure/goog/demos/plaintextspellchecker.html +106 -0
- data/third_party/closure-library/closure/goog/demos/popup.html +206 -0
- data/third_party/closure-library/closure/goog/demos/popupcolorpicker.html +49 -0
- data/third_party/closure-library/closure/goog/demos/popupdatepicker.html +53 -0
- data/third_party/closure-library/closure/goog/demos/popupemojipicker.html +407 -0
- data/third_party/closure-library/closure/goog/demos/popupmenu.html +116 -0
- data/third_party/closure-library/closure/goog/demos/progressbar.html +97 -0
- data/third_party/closure-library/closure/goog/demos/prompt.html +92 -0
- data/third_party/closure-library/closure/goog/demos/quadtree.html +107 -0
- data/third_party/closure-library/closure/goog/demos/ratings.html +121 -0
- data/third_party/closure-library/closure/goog/demos/richtextspellchecker.html +92 -0
- data/third_party/closure-library/closure/goog/demos/roundedpanel.html +139 -0
- data/third_party/closure-library/closure/goog/demos/samplecomponent.html +75 -0
- data/third_party/closure-library/closure/goog/demos/samplecomponent.js +197 -0
- data/third_party/closure-library/closure/goog/demos/scrollfloater.html +113 -0
- data/third_party/closure-library/closure/goog/demos/select.html +324 -0
- data/third_party/closure-library/closure/goog/demos/selectionmenubutton.html +186 -0
- data/third_party/closure-library/closure/goog/demos/serverchart.html +122 -0
- data/third_party/closure-library/closure/goog/demos/slider.html +128 -0
- data/third_party/closure-library/closure/goog/demos/splitbehavior.html +163 -0
- data/third_party/closure-library/closure/goog/demos/splitpane.html +243 -0
- data/third_party/closure-library/closure/goog/demos/stopevent.html +171 -0
- data/third_party/closure-library/closure/goog/demos/submenus.html +130 -0
- data/third_party/closure-library/closure/goog/demos/submenus2.html +150 -0
- data/third_party/closure-library/closure/goog/demos/tabbar.html +289 -0
- data/third_party/closure-library/closure/goog/demos/tablesorter.html +116 -0
- data/third_party/closure-library/closure/goog/demos/tabpane.html +302 -0
- data/third_party/closure-library/closure/goog/demos/textarea.html +128 -0
- data/third_party/closure-library/closure/goog/demos/timers.html +291 -0
- data/third_party/closure-library/closure/goog/demos/toolbar.html +703 -0
- data/third_party/closure-library/closure/goog/demos/tooltip.html +91 -0
- data/third_party/closure-library/closure/goog/demos/tracer.html +92 -0
- data/third_party/closure-library/closure/goog/demos/tree/demo.html +126 -0
- data/third_party/closure-library/closure/goog/demos/tree/testdata.js +260 -0
- data/third_party/closure-library/closure/goog/demos/tweakui.html +121 -0
- data/third_party/closure-library/closure/goog/demos/twothumbslider.html +121 -0
- data/third_party/closure-library/closure/goog/demos/useragent.html +214 -0
- data/third_party/closure-library/closure/goog/demos/viewportsizemonitor.html +71 -0
- data/third_party/closure-library/closure/goog/demos/xpc/blank.html +7 -0
- data/third_party/closure-library/closure/goog/demos/xpc/index.html +89 -0
- data/third_party/closure-library/closure/goog/demos/xpc/inner.html +58 -0
- data/third_party/closure-library/closure/goog/demos/xpc/minimal/blank.html +7 -0
- data/third_party/closure-library/closure/goog/demos/xpc/minimal/index.html +105 -0
- data/third_party/closure-library/closure/goog/demos/xpc/minimal/inner.html +75 -0
- data/third_party/closure-library/closure/goog/demos/xpc/minimal/relay.html +7 -0
- data/third_party/closure-library/closure/goog/demos/xpc/relay.html +16 -0
- data/third_party/closure-library/closure/goog/demos/xpc/xpcdemo.js +307 -0
- data/third_party/closure-library/closure/goog/demos/zippy.html +149 -0
- data/third_party/closure-library/closure/goog/deps.js +911 -0
- data/third_party/closure-library/closure/goog/disposable/disposable.js +294 -0
- data/third_party/closure-library/closure/goog/disposable/disposable_test.html +307 -0
- data/third_party/closure-library/closure/goog/disposable/idisposable.js +45 -0
- data/third_party/closure-library/closure/goog/dom/a11y.js +169 -0
- data/third_party/closure-library/closure/goog/dom/abstractmultirange.js +77 -0
- data/third_party/closure-library/closure/goog/dom/abstractrange.js +528 -0
- data/third_party/closure-library/closure/goog/dom/abstractrange_test.html +73 -0
- data/third_party/closure-library/closure/goog/dom/annotate.js +355 -0
- data/third_party/closure-library/closure/goog/dom/annotate_test.html +215 -0
- data/third_party/closure-library/closure/goog/dom/browserfeature.js +67 -0
- data/third_party/closure-library/closure/goog/dom/browserrange/abstractrange.js +352 -0
- data/third_party/closure-library/closure/goog/dom/browserrange/browserrange.js +150 -0
- data/third_party/closure-library/closure/goog/dom/browserrange/browserrange_test.html +638 -0
- data/third_party/closure-library/closure/goog/dom/browserrange/geckorange.js +86 -0
- data/third_party/closure-library/closure/goog/dom/browserrange/ierange.js +952 -0
- data/third_party/closure-library/closure/goog/dom/browserrange/operarange.js +83 -0
- data/third_party/closure-library/closure/goog/dom/browserrange/w3crange.js +365 -0
- data/third_party/closure-library/closure/goog/dom/browserrange/webkitrange.js +112 -0
- data/third_party/closure-library/closure/goog/dom/bufferedviewportsizemonitor.js +202 -0
- data/third_party/closure-library/closure/goog/dom/bufferedviewportsizemonitor_test.html +17 -0
- data/third_party/closure-library/closure/goog/dom/bufferedviewportsizemonitor_test.js +130 -0
- data/third_party/closure-library/closure/goog/dom/classes.js +227 -0
- data/third_party/closure-library/closure/goog/dom/classes_quirks_test.html +63 -0
- data/third_party/closure-library/closure/goog/dom/classes_test.html +64 -0
- data/third_party/closure-library/closure/goog/dom/classes_test.js +231 -0
- data/third_party/closure-library/closure/goog/dom/classlist.js +271 -0
- data/third_party/closure-library/closure/goog/dom/classlist_test.html +26 -0
- data/third_party/closure-library/closure/goog/dom/classlist_test.js +244 -0
- data/third_party/closure-library/closure/goog/dom/controlrange.js +505 -0
- data/third_party/closure-library/closure/goog/dom/controlrange_test.html +246 -0
- data/third_party/closure-library/closure/goog/dom/dataset.js +135 -0
- data/third_party/closure-library/closure/goog/dom/dataset_test.html +117 -0
- data/third_party/closure-library/closure/goog/dom/dom.js +2700 -0
- data/third_party/closure-library/closure/goog/dom/dom_quirks_test.html +113 -0
- data/third_party/closure-library/closure/goog/dom/dom_test.html +113 -0
- data/third_party/closure-library/closure/goog/dom/dom_test.js +1421 -0
- data/third_party/closure-library/closure/goog/dom/fontsizemonitor.js +159 -0
- data/third_party/closure-library/closure/goog/dom/fontsizemonitor_test.html +284 -0
- data/third_party/closure-library/closure/goog/dom/forms.js +414 -0
- data/third_party/closure-library/closure/goog/dom/forms_test.html +501 -0
- data/third_party/closure-library/closure/goog/dom/fullscreen.js +124 -0
- data/third_party/closure-library/closure/goog/dom/iframe.js +163 -0
- data/third_party/closure-library/closure/goog/dom/iframe_test.html +88 -0
- data/third_party/closure-library/closure/goog/dom/iter.js +127 -0
- data/third_party/closure-library/closure/goog/dom/iter_test.html +97 -0
- data/third_party/closure-library/closure/goog/dom/multirange.js +519 -0
- data/third_party/closure-library/closure/goog/dom/multirange_test.html +67 -0
- data/third_party/closure-library/closure/goog/dom/nodeiterator.js +86 -0
- data/third_party/closure-library/closure/goog/dom/nodeiterator_test.html +49 -0
- data/third_party/closure-library/closure/goog/dom/nodeoffset.js +112 -0
- data/third_party/closure-library/closure/goog/dom/nodeoffset_test.html +88 -0
- data/third_party/closure-library/closure/goog/dom/pattern/abstractpattern.js +60 -0
- data/third_party/closure-library/closure/goog/dom/pattern/allchildren.js +75 -0
- data/third_party/closure-library/closure/goog/dom/pattern/callback/callback.js +82 -0
- data/third_party/closure-library/closure/goog/dom/pattern/callback/counter.js +72 -0
- data/third_party/closure-library/closure/goog/dom/pattern/callback/test.js +77 -0
- data/third_party/closure-library/closure/goog/dom/pattern/childmatches.js +154 -0
- data/third_party/closure-library/closure/goog/dom/pattern/endtag.js +53 -0
- data/third_party/closure-library/closure/goog/dom/pattern/fulltag.js +93 -0
- data/third_party/closure-library/closure/goog/dom/pattern/matcher.js +150 -0
- data/third_party/closure-library/closure/goog/dom/pattern/matcher_test.html +204 -0
- data/third_party/closure-library/closure/goog/dom/pattern/nodetype.js +58 -0
- data/third_party/closure-library/closure/goog/dom/pattern/pattern.js +93 -0
- data/third_party/closure-library/closure/goog/dom/pattern/pattern_test.html +614 -0
- data/third_party/closure-library/closure/goog/dom/pattern/repeat.js +190 -0
- data/third_party/closure-library/closure/goog/dom/pattern/sequence.js +141 -0
- data/third_party/closure-library/closure/goog/dom/pattern/starttag.js +53 -0
- data/third_party/closure-library/closure/goog/dom/pattern/tag.js +150 -0
- data/third_party/closure-library/closure/goog/dom/pattern/text.js +70 -0
- data/third_party/closure-library/closure/goog/dom/range.js +226 -0
- data/third_party/closure-library/closure/goog/dom/range_test.html +735 -0
- data/third_party/closure-library/closure/goog/dom/rangeendpoint.js +32 -0
- data/third_party/closure-library/closure/goog/dom/savedcaretrange.js +215 -0
- data/third_party/closure-library/closure/goog/dom/savedcaretrange_test.html +257 -0
- data/third_party/closure-library/closure/goog/dom/savedrange.js +74 -0
- data/third_party/closure-library/closure/goog/dom/savedrange_test.html +61 -0
- data/third_party/closure-library/closure/goog/dom/selection.js +470 -0
- data/third_party/closure-library/closure/goog/dom/selection_test.html +329 -0
- data/third_party/closure-library/closure/goog/dom/tagiterator.js +367 -0
- data/third_party/closure-library/closure/goog/dom/tagiterator_test.html +589 -0
- data/third_party/closure-library/closure/goog/dom/tagname.js +159 -0
- data/third_party/closure-library/closure/goog/dom/tagname_test.html +37 -0
- data/third_party/closure-library/closure/goog/dom/textrange.js +630 -0
- data/third_party/closure-library/closure/goog/dom/textrange_test.html +342 -0
- data/third_party/closure-library/closure/goog/dom/textrangeiterator.js +244 -0
- data/third_party/closure-library/closure/goog/dom/textrangeiterator_test.html +142 -0
- data/third_party/closure-library/closure/goog/dom/vendor.js +62 -0
- data/third_party/closure-library/closure/goog/dom/vendor_test.html +202 -0
- data/third_party/closure-library/closure/goog/dom/viewportsizemonitor.js +180 -0
- data/third_party/closure-library/closure/goog/dom/viewportsizemonitor_test.html +138 -0
- data/third_party/closure-library/closure/goog/dom/xml.js +204 -0
- data/third_party/closure-library/closure/goog/dom/xml_test.html +103 -0
- data/third_party/closure-library/closure/goog/editor/browserfeature.js +273 -0
- data/third_party/closure-library/closure/goog/editor/browserfeature_test.html +124 -0
- data/third_party/closure-library/closure/goog/editor/clicktoeditwrapper.js +435 -0
- data/third_party/closure-library/closure/goog/editor/clicktoeditwrapper_test.html +137 -0
- data/third_party/closure-library/closure/goog/editor/command.js +76 -0
- data/third_party/closure-library/closure/goog/editor/contenteditablefield.js +110 -0
- data/third_party/closure-library/closure/goog/editor/contenteditablefield_test.html +62 -0
- data/third_party/closure-library/closure/goog/editor/defines.js +34 -0
- data/third_party/closure-library/closure/goog/editor/field.js +2725 -0
- data/third_party/closure-library/closure/goog/editor/field_test.html +32 -0
- data/third_party/closure-library/closure/goog/editor/field_test.js +1278 -0
- data/third_party/closure-library/closure/goog/editor/focus.js +32 -0
- data/third_party/closure-library/closure/goog/editor/focus_test.html +66 -0
- data/third_party/closure-library/closure/goog/editor/icontent.js +296 -0
- data/third_party/closure-library/closure/goog/editor/icontent_test.html +232 -0
- data/third_party/closure-library/closure/goog/editor/link.js +359 -0
- data/third_party/closure-library/closure/goog/editor/link_test.html +252 -0
- data/third_party/closure-library/closure/goog/editor/node.js +483 -0
- data/third_party/closure-library/closure/goog/editor/node_test.html +631 -0
- data/third_party/closure-library/closure/goog/editor/plugin.js +463 -0
- data/third_party/closure-library/closure/goog/editor/plugin_test.html +187 -0
- data/third_party/closure-library/closure/goog/editor/plugins/abstractbubbleplugin.js +630 -0
- data/third_party/closure-library/closure/goog/editor/plugins/abstractbubbleplugin_test.html +313 -0
- data/third_party/closure-library/closure/goog/editor/plugins/abstractdialogplugin.js +334 -0
- data/third_party/closure-library/closure/goog/editor/plugins/abstractdialogplugin_test.html +404 -0
- data/third_party/closure-library/closure/goog/editor/plugins/abstracttabhandler.js +78 -0
- data/third_party/closure-library/closure/goog/editor/plugins/abstracttabhandler_test.html +91 -0
- data/third_party/closure-library/closure/goog/editor/plugins/basictextformatter.js +1750 -0
- data/third_party/closure-library/closure/goog/editor/plugins/basictextformatter_test.html +1171 -0
- data/third_party/closure-library/closure/goog/editor/plugins/blockquote.js +479 -0
- data/third_party/closure-library/closure/goog/editor/plugins/blockquote_test.html +212 -0
- data/third_party/closure-library/closure/goog/editor/plugins/emoticons.js +88 -0
- data/third_party/closure-library/closure/goog/editor/plugins/emoticons_test.html +92 -0
- data/third_party/closure-library/closure/goog/editor/plugins/enterhandler.js +767 -0
- data/third_party/closure-library/closure/goog/editor/plugins/enterhandler_test.html +754 -0
- data/third_party/closure-library/closure/goog/editor/plugins/equationeditorbubble.js +153 -0
- data/third_party/closure-library/closure/goog/editor/plugins/equationeditorplugin.js +215 -0
- data/third_party/closure-library/closure/goog/editor/plugins/equationeditorplugin_test.html +120 -0
- data/third_party/closure-library/closure/goog/editor/plugins/firststrong.js +326 -0
- data/third_party/closure-library/closure/goog/editor/plugins/firststrong_test.html +411 -0
- data/third_party/closure-library/closure/goog/editor/plugins/headerformatter.js +95 -0
- data/third_party/closure-library/closure/goog/editor/plugins/headerformatter_test.html +100 -0
- data/third_party/closure-library/closure/goog/editor/plugins/linkbubble.js +562 -0
- data/third_party/closure-library/closure/goog/editor/plugins/linkbubble_test.html +375 -0
- data/third_party/closure-library/closure/goog/editor/plugins/linkdialogplugin.js +437 -0
- data/third_party/closure-library/closure/goog/editor/plugins/linkdialogplugin_test.html +740 -0
- data/third_party/closure-library/closure/goog/editor/plugins/linkshortcutplugin.js +63 -0
- data/third_party/closure-library/closure/goog/editor/plugins/linkshortcutplugin_test.html +70 -0
- data/third_party/closure-library/closure/goog/editor/plugins/listtabhandler.js +66 -0
- data/third_party/closure-library/closure/goog/editor/plugins/listtabhandler_test.html +177 -0
- data/third_party/closure-library/closure/goog/editor/plugins/loremipsum.js +188 -0
- data/third_party/closure-library/closure/goog/editor/plugins/loremipsum_test.html +169 -0
- data/third_party/closure-library/closure/goog/editor/plugins/removeformatting.js +779 -0
- data/third_party/closure-library/closure/goog/editor/plugins/removeformatting_test.html +961 -0
- data/third_party/closure-library/closure/goog/editor/plugins/spacestabhandler.js +93 -0
- data/third_party/closure-library/closure/goog/editor/plugins/spacestabhandler_test.html +186 -0
- data/third_party/closure-library/closure/goog/editor/plugins/tableeditor.js +472 -0
- data/third_party/closure-library/closure/goog/editor/plugins/tableeditor_test.html +299 -0
- data/third_party/closure-library/closure/goog/editor/plugins/tagonenterhandler.js +742 -0
- data/third_party/closure-library/closure/goog/editor/plugins/tagonenterhandler_test.html +549 -0
- data/third_party/closure-library/closure/goog/editor/plugins/undoredo.js +1015 -0
- data/third_party/closure-library/closure/goog/editor/plugins/undoredo_test.html +525 -0
- data/third_party/closure-library/closure/goog/editor/plugins/undoredomanager.js +337 -0
- data/third_party/closure-library/closure/goog/editor/plugins/undoredomanager_test.html +394 -0
- data/third_party/closure-library/closure/goog/editor/plugins/undoredostate.js +86 -0
- data/third_party/closure-library/closure/goog/editor/plugins/undoredostate_test.html +44 -0
- data/third_party/closure-library/closure/goog/editor/range.js +632 -0
- data/third_party/closure-library/closure/goog/editor/range_test.html +1004 -0
- data/third_party/closure-library/closure/goog/editor/seamlessfield.js +738 -0
- data/third_party/closure-library/closure/goog/editor/seamlessfield_quirks_test.html +28 -0
- data/third_party/closure-library/closure/goog/editor/seamlessfield_test.html +32 -0
- data/third_party/closure-library/closure/goog/editor/seamlessfield_test.js +472 -0
- data/third_party/closure-library/closure/goog/editor/style.js +222 -0
- data/third_party/closure-library/closure/goog/editor/style_test.html +177 -0
- data/third_party/closure-library/closure/goog/editor/table.js +567 -0
- data/third_party/closure-library/closure/goog/editor/table_test.html +529 -0
- data/third_party/closure-library/closure/goog/events/actioneventwrapper.js +136 -0
- data/third_party/closure-library/closure/goog/events/actioneventwrapper_test.html +211 -0
- data/third_party/closure-library/closure/goog/events/actionhandler.js +181 -0
- data/third_party/closure-library/closure/goog/events/actionhandler_test.html +82 -0
- data/third_party/closure-library/closure/goog/events/browserevent.js +411 -0
- data/third_party/closure-library/closure/goog/events/browserevent_test.html +161 -0
- data/third_party/closure-library/closure/goog/events/browserfeature.js +85 -0
- data/third_party/closure-library/closure/goog/events/event.js +154 -0
- data/third_party/closure-library/closure/goog/events/event_test.html +66 -0
- data/third_party/closure-library/closure/goog/events/eventhandler.js +291 -0
- data/third_party/closure-library/closure/goog/events/eventhandler_test.html +254 -0
- data/third_party/closure-library/closure/goog/events/events.js +1095 -0
- data/third_party/closure-library/closure/goog/events/events_test.html +659 -0
- data/third_party/closure-library/closure/goog/events/eventtarget.js +401 -0
- data/third_party/closure-library/closure/goog/events/eventtarget_test.html +70 -0
- data/third_party/closure-library/closure/goog/events/eventtarget_via_googevents_test.html +85 -0
- data/third_party/closure-library/closure/goog/events/eventtarget_via_w3cinterface_test.html +49 -0
- data/third_party/closure-library/closure/goog/events/eventtargettester.js +1028 -0
- data/third_party/closure-library/closure/goog/events/eventtype.js +165 -0
- data/third_party/closure-library/closure/goog/events/eventwrapper.js +66 -0
- data/third_party/closure-library/closure/goog/events/filedrophandler.js +221 -0
- data/third_party/closure-library/closure/goog/events/filedrophandler_test.html +258 -0
- data/third_party/closure-library/closure/goog/events/focushandler.js +106 -0
- data/third_party/closure-library/closure/goog/events/imehandler.js +363 -0
- data/third_party/closure-library/closure/goog/events/imehandler_test.html +269 -0
- data/third_party/closure-library/closure/goog/events/inputhandler.js +213 -0
- data/third_party/closure-library/closure/goog/events/keycodes.js +377 -0
- data/third_party/closure-library/closure/goog/events/keycodes_test.html +125 -0
- data/third_party/closure-library/closure/goog/events/keyhandler.js +556 -0
- data/third_party/closure-library/closure/goog/events/keyhandler_test.html +727 -0
- data/third_party/closure-library/closure/goog/events/keynames.js +132 -0
- data/third_party/closure-library/closure/goog/events/listenable.js +323 -0
- data/third_party/closure-library/closure/goog/events/listenable_test.html +31 -0
- data/third_party/closure-library/closure/goog/events/listener.js +131 -0
- data/third_party/closure-library/closure/goog/events/listenermap.js +299 -0
- data/third_party/closure-library/closure/goog/events/listenermap_test.html +19 -0
- data/third_party/closure-library/closure/goog/events/listenermap_test.js +116 -0
- data/third_party/closure-library/closure/goog/events/mousewheelhandler.js +295 -0
- data/third_party/closure-library/closure/goog/events/mousewheelhandler_test.html +385 -0
- data/third_party/closure-library/closure/goog/events/onlinehandler.js +162 -0
- data/third_party/closure-library/closure/goog/events/onlinelistener_test.html +160 -0
- data/third_party/closure-library/closure/goog/events/pastehandler.js +515 -0
- data/third_party/closure-library/closure/goog/events/pastehandler_test.html +414 -0
- data/third_party/closure-library/closure/goog/format/emailaddress.js +332 -0
- data/third_party/closure-library/closure/goog/format/emailaddress_test.html +192 -0
- data/third_party/closure-library/closure/goog/format/format.js +491 -0
- data/third_party/closure-library/closure/goog/format/format_test.html +302 -0
- data/third_party/closure-library/closure/goog/format/htmlprettyprinter.js +407 -0
- data/third_party/closure-library/closure/goog/format/htmlprettyprinter_test.html +205 -0
- data/third_party/closure-library/closure/goog/format/jsonprettyprinter.js +413 -0
- data/third_party/closure-library/closure/goog/format/jsonprettyprinter_test.html +111 -0
- data/third_party/closure-library/closure/goog/fs/entry.js +272 -0
- data/third_party/closure-library/closure/goog/fs/entryimpl.js +399 -0
- data/third_party/closure-library/closure/goog/fs/error.js +102 -0
- data/third_party/closure-library/closure/goog/fs/filereader.js +288 -0
- data/third_party/closure-library/closure/goog/fs/filesaver.js +176 -0
- data/third_party/closure-library/closure/goog/fs/filesystem.js +41 -0
- data/third_party/closure-library/closure/goog/fs/filesystemimpl.js +64 -0
- data/third_party/closure-library/closure/goog/fs/filewriter.js +110 -0
- data/third_party/closure-library/closure/goog/fs/fs.js +253 -0
- data/third_party/closure-library/closure/goog/fs/fs_test.html +754 -0
- data/third_party/closure-library/closure/goog/fs/progressevent.js +68 -0
- data/third_party/closure-library/closure/goog/functions/functions.js +255 -0
- data/third_party/closure-library/closure/goog/functions/functions_test.html +223 -0
- data/third_party/closure-library/closure/goog/fx/abstractdragdrop.js +1517 -0
- data/third_party/closure-library/closure/goog/fx/abstractdragdrop_test.html +663 -0
- data/third_party/closure-library/closure/goog/fx/anim/anim.js +210 -0
- data/third_party/closure-library/closure/goog/fx/anim/anim_test.html +225 -0
- data/third_party/closure-library/closure/goog/fx/animation.js +530 -0
- data/third_party/closure-library/closure/goog/fx/animation_test.html +117 -0
- data/third_party/closure-library/closure/goog/fx/animationqueue.js +307 -0
- data/third_party/closure-library/closure/goog/fx/animationqueue_test.html +316 -0
- data/third_party/closure-library/closure/goog/fx/css3/fx.js +62 -0
- data/third_party/closure-library/closure/goog/fx/css3/transition.js +196 -0
- data/third_party/closure-library/closure/goog/fx/css3/transition_test.html +224 -0
- data/third_party/closure-library/closure/goog/fx/cssspriteanimation.js +113 -0
- data/third_party/closure-library/closure/goog/fx/cssspriteanimation_test.html +126 -0
- data/third_party/closure-library/closure/goog/fx/dom.js +653 -0
- data/third_party/closure-library/closure/goog/fx/dragdrop.js +50 -0
- data/third_party/closure-library/closure/goog/fx/dragdropgroup.js +109 -0
- data/third_party/closure-library/closure/goog/fx/dragdropgroup_test.html +234 -0
- data/third_party/closure-library/closure/goog/fx/dragger.js +795 -0
- data/third_party/closure-library/closure/goog/fx/dragger_test.html +449 -0
- data/third_party/closure-library/closure/goog/fx/draglistgroup.js +1301 -0
- data/third_party/closure-library/closure/goog/fx/draglistgroup_test.html +403 -0
- data/third_party/closure-library/closure/goog/fx/dragscrollsupport.js +299 -0
- data/third_party/closure-library/closure/goog/fx/dragscrollsupport_test.html +354 -0
- data/third_party/closure-library/closure/goog/fx/easing.js +50 -0
- data/third_party/closure-library/closure/goog/fx/fx.js +32 -0
- data/third_party/closure-library/closure/goog/fx/fx_test.html +100 -0
- data/third_party/closure-library/closure/goog/fx/transition.js +75 -0
- data/third_party/closure-library/closure/goog/fx/transitionbase.js +237 -0
- data/third_party/closure-library/closure/goog/gears/basestore.js +521 -0
- data/third_party/closure-library/closure/goog/gears/basestore_test.html +247 -0
- data/third_party/closure-library/closure/goog/gears/database.js +934 -0
- data/third_party/closure-library/closure/goog/gears/database_test.html +699 -0
- data/third_party/closure-library/closure/goog/gears/gears.js +228 -0
- data/third_party/closure-library/closure/goog/gears/gears_test.html +78 -0
- data/third_party/closure-library/closure/goog/gears/httprequest.js +80 -0
- data/third_party/closure-library/closure/goog/gears/loggerclient.js +130 -0
- data/third_party/closure-library/closure/goog/gears/loggerclient_test.html +172 -0
- data/third_party/closure-library/closure/goog/gears/loggerserver.js +157 -0
- data/third_party/closure-library/closure/goog/gears/loggerserver_test.html +119 -0
- data/third_party/closure-library/closure/goog/gears/logstore.js +478 -0
- data/third_party/closure-library/closure/goog/gears/logstore_test.html +600 -0
- data/third_party/closure-library/closure/goog/gears/managedresourcestore.js +555 -0
- data/third_party/closure-library/closure/goog/gears/managedresourcestore_test.html +453 -0
- data/third_party/closure-library/closure/goog/gears/multipartformdata.js +204 -0
- data/third_party/closure-library/closure/goog/gears/multipartformdata_test.html +221 -0
- data/third_party/closure-library/closure/goog/gears/statustype.js +37 -0
- data/third_party/closure-library/closure/goog/gears/urlcapture.js +370 -0
- data/third_party/closure-library/closure/goog/gears/urlcapture_test.html +392 -0
- data/third_party/closure-library/closure/goog/gears/worker.js +200 -0
- data/third_party/closure-library/closure/goog/gears/workerchannel.js +205 -0
- data/third_party/closure-library/closure/goog/gears/workerchannel_test.html +207 -0
- data/third_party/closure-library/closure/goog/gears/workerpool.js +240 -0
- data/third_party/closure-library/closure/goog/gears/workerpool_test.html +204 -0
- data/third_party/closure-library/closure/goog/graphics/abstractgraphics.js +441 -0
- data/third_party/closure-library/closure/goog/graphics/affinetransform.js +587 -0
- data/third_party/closure-library/closure/goog/graphics/affinetransform_test.html +360 -0
- data/third_party/closure-library/closure/goog/graphics/canvaselement.js +792 -0
- data/third_party/closure-library/closure/goog/graphics/canvasgraphics.js +665 -0
- data/third_party/closure-library/closure/goog/graphics/element.js +151 -0
- data/third_party/closure-library/closure/goog/graphics/ellipseelement.js +64 -0
- data/third_party/closure-library/closure/goog/graphics/ext/coordinates.js +159 -0
- data/third_party/closure-library/closure/goog/graphics/ext/coordinates_test.html +74 -0
- data/third_party/closure-library/closure/goog/graphics/ext/element.js +968 -0
- data/third_party/closure-library/closure/goog/graphics/ext/element_test.html +144 -0
- data/third_party/closure-library/closure/goog/graphics/ext/ellipse.js +59 -0
- data/third_party/closure-library/closure/goog/graphics/ext/ext.js +29 -0
- data/third_party/closure-library/closure/goog/graphics/ext/graphics.js +215 -0
- data/third_party/closure-library/closure/goog/graphics/ext/group.js +215 -0
- data/third_party/closure-library/closure/goog/graphics/ext/image.js +63 -0
- data/third_party/closure-library/closure/goog/graphics/ext/path.js +142 -0
- data/third_party/closure-library/closure/goog/graphics/ext/path_test.html +46 -0
- data/third_party/closure-library/closure/goog/graphics/ext/rectangle.js +54 -0
- data/third_party/closure-library/closure/goog/graphics/ext/shape.js +146 -0
- data/third_party/closure-library/closure/goog/graphics/ext/strokeandfillelement.js +70 -0
- data/third_party/closure-library/closure/goog/graphics/fill.js +46 -0
- data/third_party/closure-library/closure/goog/graphics/font.js +63 -0
- data/third_party/closure-library/closure/goog/graphics/graphics.js +135 -0
- data/third_party/closure-library/closure/goog/graphics/groupelement.js +59 -0
- data/third_party/closure-library/closure/goog/graphics/imageelement.js +70 -0
- data/third_party/closure-library/closure/goog/graphics/lineargradient.js +174 -0
- data/third_party/closure-library/closure/goog/graphics/path.js +512 -0
- data/third_party/closure-library/closure/goog/graphics/path_test.html +359 -0
- data/third_party/closure-library/closure/goog/graphics/pathelement.js +55 -0
- data/third_party/closure-library/closure/goog/graphics/paths.js +86 -0
- data/third_party/closure-library/closure/goog/graphics/paths_test.html +98 -0
- data/third_party/closure-library/closure/goog/graphics/rectelement.js +64 -0
- data/third_party/closure-library/closure/goog/graphics/solidfill.js +74 -0
- data/third_party/closure-library/closure/goog/graphics/solidfill_test.html +53 -0
- data/third_party/closure-library/closure/goog/graphics/stroke.js +67 -0
- data/third_party/closure-library/closure/goog/graphics/strokeandfillelement.js +115 -0
- data/third_party/closure-library/closure/goog/graphics/svgelement.js +279 -0
- data/third_party/closure-library/closure/goog/graphics/svggraphics.js +857 -0
- data/third_party/closure-library/closure/goog/graphics/svggraphics_test.html +83 -0
- data/third_party/closure-library/closure/goog/graphics/textelement.js +56 -0
- data/third_party/closure-library/closure/goog/graphics/vmlelement.js +433 -0
- data/third_party/closure-library/closure/goog/graphics/vmlgraphics.js +893 -0
- data/third_party/closure-library/closure/goog/history/event.js +54 -0
- data/third_party/closure-library/closure/goog/history/eventtype.js +30 -0
- data/third_party/closure-library/closure/goog/history/history.js +998 -0
- data/third_party/closure-library/closure/goog/history/history_test.html +19 -0
- data/third_party/closure-library/closure/goog/history/history_test.js +54 -0
- data/third_party/closure-library/closure/goog/history/html5history.js +303 -0
- data/third_party/closure-library/closure/goog/history/html5history_test.html +163 -0
- data/third_party/closure-library/closure/goog/i18n/bidi.js +806 -0
- data/third_party/closure-library/closure/goog/i18n/bidi_test.html +425 -0
- data/third_party/closure-library/closure/goog/i18n/bidiformatter.js +490 -0
- data/third_party/closure-library/closure/goog/i18n/bidiformatter_test.html +343 -0
- data/third_party/closure-library/closure/goog/i18n/charlistdecompressor.js +157 -0
- data/third_party/closure-library/closure/goog/i18n/charlistdecompressor_test.html +65 -0
- data/third_party/closure-library/closure/goog/i18n/charpickerdata.js +3185 -0
- data/third_party/closure-library/closure/goog/i18n/collation.js +58 -0
- data/third_party/closure-library/closure/goog/i18n/collation_test.html +63 -0
- data/third_party/closure-library/closure/goog/i18n/compactnumberformatsymbols.js +7973 -0
- data/third_party/closure-library/closure/goog/i18n/compactnumberformatsymbols_ext.js +27549 -0
- data/third_party/closure-library/closure/goog/i18n/currency.js +424 -0
- data/third_party/closure-library/closure/goog/i18n/currency_test.html +204 -0
- data/third_party/closure-library/closure/goog/i18n/currencycodemap.js +210 -0
- data/third_party/closure-library/closure/goog/i18n/datetimeformat.js +673 -0
- data/third_party/closure-library/closure/goog/i18n/datetimeformat_test.html +532 -0
- data/third_party/closure-library/closure/goog/i18n/datetimeparse.js +1129 -0
- data/third_party/closure-library/closure/goog/i18n/datetimeparse_test.html +766 -0
- data/third_party/closure-library/closure/goog/i18n/datetimepatterns.js +1854 -0
- data/third_party/closure-library/closure/goog/i18n/datetimepatternsext.js +10947 -0
- data/third_party/closure-library/closure/goog/i18n/datetimesymbols.js +3713 -0
- data/third_party/closure-library/closure/goog/i18n/datetimesymbolsext.js +21152 -0
- data/third_party/closure-library/closure/goog/i18n/graphemebreak.js +214 -0
- data/third_party/closure-library/closure/goog/i18n/graphemebreak_test.html +80 -0
- data/third_party/closure-library/closure/goog/i18n/messageformat.js +771 -0
- data/third_party/closure-library/closure/goog/i18n/messageformat_test.html +471 -0
- data/third_party/closure-library/closure/goog/i18n/mime.js +111 -0
- data/third_party/closure-library/closure/goog/i18n/mime_test.html +51 -0
- data/third_party/closure-library/closure/goog/i18n/numberformat.js +1228 -0
- data/third_party/closure-library/closure/goog/i18n/numberformat_test.html +985 -0
- data/third_party/closure-library/closure/goog/i18n/numberformatsymbols.js +3416 -0
- data/third_party/closure-library/closure/goog/i18n/numberformatsymbolsext.js +11887 -0
- data/third_party/closure-library/closure/goog/i18n/ordinalrules.js +589 -0
- data/third_party/closure-library/closure/goog/i18n/pluralrules.js +859 -0
- data/third_party/closure-library/closure/goog/i18n/timezone.js +340 -0
- data/third_party/closure-library/closure/goog/i18n/timezone_test.html +163 -0
- data/third_party/closure-library/closure/goog/i18n/uchar.js +1368 -0
- data/third_party/closure-library/closure/goog/i18n/uchar/localnamefetcher.js +73 -0
- data/third_party/closure-library/closure/goog/i18n/uchar/localnamefetcher_test.html +62 -0
- data/third_party/closure-library/closure/goog/i18n/uchar/namefetcher.js +70 -0
- data/third_party/closure-library/closure/goog/i18n/uchar/remotenamefetcher.js +281 -0
- data/third_party/closure-library/closure/goog/i18n/uchar/remotenamefetcher_test.html +111 -0
- data/third_party/closure-library/closure/goog/i18n/uchar_test.html +133 -0
- data/third_party/closure-library/closure/goog/images/blank.gif +0 -0
- data/third_party/closure-library/closure/goog/images/bubble_close.jpg +0 -0
- data/third_party/closure-library/closure/goog/images/bubble_left.gif +0 -0
- data/third_party/closure-library/closure/goog/images/bubble_right.gif +0 -0
- data/third_party/closure-library/closure/goog/images/button-bg.gif +0 -0
- data/third_party/closure-library/closure/goog/images/check-outline.gif +0 -0
- data/third_party/closure-library/closure/goog/images/check-sprite.gif +0 -0
- data/third_party/closure-library/closure/goog/images/check.gif +0 -0
- data/third_party/closure-library/closure/goog/images/close_box.gif +0 -0
- data/third_party/closure-library/closure/goog/images/color-swatch-tick.gif +0 -0
- data/third_party/closure-library/closure/goog/images/dialog_close_box.gif +0 -0
- data/third_party/closure-library/closure/goog/images/dimension-highlighted.png +0 -0
- data/third_party/closure-library/closure/goog/images/dimension-unhighlighted.png +0 -0
- data/third_party/closure-library/closure/goog/images/dropdn.gif +0 -0
- data/third_party/closure-library/closure/goog/images/dropdn_disabled.gif +0 -0
- data/third_party/closure-library/closure/goog/images/dropdown.gif +0 -0
- data/third_party/closure-library/closure/goog/images/gears_bluedot.gif +0 -0
- data/third_party/closure-library/closure/goog/images/gears_offline.gif +0 -0
- data/third_party/closure-library/closure/goog/images/gears_online.gif +0 -0
- data/third_party/closure-library/closure/goog/images/gears_paused.gif +0 -0
- data/third_party/closure-library/closure/goog/images/gears_syncing.gif +0 -0
- data/third_party/closure-library/closure/goog/images/hsv-sprite-sm.gif +0 -0
- data/third_party/closure-library/closure/goog/images/hsv-sprite-sm.png +0 -0
- data/third_party/closure-library/closure/goog/images/hsv-sprite.gif +0 -0
- data/third_party/closure-library/closure/goog/images/hsv-sprite.png +0 -0
- data/third_party/closure-library/closure/goog/images/hsva-sprite-sm.gif +0 -0
- data/third_party/closure-library/closure/goog/images/hsva-sprite-sm.png +0 -0
- data/third_party/closure-library/closure/goog/images/hsva-sprite.gif +0 -0
- data/third_party/closure-library/closure/goog/images/hsva-sprite.png +0 -0
- data/third_party/closure-library/closure/goog/images/left_anchor_bubble_bot.gif +0 -0
- data/third_party/closure-library/closure/goog/images/left_anchor_bubble_top.gif +0 -0
- data/third_party/closure-library/closure/goog/images/menu-arrows.gif +0 -0
- data/third_party/closure-library/closure/goog/images/minus.png +0 -0
- data/third_party/closure-library/closure/goog/images/no_anchor_bubble_bot.gif +0 -0
- data/third_party/closure-library/closure/goog/images/no_anchor_bubble_top.gif +0 -0
- data/third_party/closure-library/closure/goog/images/offlineicons.png +0 -0
- data/third_party/closure-library/closure/goog/images/plus.png +0 -0
- data/third_party/closure-library/closure/goog/images/ratingstars.gif +0 -0
- data/third_party/closure-library/closure/goog/images/right_anchor_bubble_bot.gif +0 -0
- data/third_party/closure-library/closure/goog/images/right_anchor_bubble_top.gif +0 -0
- data/third_party/closure-library/closure/goog/images/toolbar-bg.png +0 -0
- data/third_party/closure-library/closure/goog/images/toolbar-separator.gif +0 -0
- data/third_party/closure-library/closure/goog/images/toolbar_icons.gif +0 -0
- data/third_party/closure-library/closure/goog/images/tree/I.png +0 -0
- data/third_party/closure-library/closure/goog/images/tree/cleardot.gif +0 -0
- data/third_party/closure-library/closure/goog/images/tree/tree.gif +0 -0
- data/third_party/closure-library/closure/goog/images/tree/tree.png +0 -0
- data/third_party/closure-library/closure/goog/images/ui_controls.jpg +0 -0
- data/third_party/closure-library/closure/goog/iter/iter.js +702 -0
- data/third_party/closure-library/closure/goog/iter/iter_test.html +479 -0
- data/third_party/closure-library/closure/goog/json/evaljsonprocessor.js +66 -0
- data/third_party/closure-library/closure/goog/json/json.js +349 -0
- data/third_party/closure-library/closure/goog/json/json_perf.html +116 -0
- data/third_party/closure-library/closure/goog/json/json_test.html +569 -0
- data/third_party/closure-library/closure/goog/json/nativejsonprocessor.js +73 -0
- data/third_party/closure-library/closure/goog/json/processor.js +33 -0
- data/third_party/closure-library/closure/goog/json/processor_test.html +89 -0
- data/third_party/closure-library/closure/goog/labs/classdef/classdef.js +162 -0
- data/third_party/closure-library/closure/goog/labs/classdef/classdef_test.html +103 -0
- data/third_party/closure-library/closure/goog/labs/events/touch.js +82 -0
- data/third_party/closure-library/closure/goog/labs/events/touch_test.html +19 -0
- data/third_party/closure-library/closure/goog/labs/events/touch_test.js +96 -0
- data/third_party/closure-library/closure/goog/labs/format/csv.js +391 -0
- data/third_party/closure-library/closure/goog/labs/format/csv_test.html +20 -0
- data/third_party/closure-library/closure/goog/labs/format/csv_test.js +169 -0
- data/third_party/closure-library/closure/goog/labs/mock/mock.js +733 -0
- data/third_party/closure-library/closure/goog/labs/mock/mock_test.html +416 -0
- data/third_party/closure-library/closure/goog/labs/net/image.js +93 -0
- data/third_party/closure-library/closure/goog/labs/net/image_test.html +21 -0
- data/third_party/closure-library/closure/goog/labs/net/image_test.js +128 -0
- data/third_party/closure-library/closure/goog/labs/net/testdata/cleardot.gif +0 -0
- data/third_party/closure-library/closure/goog/labs/net/testdata/xhr_test_json.data +2 -0
- data/third_party/closure-library/closure/goog/labs/net/testdata/xhr_test_text.data +1 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel.js +188 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/basetestchannel.js +639 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/channel.js +195 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/requeststats.js +391 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelbase.js +2171 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelbase_test.html +22 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelbase_test.js +1400 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelbasetransport.js +274 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelbasetransport_test.html +228 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/webchanneldebug.js +298 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelrequest.js +1291 -0
- data/third_party/closure-library/closure/goog/labs/net/webchannel/webchannelrequest_test.html +287 -0
- data/third_party/closure-library/closure/goog/labs/net/webchanneltransport.js +74 -0
- data/third_party/closure-library/closure/goog/labs/net/webchanneltransportfactory.js +35 -0
- data/third_party/closure-library/closure/goog/labs/net/xhr.js +449 -0
- data/third_party/closure-library/closure/goog/labs/net/xhr_test.html +455 -0
- data/third_party/closure-library/closure/goog/labs/object/object.js +46 -0
- data/third_party/closure-library/closure/goog/labs/object/object_test.html +56 -0
- data/third_party/closure-library/closure/goog/labs/observe/notice.js +63 -0
- data/third_party/closure-library/closure/goog/labs/observe/observable.js +77 -0
- data/third_party/closure-library/closure/goog/labs/observe/observableset.js +180 -0
- data/third_party/closure-library/closure/goog/labs/observe/observableset_test.html +207 -0
- data/third_party/closure-library/closure/goog/labs/observe/observationset.js +156 -0
- data/third_party/closure-library/closure/goog/labs/observe/observationset_test.html +252 -0
- data/third_party/closure-library/closure/goog/labs/observe/observer.js +100 -0
- data/third_party/closure-library/closure/goog/labs/observe/observer_test.html +65 -0
- data/third_party/closure-library/closure/goog/labs/observe/simpleobservable.js +129 -0
- data/third_party/closure-library/closure/goog/labs/observe/simpleobservable_test.html +196 -0
- data/third_party/closure-library/closure/goog/labs/structs/map.js +339 -0
- data/third_party/closure-library/closure/goog/labs/structs/map_perf.js +201 -0
- data/third_party/closure-library/closure/goog/labs/structs/map_test.html +434 -0
- data/third_party/closure-library/closure/goog/labs/structs/multimap.js +279 -0
- data/third_party/closure-library/closure/goog/labs/structs/multimap_test.html +332 -0
- data/third_party/closure-library/closure/goog/labs/style/pixeldensitymonitor.js +178 -0
- data/third_party/closure-library/closure/goog/labs/style/pixeldensitymonitor_test.html +17 -0
- data/third_party/closure-library/closure/goog/labs/style/pixeldensitymonitor_test.js +146 -0
- data/third_party/closure-library/closure/goog/labs/testing/assertthat.js +59 -0
- data/third_party/closure-library/closure/goog/labs/testing/assertthat_test.html +73 -0
- data/third_party/closure-library/closure/goog/labs/testing/decoratormatcher.js +94 -0
- data/third_party/closure-library/closure/goog/labs/testing/decoratormatcher_test.html +43 -0
- data/third_party/closure-library/closure/goog/labs/testing/dictionarymatcher.js +266 -0
- data/third_party/closure-library/closure/goog/labs/testing/dictionarymatcher_test.html +70 -0
- data/third_party/closure-library/closure/goog/labs/testing/logicmatcher.js +206 -0
- data/third_party/closure-library/closure/goog/labs/testing/logicmatcher_test.html +59 -0
- data/third_party/closure-library/closure/goog/labs/testing/matcher.js +51 -0
- data/third_party/closure-library/closure/goog/labs/testing/numbermatcher.js +334 -0
- data/third_party/closure-library/closure/goog/labs/testing/numbermatcher_test.html +79 -0
- data/third_party/closure-library/closure/goog/labs/testing/objectmatcher.js +306 -0
- data/third_party/closure-library/closure/goog/labs/testing/objectmatcher_test.html +102 -0
- data/third_party/closure-library/closure/goog/labs/testing/stringmatcher.js +402 -0
- data/third_party/closure-library/closure/goog/labs/testing/stringmatcher_test.html +101 -0
- data/third_party/closure-library/closure/goog/labs/useragent/browser.js +189 -0
- data/third_party/closure-library/closure/goog/labs/useragent/browser_test.html +21 -0
- data/third_party/closure-library/closure/goog/labs/useragent/browser_test.js +193 -0
- data/third_party/closure-library/closure/goog/labs/useragent/device.js +64 -0
- data/third_party/closure-library/closure/goog/labs/useragent/device_test.html +21 -0
- data/third_party/closure-library/closure/goog/labs/useragent/device_test.js +88 -0
- data/third_party/closure-library/closure/goog/labs/useragent/engine.js +144 -0
- data/third_party/closure-library/closure/goog/labs/useragent/engine_test.html +21 -0
- data/third_party/closure-library/closure/goog/labs/useragent/engine_test.js +164 -0
- data/third_party/closure-library/closure/goog/labs/useragent/platform.js +193 -0
- data/third_party/closure-library/closure/goog/labs/useragent/platform_test.html +21 -0
- data/third_party/closure-library/closure/goog/labs/useragent/platform_test.js +256 -0
- data/third_party/closure-library/closure/goog/labs/useragent/test_agents.js +272 -0
- data/third_party/closure-library/closure/goog/labs/useragent/util.js +89 -0
- data/third_party/closure-library/closure/goog/labs/useragent/util_test.html +22 -0
- data/third_party/closure-library/closure/goog/labs/useragent/util_test.js +60 -0
- data/third_party/closure-library/closure/goog/locale/countries.js +291 -0
- data/third_party/closure-library/closure/goog/locale/countrylanguagenames_test.html +237 -0
- data/third_party/closure-library/closure/goog/locale/defaultlocalenameconstants.js +907 -0
- data/third_party/closure-library/closure/goog/locale/genericfontnames.js +73 -0
- data/third_party/closure-library/closure/goog/locale/genericfontnames_test.html +97 -0
- data/third_party/closure-library/closure/goog/locale/genericfontnamesdata.js +327 -0
- data/third_party/closure-library/closure/goog/locale/locale.js +403 -0
- data/third_party/closure-library/closure/goog/locale/nativenameconstants.js +1354 -0
- data/third_party/closure-library/closure/goog/locale/scriptToLanguages.js +482 -0
- data/third_party/closure-library/closure/goog/locale/timezonedetection.js +117 -0
- data/third_party/closure-library/closure/goog/locale/timezonedetection_test.html +130 -0
- data/third_party/closure-library/closure/goog/locale/timezonefingerprint.js +248 -0
- data/third_party/closure-library/closure/goog/locale/timezonelist.js +131 -0
- data/third_party/closure-library/closure/goog/locale/timezonelist_test.html +165 -0
- data/third_party/closure-library/closure/goog/log/log.js +183 -0
- data/third_party/closure-library/closure/goog/log/log_test.js +169 -0
- data/third_party/closure-library/closure/goog/math/bezier.js +311 -0
- data/third_party/closure-library/closure/goog/math/bezier_test.html +112 -0
- data/third_party/closure-library/closure/goog/math/box.js +369 -0
- data/third_party/closure-library/closure/goog/math/box_test.html +298 -0
- data/third_party/closure-library/closure/goog/math/coordinate.js +233 -0
- data/third_party/closure-library/closure/goog/math/coordinate3.js +169 -0
- data/third_party/closure-library/closure/goog/math/coordinate3_test.html +204 -0
- data/third_party/closure-library/closure/goog/math/coordinate_test.html +159 -0
- data/third_party/closure-library/closure/goog/math/exponentialbackoff.js +103 -0
- data/third_party/closure-library/closure/goog/math/exponentialbackoff_test.html +67 -0
- data/third_party/closure-library/closure/goog/math/integer.js +737 -0
- data/third_party/closure-library/closure/goog/math/integer_test.html +1653 -0
- data/third_party/closure-library/closure/goog/math/interpolator/interpolator1.js +64 -0
- data/third_party/closure-library/closure/goog/math/interpolator/linear1.js +82 -0
- data/third_party/closure-library/closure/goog/math/interpolator/linear1_test.html +87 -0
- data/third_party/closure-library/closure/goog/math/interpolator/pchip1.js +81 -0
- data/third_party/closure-library/closure/goog/math/interpolator/pchip1_test.html +74 -0
- data/third_party/closure-library/closure/goog/math/interpolator/spline1.js +202 -0
- data/third_party/closure-library/closure/goog/math/interpolator/spline1_test.html +103 -0
- data/third_party/closure-library/closure/goog/math/line.js +177 -0
- data/third_party/closure-library/closure/goog/math/line_test.html +62 -0
- data/third_party/closure-library/closure/goog/math/long.js +802 -0
- data/third_party/closure-library/closure/goog/math/long_test.html +1571 -0
- data/third_party/closure-library/closure/goog/math/math.js +387 -0
- data/third_party/closure-library/closure/goog/math/math_test.html +292 -0
- data/third_party/closure-library/closure/goog/math/matrix.js +675 -0
- data/third_party/closure-library/closure/goog/math/matrix_test.html +434 -0
- data/third_party/closure-library/closure/goog/math/range.js +144 -0
- data/third_party/closure-library/closure/goog/math/range_test.html +103 -0
- data/third_party/closure-library/closure/goog/math/rangeset.js +394 -0
- data/third_party/closure-library/closure/goog/math/rangeset_test.html +664 -0
- data/third_party/closure-library/closure/goog/math/rect.js +463 -0
- data/third_party/closure-library/closure/goog/math/rect_test.html +444 -0
- data/third_party/closure-library/closure/goog/math/size.js +206 -0
- data/third_party/closure-library/closure/goog/math/size_test.html +180 -0
- data/third_party/closure-library/closure/goog/math/tdma.js +73 -0
- data/third_party/closure-library/closure/goog/math/tdma_test.html +33 -0
- data/third_party/closure-library/closure/goog/math/vec2.js +283 -0
- data/third_party/closure-library/closure/goog/math/vec2_test.html +225 -0
- data/third_party/closure-library/closure/goog/math/vec3.js +308 -0
- data/third_party/closure-library/closure/goog/math/vec3_test.html +221 -0
- data/third_party/closure-library/closure/goog/memoize/memoize.js +102 -0
- data/third_party/closure-library/closure/goog/memoize/memoize_test.html +157 -0
- data/third_party/closure-library/closure/goog/messaging/abstractchannel.js +210 -0
- data/third_party/closure-library/closure/goog/messaging/abstractchannel_test.html +89 -0
- data/third_party/closure-library/closure/goog/messaging/bufferedchannel.js +287 -0
- data/third_party/closure-library/closure/goog/messaging/bufferedchannel_test.html +283 -0
- data/third_party/closure-library/closure/goog/messaging/deferredchannel.js +98 -0
- data/third_party/closure-library/closure/goog/messaging/deferredchannel_test.html +113 -0
- data/third_party/closure-library/closure/goog/messaging/loggerclient.js +131 -0
- data/third_party/closure-library/closure/goog/messaging/loggerclient_test.html +102 -0
- data/third_party/closure-library/closure/goog/messaging/loggerserver.js +98 -0
- data/third_party/closure-library/closure/goog/messaging/loggerserver_test.html +101 -0
- data/third_party/closure-library/closure/goog/messaging/messagechannel.js +116 -0
- data/third_party/closure-library/closure/goog/messaging/messaging.js +34 -0
- data/third_party/closure-library/closure/goog/messaging/messaging_test.html +42 -0
- data/third_party/closure-library/closure/goog/messaging/multichannel.js +302 -0
- data/third_party/closure-library/closure/goog/messaging/multichannel_test.html +122 -0
- data/third_party/closure-library/closure/goog/messaging/portcaller.js +151 -0
- data/third_party/closure-library/closure/goog/messaging/portcaller_test.html +65 -0
- data/third_party/closure-library/closure/goog/messaging/portchannel.js +401 -0
- data/third_party/closure-library/closure/goog/messaging/portchannel_test.html +392 -0
- data/third_party/closure-library/closure/goog/messaging/portnetwork.js +78 -0
- data/third_party/closure-library/closure/goog/messaging/portnetwork_test.html +74 -0
- data/third_party/closure-library/closure/goog/messaging/portoperator.js +197 -0
- data/third_party/closure-library/closure/goog/messaging/portoperator_test.html +112 -0
- data/third_party/closure-library/closure/goog/messaging/respondingchannel.js +236 -0
- data/third_party/closure-library/closure/goog/messaging/respondingchannel_test.html +161 -0
- data/third_party/closure-library/closure/goog/messaging/testdata/portchannel_inner.html +28 -0
- data/third_party/closure-library/closure/goog/messaging/testdata/portchannel_worker.js +37 -0
- data/third_party/closure-library/closure/goog/messaging/testdata/portchannel_wrong_origin_inner.html +29 -0
- data/third_party/closure-library/closure/goog/messaging/testdata/portnetwork_inner.html +34 -0
- data/third_party/closure-library/closure/goog/messaging/testdata/portnetwork_worker1.js +32 -0
- data/third_party/closure-library/closure/goog/messaging/testdata/portnetwork_worker2.js +32 -0
- data/third_party/closure-library/closure/goog/module/abstractmoduleloader.js +56 -0
- data/third_party/closure-library/closure/goog/module/basemodule.js +45 -0
- data/third_party/closure-library/closure/goog/module/loader.js +269 -0
- data/third_party/closure-library/closure/goog/module/module.js +166 -0
- data/third_party/closure-library/closure/goog/module/moduleinfo.js +335 -0
- data/third_party/closure-library/closure/goog/module/moduleinfo_test.html +108 -0
- data/third_party/closure-library/closure/goog/module/moduleloadcallback.js +84 -0
- data/third_party/closure-library/closure/goog/module/moduleloadcallback_test.html +57 -0
- data/third_party/closure-library/closure/goog/module/moduleloader.js +462 -0
- data/third_party/closure-library/closure/goog/module/moduleloader_test.html +30 -0
- data/third_party/closure-library/closure/goog/module/moduleloader_test.js +438 -0
- data/third_party/closure-library/closure/goog/module/modulemanager.js +1370 -0
- data/third_party/closure-library/closure/goog/module/modulemanager_test.html +2143 -0
- data/third_party/closure-library/closure/goog/module/testdata/modA_1.js +23 -0
- data/third_party/closure-library/closure/goog/module/testdata/modA_2.js +27 -0
- data/third_party/closure-library/closure/goog/module/testdata/modB_1.js +31 -0
- data/third_party/closure-library/closure/goog/net/browserchannel.js +2757 -0
- data/third_party/closure-library/closure/goog/net/browserchannel_test.html +1328 -0
- data/third_party/closure-library/closure/goog/net/browsertestchannel.js +618 -0
- data/third_party/closure-library/closure/goog/net/bulkloader.js +181 -0
- data/third_party/closure-library/closure/goog/net/bulkloader_test.html +233 -0
- data/third_party/closure-library/closure/goog/net/bulkloaderhelper.js +127 -0
- data/third_party/closure-library/closure/goog/net/channeldebug.js +300 -0
- data/third_party/closure-library/closure/goog/net/channelrequest.js +1312 -0
- data/third_party/closure-library/closure/goog/net/channelrequest_test.html +280 -0
- data/third_party/closure-library/closure/goog/net/cookies.js +370 -0
- data/third_party/closure-library/closure/goog/net/cookies_test.html +266 -0
- data/third_party/closure-library/closure/goog/net/crossdomainrpc.js +849 -0
- data/third_party/closure-library/closure/goog/net/crossdomainrpc_test.css +7 -0
- data/third_party/closure-library/closure/goog/net/crossdomainrpc_test.gif +0 -0
- data/third_party/closure-library/closure/goog/net/crossdomainrpc_test.html +120 -0
- data/third_party/closure-library/closure/goog/net/crossdomainrpc_test_response.html +59 -0
- data/third_party/closure-library/closure/goog/net/errorcode.js +130 -0
- data/third_party/closure-library/closure/goog/net/eventtype.js +37 -0
- data/third_party/closure-library/closure/goog/net/filedownloader.js +743 -0
- data/third_party/closure-library/closure/goog/net/filedownloader_test.html +372 -0
- data/third_party/closure-library/closure/goog/net/httpstatus.js +111 -0
- data/third_party/closure-library/closure/goog/net/iframe_xhr_test.html +147 -0
- data/third_party/closure-library/closure/goog/net/iframe_xhr_test_response.html +17 -0
- data/third_party/closure-library/closure/goog/net/iframeio.js +1355 -0
- data/third_party/closure-library/closure/goog/net/iframeio_different_base_test.data +2 -0
- data/third_party/closure-library/closure/goog/net/iframeio_different_base_test.html +44 -0
- data/third_party/closure-library/closure/goog/net/iframeio_test.html +402 -0
- data/third_party/closure-library/closure/goog/net/iframeloadmonitor.js +200 -0
- data/third_party/closure-library/closure/goog/net/iframeloadmonitor_test.html +113 -0
- data/third_party/closure-library/closure/goog/net/iframeloadmonitor_test_frame.html +12 -0
- data/third_party/closure-library/closure/goog/net/iframeloadmonitor_test_frame2.html +12 -0
- data/third_party/closure-library/closure/goog/net/iframeloadmonitor_test_frame3.html +12 -0
- data/third_party/closure-library/closure/goog/net/imageloader.js +292 -0
- data/third_party/closure-library/closure/goog/net/imageloader_test.html +302 -0
- data/third_party/closure-library/closure/goog/net/imageloader_testimg1.gif +0 -0
- data/third_party/closure-library/closure/goog/net/imageloader_testimg2.gif +0 -0
- data/third_party/closure-library/closure/goog/net/imageloader_testimg3.gif +0 -0
- data/third_party/closure-library/closure/goog/net/ipaddress.js +511 -0
- data/third_party/closure-library/closure/goog/net/ipaddress_test.html +227 -0
- data/third_party/closure-library/closure/goog/net/jsloader.js +366 -0
- data/third_party/closure-library/closure/goog/net/jsloader_test.html +142 -0
- data/third_party/closure-library/closure/goog/net/jsonp.js +338 -0
- data/third_party/closure-library/closure/goog/net/jsonp_test.html +327 -0
- data/third_party/closure-library/closure/goog/net/mockiframeio.js +319 -0
- data/third_party/closure-library/closure/goog/net/multiiframeloadmonitor.js +117 -0
- data/third_party/closure-library/closure/goog/net/multiiframeloadmonitor_test.html +172 -0
- data/third_party/closure-library/closure/goog/net/networkstatusmonitor.js +47 -0
- data/third_party/closure-library/closure/goog/net/networktester.js +383 -0
- data/third_party/closure-library/closure/goog/net/networktester_test.html +227 -0
- data/third_party/closure-library/closure/goog/net/testdata/jsloader_test1.js +23 -0
- data/third_party/closure-library/closure/goog/net/testdata/jsloader_test2.js +23 -0
- data/third_party/closure-library/closure/goog/net/testdata/jsloader_test3.js +23 -0
- data/third_party/closure-library/closure/goog/net/testdata/jsloader_test4.js +23 -0
- data/third_party/closure-library/closure/goog/net/tmpnetwork.js +164 -0
- data/third_party/closure-library/closure/goog/net/websocket.js +505 -0
- data/third_party/closure-library/closure/goog/net/websocket_test.html +367 -0
- data/third_party/closure-library/closure/goog/net/wrapperxmlhttpfactory.js +68 -0
- data/third_party/closure-library/closure/goog/net/xhrio.js +1191 -0
- data/third_party/closure-library/closure/goog/net/xhrio_test.html +732 -0
- data/third_party/closure-library/closure/goog/net/xhriopool.js +80 -0
- data/third_party/closure-library/closure/goog/net/xhrmanager.js +787 -0
- data/third_party/closure-library/closure/goog/net/xhrmanager_test.html +123 -0
- data/third_party/closure-library/closure/goog/net/xmlhttp.js +228 -0
- data/third_party/closure-library/closure/goog/net/xmlhttpfactory.js +64 -0
- data/third_party/closure-library/closure/goog/net/xpc/crosspagechannel.js +805 -0
- data/third_party/closure-library/closure/goog/net/xpc/crosspagechannel_test.html +1024 -0
- data/third_party/closure-library/closure/goog/net/xpc/crosspagechannelrole.js +30 -0
- data/third_party/closure-library/closure/goog/net/xpc/frameelementmethodtransport.js +254 -0
- data/third_party/closure-library/closure/goog/net/xpc/iframepollingtransport.js +921 -0
- data/third_party/closure-library/closure/goog/net/xpc/iframepollingtransport_test.html +295 -0
- data/third_party/closure-library/closure/goog/net/xpc/iframerelaytransport.js +394 -0
- data/third_party/closure-library/closure/goog/net/xpc/nativemessagingtransport.js +649 -0
- data/third_party/closure-library/closure/goog/net/xpc/nativemessagingtransport_test.html +304 -0
- data/third_party/closure-library/closure/goog/net/xpc/nixtransport.js +479 -0
- data/third_party/closure-library/closure/goog/net/xpc/relay.js +72 -0
- data/third_party/closure-library/closure/goog/net/xpc/testdata/access_checker.html +29 -0
- data/third_party/closure-library/closure/goog/net/xpc/testdata/inner_peer.html +96 -0
- data/third_party/closure-library/closure/goog/net/xpc/transport.js +105 -0
- data/third_party/closure-library/closure/goog/net/xpc/xpc.js +293 -0
- data/third_party/closure-library/closure/goog/object/object.js +635 -0
- data/third_party/closure-library/closure/goog/object/object_test.html +466 -0
- data/third_party/closure-library/closure/goog/positioning/absoluteposition.js +74 -0
- data/third_party/closure-library/closure/goog/positioning/abstractposition.js +48 -0
- data/third_party/closure-library/closure/goog/positioning/anchoredposition.js +92 -0
- data/third_party/closure-library/closure/goog/positioning/anchoredposition_test.html +77 -0
- data/third_party/closure-library/closure/goog/positioning/anchoredviewportposition.js +191 -0
- data/third_party/closure-library/closure/goog/positioning/anchoredviewportposition_test.html +174 -0
- data/third_party/closure-library/closure/goog/positioning/anchoredviewportposition_test_iframe.html +35 -0
- data/third_party/closure-library/closure/goog/positioning/clientposition.js +88 -0
- data/third_party/closure-library/closure/goog/positioning/clientposition_test.html +22 -0
- data/third_party/closure-library/closure/goog/positioning/clientposition_test.js +122 -0
- data/third_party/closure-library/closure/goog/positioning/menuanchoredposition.js +71 -0
- data/third_party/closure-library/closure/goog/positioning/menuanchoredposition_test.html +119 -0
- data/third_party/closure-library/closure/goog/positioning/positioning.js +557 -0
- data/third_party/closure-library/closure/goog/positioning/positioning_test.html +199 -0
- data/third_party/closure-library/closure/goog/positioning/positioning_test.js +1168 -0
- data/third_party/closure-library/closure/goog/positioning/positioning_test_iframe1.html +16 -0
- data/third_party/closure-library/closure/goog/positioning/positioning_test_iframe2.html +13 -0
- data/third_party/closure-library/closure/goog/positioning/positioning_test_quirk.html +9 -0
- data/third_party/closure-library/closure/goog/positioning/positioning_test_standard.html +13 -0
- data/third_party/closure-library/closure/goog/positioning/viewportclientposition.js +121 -0
- data/third_party/closure-library/closure/goog/positioning/viewportclientposition_test.html +189 -0
- data/third_party/closure-library/closure/goog/positioning/viewportposition.js +64 -0
- data/third_party/closure-library/closure/goog/proto/proto.js +44 -0
- data/third_party/closure-library/closure/goog/proto/serializer.js +69 -0
- data/third_party/closure-library/closure/goog/proto/serializer_test.html +43 -0
- data/third_party/closure-library/closure/goog/proto2/descriptor.js +200 -0
- data/third_party/closure-library/closure/goog/proto2/descriptor_test.html +60 -0
- data/third_party/closure-library/closure/goog/proto2/fielddescriptor.js +291 -0
- data/third_party/closure-library/closure/goog/proto2/fielddescriptor_test.html +132 -0
- data/third_party/closure-library/closure/goog/proto2/lazydeserializer.js +70 -0
- data/third_party/closure-library/closure/goog/proto2/message.js +840 -0
- data/third_party/closure-library/closure/goog/proto2/message_test.html +467 -0
- data/third_party/closure-library/closure/goog/proto2/objectserializer.js +159 -0
- data/third_party/closure-library/closure/goog/proto2/objectserializer_test.html +489 -0
- data/third_party/closure-library/closure/goog/proto2/package_test.pb.js +166 -0
- data/third_party/closure-library/closure/goog/proto2/pbliteserializer.js +193 -0
- data/third_party/closure-library/closure/goog/proto2/pbliteserializer_test.html +504 -0
- data/third_party/closure-library/closure/goog/proto2/proto_test.html +693 -0
- data/third_party/closure-library/closure/goog/proto2/serializer.js +174 -0
- data/third_party/closure-library/closure/goog/proto2/test.pb.js +2876 -0
- data/third_party/closure-library/closure/goog/proto2/textformatserializer.js +995 -0
- data/third_party/closure-library/closure/goog/proto2/textformatserializer_test.html +21 -0
- data/third_party/closure-library/closure/goog/proto2/textformatserializer_test.js +629 -0
- data/third_party/closure-library/closure/goog/proto2/util.js +54 -0
- data/third_party/closure-library/closure/goog/pubsub/pubsub.js +326 -0
- data/third_party/closure-library/closure/goog/pubsub/pubsub_perf.html +298 -0
- data/third_party/closure-library/closure/goog/pubsub/pubsub_test.html +635 -0
- data/third_party/closure-library/closure/goog/reflect/reflect.js +77 -0
- data/third_party/closure-library/closure/goog/result/chain_test.html +236 -0
- data/third_party/closure-library/closure/goog/result/combine_test.html +229 -0
- data/third_party/closure-library/closure/goog/result/deferredadaptor.js +57 -0
- data/third_party/closure-library/closure/goog/result/deferredadaptor_test.html +86 -0
- data/third_party/closure-library/closure/goog/result/dependentresult.js +44 -0
- data/third_party/closure-library/closure/goog/result/result_interface.js +109 -0
- data/third_party/closure-library/closure/goog/result/resultutil.js +550 -0
- data/third_party/closure-library/closure/goog/result/resultutil_test.html +46 -0
- data/third_party/closure-library/closure/goog/result/simpleresult.js +217 -0
- data/third_party/closure-library/closure/goog/result/simpleresult_test.html +271 -0
- data/third_party/closure-library/closure/goog/result/transform_test.html +153 -0
- data/third_party/closure-library/closure/goog/result/wait_test.html +211 -0
- data/third_party/closure-library/closure/goog/soy/data.js +132 -0
- data/third_party/closure-library/closure/goog/soy/renderer.js +266 -0
- data/third_party/closure-library/closure/goog/soy/renderer_test.html +172 -0
- data/third_party/closure-library/closure/goog/soy/soy.js +205 -0
- data/third_party/closure-library/closure/goog/soy/soy_test.html +230 -0
- data/third_party/closure-library/closure/goog/soy/soy_test.js +175 -0
- data/third_party/closure-library/closure/goog/spell/spellcheck.js +475 -0
- data/third_party/closure-library/closure/goog/spell/spellcheck_test.html +112 -0
- data/third_party/closure-library/closure/goog/stats/basicstat.js +271 -0
- data/third_party/closure-library/closure/goog/stats/basicstat_test.html +167 -0
- data/third_party/closure-library/closure/goog/storage/collectablestorage.js +100 -0
- data/third_party/closure-library/closure/goog/storage/collectablestorage_test.html +76 -0
- data/third_party/closure-library/closure/goog/storage/encryptedstorage.js +201 -0
- data/third_party/closure-library/closure/goog/storage/encryptedstorage_test.html +160 -0
- data/third_party/closure-library/closure/goog/storage/errorcode.js +30 -0
- data/third_party/closure-library/closure/goog/storage/expiringstorage.js +142 -0
- data/third_party/closure-library/closure/goog/storage/expiringstorage_test.html +90 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/errorcode.js +31 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/errorhandlingmechanism.js +128 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/errorhandlingmechanism_test.html +83 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/html5localstorage.js +45 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/html5localstorage_test.html +60 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/html5sessionstorage.js +46 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/html5sessionstorage_test.html +61 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/html5webstorage.js +176 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/html5webstorage_test.html +122 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/ieuserdata.js +283 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/ieuserdata_test.html +78 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/iterablemechanism.js +86 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/iterablemechanismtester.js +117 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/mechanism.js +56 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/mechanismfactory.js +113 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/mechanismfactory_test.html +58 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/mechanismseparationtester.js +91 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/mechanismsharingtester.js +87 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/mechanismtester.js +200 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/prefixedmechanism.js +97 -0
- data/third_party/closure-library/closure/goog/storage/mechanism/prefixedmechanism_test.html +66 -0
- data/third_party/closure-library/closure/goog/storage/richstorage.js +149 -0
- data/third_party/closure-library/closure/goog/storage/richstorage_test.html +87 -0
- data/third_party/closure-library/closure/goog/storage/storage.js +111 -0
- data/third_party/closure-library/closure/goog/storage/storage_test.html +64 -0
- data/third_party/closure-library/closure/goog/storage/storage_test.js +60 -0
- data/third_party/closure-library/closure/goog/string/linkify.js +236 -0
- data/third_party/closure-library/closure/goog/string/linkify_test.html +441 -0
- data/third_party/closure-library/closure/goog/string/newlines.js +153 -0
- data/third_party/closure-library/closure/goog/string/newlines_test.html +19 -0
- data/third_party/closure-library/closure/goog/string/newlines_test.js +87 -0
- data/third_party/closure-library/closure/goog/string/parser.js +38 -0
- data/third_party/closure-library/closure/goog/string/path.js +169 -0
- data/third_party/closure-library/closure/goog/string/path_test.html +111 -0
- data/third_party/closure-library/closure/goog/string/string.js +1378 -0
- data/third_party/closure-library/closure/goog/string/string_test.html +19 -0
- data/third_party/closure-library/closure/goog/string/string_test.js +1173 -0
- data/third_party/closure-library/closure/goog/string/stringbuffer.js +103 -0
- data/third_party/closure-library/closure/goog/string/stringbuffer_test.html +101 -0
- data/third_party/closure-library/closure/goog/string/stringformat.js +251 -0
- data/third_party/closure-library/closure/goog/string/stringformat_test.html +223 -0
- data/third_party/closure-library/closure/goog/string/stringifier.js +38 -0
- data/third_party/closure-library/closure/goog/structs/avltree.js +835 -0
- data/third_party/closure-library/closure/goog/structs/avltree_test.html +303 -0
- data/third_party/closure-library/closure/goog/structs/circularbuffer.js +223 -0
- data/third_party/closure-library/closure/goog/structs/circularbuffer_test.html +105 -0
- data/third_party/closure-library/closure/goog/structs/collection.js +55 -0
- data/third_party/closure-library/closure/goog/structs/collection_test.html +57 -0
- data/third_party/closure-library/closure/goog/structs/heap.js +333 -0
- data/third_party/closure-library/closure/goog/structs/heap_test.html +220 -0
- data/third_party/closure-library/closure/goog/structs/inversionmap.js +159 -0
- data/third_party/closure-library/closure/goog/structs/inversionmap_test.html +157 -0
- data/third_party/closure-library/closure/goog/structs/linkedmap.js +473 -0
- data/third_party/closure-library/closure/goog/structs/linkedmap_test.html +300 -0
- data/third_party/closure-library/closure/goog/structs/map.js +449 -0
- data/third_party/closure-library/closure/goog/structs/map_test.html +430 -0
- data/third_party/closure-library/closure/goog/structs/node.js +74 -0
- data/third_party/closure-library/closure/goog/structs/pool.js +381 -0
- data/third_party/closure-library/closure/goog/structs/pool_test.html +291 -0
- data/third_party/closure-library/closure/goog/structs/prioritypool.js +184 -0
- data/third_party/closure-library/closure/goog/structs/prioritypool_test.html +588 -0
- data/third_party/closure-library/closure/goog/structs/priorityqueue.js +64 -0
- data/third_party/closure-library/closure/goog/structs/priorityqueue_test.html +179 -0
- data/third_party/closure-library/closure/goog/structs/quadtree.js +571 -0
- data/third_party/closure-library/closure/goog/structs/quadtree_test.html +179 -0
- data/third_party/closure-library/closure/goog/structs/queue.js +157 -0
- data/third_party/closure-library/closure/goog/structs/queue_test.html +140 -0
- data/third_party/closure-library/closure/goog/structs/set.js +274 -0
- data/third_party/closure-library/closure/goog/structs/set_perf.html +271 -0
- data/third_party/closure-library/closure/goog/structs/set_test.html +581 -0
- data/third_party/closure-library/closure/goog/structs/simplepool.js +205 -0
- data/third_party/closure-library/closure/goog/structs/stringset.js +403 -0
- data/third_party/closure-library/closure/goog/structs/stringset_test.html +265 -0
- data/third_party/closure-library/closure/goog/structs/structs.js +351 -0
- data/third_party/closure-library/closure/goog/structs/structs_test.html +1050 -0
- data/third_party/closure-library/closure/goog/structs/treenode.js +428 -0
- data/third_party/closure-library/closure/goog/structs/treenode_test.html +370 -0
- data/third_party/closure-library/closure/goog/structs/trie.js +368 -0
- data/third_party/closure-library/closure/goog/structs/trie_test.html +378 -0
- data/third_party/closure-library/closure/goog/style/bidi.js +182 -0
- data/third_party/closure-library/closure/goog/style/bidi_test.html +211 -0
- data/third_party/closure-library/closure/goog/style/cursor.js +115 -0
- data/third_party/closure-library/closure/goog/style/cursor_test.html +132 -0
- data/third_party/closure-library/closure/goog/style/style.js +2087 -0
- data/third_party/closure-library/closure/goog/style/style_quirks_test.html +530 -0
- data/third_party/closure-library/closure/goog/style/style_test.html +518 -0
- data/third_party/closure-library/closure/goog/style/style_test.js +2602 -0
- data/third_party/closure-library/closure/goog/style/style_test_iframe_quirk.html +27 -0
- data/third_party/closure-library/closure/goog/style/style_test_iframe_standard.html +30 -0
- data/third_party/closure-library/closure/goog/style/style_test_quirk.html +9 -0
- data/third_party/closure-library/closure/goog/style/style_test_standard.html +11 -0
- data/third_party/closure-library/closure/goog/style/style_webkit_scrollbars_test.html +79 -0
- data/third_party/closure-library/closure/goog/style/stylescrollbartester.js +78 -0
- data/third_party/closure-library/closure/goog/style/transition.js +138 -0
- data/third_party/closure-library/closure/goog/style/transition_test.html +124 -0
- data/third_party/closure-library/closure/goog/testing/asserts.js +1243 -0
- data/third_party/closure-library/closure/goog/testing/asserts_test.html +1150 -0
- data/third_party/closure-library/closure/goog/testing/async/mockcontrol.js +174 -0
- data/third_party/closure-library/closure/goog/testing/async/mockcontrol_test.html +223 -0
- data/third_party/closure-library/closure/goog/testing/asynctestcase.js +824 -0
- data/third_party/closure-library/closure/goog/testing/asynctestcase_async_test.html +102 -0
- data/third_party/closure-library/closure/goog/testing/asynctestcase_noasync_test.html +98 -0
- data/third_party/closure-library/closure/goog/testing/asynctestcase_test.html +58 -0
- data/third_party/closure-library/closure/goog/testing/benchmark.js +88 -0
- data/third_party/closure-library/closure/goog/testing/continuationtestcase.js +689 -0
- data/third_party/closure-library/closure/goog/testing/continuationtestcase_test.html +352 -0
- data/third_party/closure-library/closure/goog/testing/deferredtestcase.js +155 -0
- data/third_party/closure-library/closure/goog/testing/deferredtestcase_test.html +140 -0
- data/third_party/closure-library/closure/goog/testing/dom.js +608 -0
- data/third_party/closure-library/closure/goog/testing/dom_test.html +438 -0
- data/third_party/closure-library/closure/goog/testing/editor/dom.js +293 -0
- data/third_party/closure-library/closure/goog/testing/editor/dom_test.html +295 -0
- data/third_party/closure-library/closure/goog/testing/editor/fieldmock.js +99 -0
- data/third_party/closure-library/closure/goog/testing/editor/testhelper.js +176 -0
- data/third_party/closure-library/closure/goog/testing/editor/testhelper_test.html +177 -0
- data/third_party/closure-library/closure/goog/testing/events/eventobserver.js +86 -0
- data/third_party/closure-library/closure/goog/testing/events/eventobserver_test.html +70 -0
- data/third_party/closure-library/closure/goog/testing/events/events.js +713 -0
- data/third_party/closure-library/closure/goog/testing/events/events_test.html +614 -0
- data/third_party/closure-library/closure/goog/testing/events/matchers.js +41 -0
- data/third_party/closure-library/closure/goog/testing/events/matchers_test.html +40 -0
- data/third_party/closure-library/closure/goog/testing/events/onlinehandler.js +64 -0
- data/third_party/closure-library/closure/goog/testing/events/onlinehandler_test.html +89 -0
- data/third_party/closure-library/closure/goog/testing/expectedfailures.js +236 -0
- data/third_party/closure-library/closure/goog/testing/expectedfailures_test.html +122 -0
- data/third_party/closure-library/closure/goog/testing/fs/blob.js +116 -0
- data/third_party/closure-library/closure/goog/testing/fs/blob_test.html +65 -0
- data/third_party/closure-library/closure/goog/testing/fs/directoryentry_test.html +313 -0
- data/third_party/closure-library/closure/goog/testing/fs/entry.js +621 -0
- data/third_party/closure-library/closure/goog/testing/fs/entry_test.html +227 -0
- data/third_party/closure-library/closure/goog/testing/fs/file.js +52 -0
- data/third_party/closure-library/closure/goog/testing/fs/fileentry_test.html +93 -0
- data/third_party/closure-library/closure/goog/testing/fs/filereader.js +272 -0
- data/third_party/closure-library/closure/goog/testing/fs/filereader_test.html +236 -0
- data/third_party/closure-library/closure/goog/testing/fs/filesystem.js +63 -0
- data/third_party/closure-library/closure/goog/testing/fs/filewriter.js +261 -0
- data/third_party/closure-library/closure/goog/testing/fs/filewriter_test.html +325 -0
- data/third_party/closure-library/closure/goog/testing/fs/fs.js +147 -0
- data/third_party/closure-library/closure/goog/testing/fs/fs_test.html +53 -0
- data/third_party/closure-library/closure/goog/testing/fs/integration_test.html +223 -0
- data/third_party/closure-library/closure/goog/testing/fs/progressevent.js +81 -0
- data/third_party/closure-library/closure/goog/testing/functionmock.js +177 -0
- data/third_party/closure-library/closure/goog/testing/functionmock_test.html +511 -0
- data/third_party/closure-library/closure/goog/testing/graphics.js +64 -0
- data/third_party/closure-library/closure/goog/testing/i18n/asserts.js +77 -0
- data/third_party/closure-library/closure/goog/testing/i18n/asserts_test.html +19 -0
- data/third_party/closure-library/closure/goog/testing/i18n/asserts_test.js +67 -0
- data/third_party/closure-library/closure/goog/testing/jsunit.js +156 -0
- data/third_party/closure-library/closure/goog/testing/loosemock.js +240 -0
- data/third_party/closure-library/closure/goog/testing/loosemock_test.html +343 -0
- data/third_party/closure-library/closure/goog/testing/messaging/mockmessagechannel.js +79 -0
- data/third_party/closure-library/closure/goog/testing/messaging/mockmessageevent.js +100 -0
- data/third_party/closure-library/closure/goog/testing/messaging/mockmessageport.js +85 -0
- data/third_party/closure-library/closure/goog/testing/messaging/mockportnetwork.js +65 -0
- data/third_party/closure-library/closure/goog/testing/mock.js +619 -0
- data/third_party/closure-library/closure/goog/testing/mock_test.html +264 -0
- data/third_party/closure-library/closure/goog/testing/mockclassfactory.js +578 -0
- data/third_party/closure-library/closure/goog/testing/mockclassfactory_test.html +241 -0
- data/third_party/closure-library/closure/goog/testing/mockclock.js +520 -0
- data/third_party/closure-library/closure/goog/testing/mockclock_test.html +504 -0
- data/third_party/closure-library/closure/goog/testing/mockcontrol.js +219 -0
- data/third_party/closure-library/closure/goog/testing/mockcontrol_test.html +127 -0
- data/third_party/closure-library/closure/goog/testing/mockinterface.js +45 -0
- data/third_party/closure-library/closure/goog/testing/mockmatchers.js +395 -0
- data/third_party/closure-library/closure/goog/testing/mockmatchers_test.html +388 -0
- data/third_party/closure-library/closure/goog/testing/mockrandom.js +126 -0
- data/third_party/closure-library/closure/goog/testing/mockrandom_test.html +56 -0
- data/third_party/closure-library/closure/goog/testing/mockrange.js +66 -0
- data/third_party/closure-library/closure/goog/testing/mockrange_test.html +41 -0
- data/third_party/closure-library/closure/goog/testing/mockstorage.js +107 -0
- data/third_party/closure-library/closure/goog/testing/mockstorage_test.html +78 -0
- data/third_party/closure-library/closure/goog/testing/mockuseragent.js +141 -0
- data/third_party/closure-library/closure/goog/testing/mockuseragent_test.html +59 -0
- data/third_party/closure-library/closure/goog/testing/multitestrunner.js +1439 -0
- data/third_party/closure-library/closure/goog/testing/net/xhrio.js +709 -0
- data/third_party/closure-library/closure/goog/testing/net/xhrio_test.html +384 -0
- data/third_party/closure-library/closure/goog/testing/net/xhriopool.js +64 -0
- data/third_party/closure-library/closure/goog/testing/objectpropertystring.js +67 -0
- data/third_party/closure-library/closure/goog/testing/performancetable.css +46 -0
- data/third_party/closure-library/closure/goog/testing/performancetable.js +190 -0
- data/third_party/closure-library/closure/goog/testing/performancetimer.js +405 -0
- data/third_party/closure-library/closure/goog/testing/performancetimer_test.html +201 -0
- data/third_party/closure-library/closure/goog/testing/propertyreplacer.js +243 -0
- data/third_party/closure-library/closure/goog/testing/propertyreplacer_test.html +368 -0
- data/third_party/closure-library/closure/goog/testing/proto2/proto2.js +127 -0
- data/third_party/closure-library/closure/goog/testing/proto2/proto2_test.html +117 -0
- data/third_party/closure-library/closure/goog/testing/pseudorandom.js +179 -0
- data/third_party/closure-library/closure/goog/testing/pseudorandom_test.html +98 -0
- data/third_party/closure-library/closure/goog/testing/recordfunction.js +201 -0
- data/third_party/closure-library/closure/goog/testing/recordfunction_test.html +159 -0
- data/third_party/closure-library/closure/goog/testing/shardingtestcase.js +122 -0
- data/third_party/closure-library/closure/goog/testing/shardingtestcase_test.html +34 -0
- data/third_party/closure-library/closure/goog/testing/singleton.js +46 -0
- data/third_party/closure-library/closure/goog/testing/singleton_test.html +39 -0
- data/third_party/closure-library/closure/goog/testing/stacktrace.js +555 -0
- data/third_party/closure-library/closure/goog/testing/stacktrace_test.html +327 -0
- data/third_party/closure-library/closure/goog/testing/storage/fakemechanism.js +66 -0
- data/third_party/closure-library/closure/goog/testing/strictmock.js +128 -0
- data/third_party/closure-library/closure/goog/testing/strictmock_test.html +412 -0
- data/third_party/closure-library/closure/goog/testing/style/layoutasserts.js +310 -0
- data/third_party/closure-library/closure/goog/testing/style/layoutasserts_test.html +269 -0
- data/third_party/closure-library/closure/goog/testing/style/style.js +101 -0
- data/third_party/closure-library/closure/goog/testing/style/style_test.html +162 -0
- data/third_party/closure-library/closure/goog/testing/testcase.js +1233 -0
- data/third_party/closure-library/closure/goog/testing/testqueue.js +66 -0
- data/third_party/closure-library/closure/goog/testing/testrunner.js +399 -0
- data/third_party/closure-library/closure/goog/testing/ui/rendererasserts.js +56 -0
- data/third_party/closure-library/closure/goog/testing/ui/rendererasserts_test.html +52 -0
- data/third_party/closure-library/closure/goog/testing/ui/rendererharness.js +176 -0
- data/third_party/closure-library/closure/goog/testing/ui/style.js +137 -0
- data/third_party/closure-library/closure/goog/testing/ui/style_reference.html +27 -0
- data/third_party/closure-library/closure/goog/testing/ui/style_test.html +130 -0
- data/third_party/closure-library/closure/goog/timer/timer.js +291 -0
- data/third_party/closure-library/closure/goog/timer/timer_test.html +118 -0
- data/third_party/closure-library/closure/goog/tweak/entries.js +997 -0
- data/third_party/closure-library/closure/goog/tweak/entries_test.html +94 -0
- data/third_party/closure-library/closure/goog/tweak/registry.js +310 -0
- data/third_party/closure-library/closure/goog/tweak/registry_test.html +145 -0
- data/third_party/closure-library/closure/goog/tweak/testhelpers.js +119 -0
- data/third_party/closure-library/closure/goog/tweak/tweak.js +301 -0
- data/third_party/closure-library/closure/goog/tweak/tweakui.js +817 -0
- data/third_party/closure-library/closure/goog/tweak/tweakui_test.html +280 -0
- data/third_party/closure-library/closure/goog/ui/abstractspellchecker.js +1138 -0
- data/third_party/closure-library/closure/goog/ui/ac/ac.js +50 -0
- data/third_party/closure-library/closure/goog/ui/ac/ac_test.html +204 -0
- data/third_party/closure-library/closure/goog/ui/ac/arraymatcher.js +162 -0
- data/third_party/closure-library/closure/goog/ui/ac/arraymatcher_test.html +130 -0
- data/third_party/closure-library/closure/goog/ui/ac/autocomplete.js +919 -0
- data/third_party/closure-library/closure/goog/ui/ac/autocomplete_test.html +1613 -0
- data/third_party/closure-library/closure/goog/ui/ac/inputhandler.js +1308 -0
- data/third_party/closure-library/closure/goog/ui/ac/inputhandler_test.html +685 -0
- data/third_party/closure-library/closure/goog/ui/ac/remote.js +114 -0
- data/third_party/closure-library/closure/goog/ui/ac/remotearraymatcher.js +271 -0
- data/third_party/closure-library/closure/goog/ui/ac/remotearraymatcher_test.html +73 -0
- data/third_party/closure-library/closure/goog/ui/ac/renderer.js +1023 -0
- data/third_party/closure-library/closure/goog/ui/ac/renderer_test.html +606 -0
- data/third_party/closure-library/closure/goog/ui/ac/renderoptions.js +80 -0
- data/third_party/closure-library/closure/goog/ui/ac/richinputhandler.js +58 -0
- data/third_party/closure-library/closure/goog/ui/ac/richremote.js +107 -0
- data/third_party/closure-library/closure/goog/ui/ac/richremotearraymatcher.js +125 -0
- data/third_party/closure-library/closure/goog/ui/activitymonitor.js +347 -0
- data/third_party/closure-library/closure/goog/ui/activitymonitor_test.html +150 -0
- data/third_party/closure-library/closure/goog/ui/advancedtooltip.js +366 -0
- data/third_party/closure-library/closure/goog/ui/advancedtooltip_test.html +296 -0
- data/third_party/closure-library/closure/goog/ui/animatedzippy.js +199 -0
- data/third_party/closure-library/closure/goog/ui/animatedzippy_test.html +139 -0
- data/third_party/closure-library/closure/goog/ui/attachablemenu.js +473 -0
- data/third_party/closure-library/closure/goog/ui/bidiinput.js +178 -0
- data/third_party/closure-library/closure/goog/ui/bidiinput_test.html +131 -0
- data/third_party/closure-library/closure/goog/ui/bubble.js +472 -0
- data/third_party/closure-library/closure/goog/ui/button.js +213 -0
- data/third_party/closure-library/closure/goog/ui/button_perf.html +176 -0
- data/third_party/closure-library/closure/goog/ui/button_test.html +257 -0
- data/third_party/closure-library/closure/goog/ui/buttonrenderer.js +214 -0
- data/third_party/closure-library/closure/goog/ui/buttonrenderer_test.html +223 -0
- data/third_party/closure-library/closure/goog/ui/buttonside.js +41 -0
- data/third_party/closure-library/closure/goog/ui/charcounter.js +199 -0
- data/third_party/closure-library/closure/goog/ui/charpicker.js +880 -0
- data/third_party/closure-library/closure/goog/ui/charpicker_test.html +88 -0
- data/third_party/closure-library/closure/goog/ui/checkbox.js +269 -0
- data/third_party/closure-library/closure/goog/ui/checkbox_test.html +370 -0
- data/third_party/closure-library/closure/goog/ui/checkboxmenuitem.js +53 -0
- data/third_party/closure-library/closure/goog/ui/checkboxrenderer.js +171 -0
- data/third_party/closure-library/closure/goog/ui/colorbutton.js +58 -0
- data/third_party/closure-library/closure/goog/ui/colorbutton_test.html +70 -0
- data/third_party/closure-library/closure/goog/ui/colorbuttonrenderer.js +72 -0
- data/third_party/closure-library/closure/goog/ui/colormenubutton.js +215 -0
- data/third_party/closure-library/closure/goog/ui/colormenubuttonrenderer.js +144 -0
- data/third_party/closure-library/closure/goog/ui/colormenubuttonrenderer_test.html +88 -0
- data/third_party/closure-library/closure/goog/ui/colorpalette.js +177 -0
- data/third_party/closure-library/closure/goog/ui/colorpalette_test.html +174 -0
- data/third_party/closure-library/closure/goog/ui/colorpicker.js +344 -0
- data/third_party/closure-library/closure/goog/ui/colorsplitbehavior.js +60 -0
- data/third_party/closure-library/closure/goog/ui/combobox.js +961 -0
- data/third_party/closure-library/closure/goog/ui/combobox_test.html +292 -0
- data/third_party/closure-library/closure/goog/ui/component.js +1300 -0
- data/third_party/closure-library/closure/goog/ui/component_test.html +889 -0
- data/third_party/closure-library/closure/goog/ui/container.js +1322 -0
- data/third_party/closure-library/closure/goog/ui/container_perf.html +55 -0
- data/third_party/closure-library/closure/goog/ui/container_test.html +458 -0
- data/third_party/closure-library/closure/goog/ui/containerrenderer.js +371 -0
- data/third_party/closure-library/closure/goog/ui/containerrenderer_test.html +228 -0
- data/third_party/closure-library/closure/goog/ui/containerscroller.js +222 -0
- data/third_party/closure-library/closure/goog/ui/containerscroller_test.html +214 -0
- data/third_party/closure-library/closure/goog/ui/control.js +1387 -0
- data/third_party/closure-library/closure/goog/ui/control_perf.html +166 -0
- data/third_party/closure-library/closure/goog/ui/control_test.html +2142 -0
- data/third_party/closure-library/closure/goog/ui/controlcontent.js +28 -0
- data/third_party/closure-library/closure/goog/ui/controlrenderer.js +855 -0
- data/third_party/closure-library/closure/goog/ui/controlrenderer_test.html +1100 -0
- data/third_party/closure-library/closure/goog/ui/cookieeditor.js +183 -0
- data/third_party/closure-library/closure/goog/ui/cookieeditor_test.html +107 -0
- data/third_party/closure-library/closure/goog/ui/css3buttonrenderer.js +152 -0
- data/third_party/closure-library/closure/goog/ui/css3menubuttonrenderer.js +147 -0
- data/third_party/closure-library/closure/goog/ui/cssnames.js +29 -0
- data/third_party/closure-library/closure/goog/ui/custombutton.js +58 -0
- data/third_party/closure-library/closure/goog/ui/custombuttonrenderer.js +267 -0
- data/third_party/closure-library/closure/goog/ui/customcolorpalette.js +139 -0
- data/third_party/closure-library/closure/goog/ui/customcolorpalette_test.html +60 -0
- data/third_party/closure-library/closure/goog/ui/datepicker.js +1369 -0
- data/third_party/closure-library/closure/goog/ui/datepicker_test.html +252 -0
- data/third_party/closure-library/closure/goog/ui/datepickerrenderer.js +55 -0
- data/third_party/closure-library/closure/goog/ui/decorate.js +38 -0
- data/third_party/closure-library/closure/goog/ui/decorate_test.html +114 -0
- data/third_party/closure-library/closure/goog/ui/defaultdatepickerrenderer.js +202 -0
- data/third_party/closure-library/closure/goog/ui/dialog.js +1556 -0
- data/third_party/closure-library/closure/goog/ui/dialog_test.html +776 -0
- data/third_party/closure-library/closure/goog/ui/dimensionpicker.js +305 -0
- data/third_party/closure-library/closure/goog/ui/dimensionpicker_test.html +171 -0
- data/third_party/closure-library/closure/goog/ui/dimensionpickerrenderer.js +416 -0
- data/third_party/closure-library/closure/goog/ui/dimensionpickerrenderer_test.html +49 -0
- data/third_party/closure-library/closure/goog/ui/dragdropdetector.js +642 -0
- data/third_party/closure-library/closure/goog/ui/drilldownrow.js +486 -0
- data/third_party/closure-library/closure/goog/ui/drilldownrow_test.html +92 -0
- data/third_party/closure-library/closure/goog/ui/editor/abstractdialog.js +440 -0
- data/third_party/closure-library/closure/goog/ui/editor/abstractdialog_test.html +473 -0
- data/third_party/closure-library/closure/goog/ui/editor/bubble.js +525 -0
- data/third_party/closure-library/closure/goog/ui/editor/bubble_test.html +264 -0
- data/third_party/closure-library/closure/goog/ui/editor/defaulttoolbar.js +1065 -0
- data/third_party/closure-library/closure/goog/ui/editor/equationeditordialog.js +123 -0
- data/third_party/closure-library/closure/goog/ui/editor/equationeditorokevent.js +49 -0
- data/third_party/closure-library/closure/goog/ui/editor/linkdialog.js +1064 -0
- data/third_party/closure-library/closure/goog/ui/editor/linkdialog_test.html +653 -0
- data/third_party/closure-library/closure/goog/ui/editor/messages.js +123 -0
- data/third_party/closure-library/closure/goog/ui/editor/tabpane.js +198 -0
- data/third_party/closure-library/closure/goog/ui/editor/toolbarcontroller.js +295 -0
- data/third_party/closure-library/closure/goog/ui/editor/toolbarfactory.js +440 -0
- data/third_party/closure-library/closure/goog/ui/editor/toolbarfactory_test.html +73 -0
- data/third_party/closure-library/closure/goog/ui/emoji/emoji.js +72 -0
- data/third_party/closure-library/closure/goog/ui/emoji/emojipalette.js +288 -0
- data/third_party/closure-library/closure/goog/ui/emoji/emojipaletterenderer.js +208 -0
- data/third_party/closure-library/closure/goog/ui/emoji/emojipicker.js +804 -0
- data/third_party/closure-library/closure/goog/ui/emoji/emojipicker_test.html +913 -0
- data/third_party/closure-library/closure/goog/ui/emoji/fast_nonprogressive_emojipicker_test.html +256 -0
- data/third_party/closure-library/closure/goog/ui/emoji/fast_progressive_emojipicker_test.html +256 -0
- data/third_party/closure-library/closure/goog/ui/emoji/popupemojipicker.js +410 -0
- data/third_party/closure-library/closure/goog/ui/emoji/popupemojipicker_test.html +80 -0
- data/third_party/closure-library/closure/goog/ui/emoji/progressiveemojipaletterenderer.js +98 -0
- data/third_party/closure-library/closure/goog/ui/emoji/spriteinfo.js +212 -0
- data/third_party/closure-library/closure/goog/ui/emoji/spriteinfo_test.html +51 -0
- data/third_party/closure-library/closure/goog/ui/equation/arrowpalette.js +47 -0
- data/third_party/closure-library/closure/goog/ui/equation/changeevent.js +37 -0
- data/third_party/closure-library/closure/goog/ui/equation/comparisonpalette.js +56 -0
- data/third_party/closure-library/closure/goog/ui/equation/editorpane.js +93 -0
- data/third_party/closure-library/closure/goog/ui/equation/equationeditor.js +220 -0
- data/third_party/closure-library/closure/goog/ui/equation/equationeditordialog.js +137 -0
- data/third_party/closure-library/closure/goog/ui/equation/greekpalette.js +75 -0
- data/third_party/closure-library/closure/goog/ui/equation/imagerenderer.js +190 -0
- data/third_party/closure-library/closure/goog/ui/equation/mathpalette.js +55 -0
- data/third_party/closure-library/closure/goog/ui/equation/menupalette.js +86 -0
- data/third_party/closure-library/closure/goog/ui/equation/palette.js +288 -0
- data/third_party/closure-library/closure/goog/ui/equation/palettemanager.js +203 -0
- data/third_party/closure-library/closure/goog/ui/equation/symbolpalette.js +74 -0
- data/third_party/closure-library/closure/goog/ui/equation/texeditor.js +141 -0
- data/third_party/closure-library/closure/goog/ui/equation/texpane.js +444 -0
- data/third_party/closure-library/closure/goog/ui/filteredmenu.js +575 -0
- data/third_party/closure-library/closure/goog/ui/filteredmenu_test.html +321 -0
- data/third_party/closure-library/closure/goog/ui/filterobservingmenuitem.js +97 -0
- data/third_party/closure-library/closure/goog/ui/filterobservingmenuitemrenderer.js +62 -0
- data/third_party/closure-library/closure/goog/ui/flatbuttonrenderer.js +146 -0
- data/third_party/closure-library/closure/goog/ui/flatmenubuttonrenderer.js +238 -0
- data/third_party/closure-library/closure/goog/ui/formpost.js +109 -0
- data/third_party/closure-library/closure/goog/ui/formpost_test.html +105 -0
- data/third_party/closure-library/closure/goog/ui/gauge.js +1011 -0
- data/third_party/closure-library/closure/goog/ui/gaugetheme.js +169 -0
- data/third_party/closure-library/closure/goog/ui/hovercard.js +456 -0
- data/third_party/closure-library/closure/goog/ui/hovercard_test.html +360 -0
- data/third_party/closure-library/closure/goog/ui/hsvapalette.js +298 -0
- data/third_party/closure-library/closure/goog/ui/hsvapalette_test.html +152 -0
- data/third_party/closure-library/closure/goog/ui/hsvpalette.js +505 -0
- data/third_party/closure-library/closure/goog/ui/hsvpalette_test.html +219 -0
- data/third_party/closure-library/closure/goog/ui/idgenerator.js +57 -0
- data/third_party/closure-library/closure/goog/ui/idletimer.js +299 -0
- data/third_party/closure-library/closure/goog/ui/idletimer_test.html +100 -0
- data/third_party/closure-library/closure/goog/ui/iframemask.js +257 -0
- data/third_party/closure-library/closure/goog/ui/iframemask_test.html +230 -0
- data/third_party/closure-library/closure/goog/ui/imagelessbuttonrenderer.js +204 -0
- data/third_party/closure-library/closure/goog/ui/imagelessmenubuttonrenderer.js +207 -0
- data/third_party/closure-library/closure/goog/ui/inputdatepicker.js +305 -0
- data/third_party/closure-library/closure/goog/ui/inputdatepicker_test.html +111 -0
- data/third_party/closure-library/closure/goog/ui/itemevent.js +50 -0
- data/third_party/closure-library/closure/goog/ui/keyboardshortcuthandler.js +1017 -0
- data/third_party/closure-library/closure/goog/ui/keyboardshortcuthandler_test.html +702 -0
- data/third_party/closure-library/closure/goog/ui/labelinput.js +592 -0
- data/third_party/closure-library/closure/goog/ui/labelinput_test.html +252 -0
- data/third_party/closure-library/closure/goog/ui/linkbuttonrenderer.js +67 -0
- data/third_party/closure-library/closure/goog/ui/media/flashobject.js +631 -0
- data/third_party/closure-library/closure/goog/ui/media/flashobject_test.html +236 -0
- data/third_party/closure-library/closure/goog/ui/media/flickr.js +308 -0
- data/third_party/closure-library/closure/goog/ui/media/flickr_test.html +114 -0
- data/third_party/closure-library/closure/goog/ui/media/googlevideo.js +281 -0
- data/third_party/closure-library/closure/goog/ui/media/googlevideo_test.html +105 -0
- data/third_party/closure-library/closure/goog/ui/media/media.js +285 -0
- data/third_party/closure-library/closure/goog/ui/media/media_test.html +118 -0
- data/third_party/closure-library/closure/goog/ui/media/mediamodel.js +960 -0
- data/third_party/closure-library/closure/goog/ui/media/mediamodel_test.html +108 -0
- data/third_party/closure-library/closure/goog/ui/media/mp3.js +228 -0
- data/third_party/closure-library/closure/goog/ui/media/mp3_test.html +78 -0
- data/third_party/closure-library/closure/goog/ui/media/photo.js +142 -0
- data/third_party/closure-library/closure/goog/ui/media/photo_test.html +62 -0
- data/third_party/closure-library/closure/goog/ui/media/picasa.js +321 -0
- data/third_party/closure-library/closure/goog/ui/media/picasa_test.html +121 -0
- data/third_party/closure-library/closure/goog/ui/media/vimeo.js +276 -0
- data/third_party/closure-library/closure/goog/ui/media/vimeo_test.html +102 -0
- data/third_party/closure-library/closure/goog/ui/media/youtube.js +357 -0
- data/third_party/closure-library/closure/goog/ui/media/youtube_test.html +243 -0
- data/third_party/closure-library/closure/goog/ui/menu.js +476 -0
- data/third_party/closure-library/closure/goog/ui/menu_test.html +167 -0
- data/third_party/closure-library/closure/goog/ui/menubar.js +44 -0
- data/third_party/closure-library/closure/goog/ui/menubardecorator.js +35 -0
- data/third_party/closure-library/closure/goog/ui/menubarrenderer.js +74 -0
- data/third_party/closure-library/closure/goog/ui/menubase.js +190 -0
- data/third_party/closure-library/closure/goog/ui/menubutton.js +903 -0
- data/third_party/closure-library/closure/goog/ui/menubutton_test.html +637 -0
- data/third_party/closure-library/closure/goog/ui/menubutton_test_frame.html +41 -0
- data/third_party/closure-library/closure/goog/ui/menubuttonrenderer.js +266 -0
- data/third_party/closure-library/closure/goog/ui/menubuttonrenderer_test.html +179 -0
- data/third_party/closure-library/closure/goog/ui/menuheader.js +62 -0
- data/third_party/closure-library/closure/goog/ui/menuheaderrenderer.js +54 -0
- data/third_party/closure-library/closure/goog/ui/menuitem.js +233 -0
- data/third_party/closure-library/closure/goog/ui/menuitem_test.html +559 -0
- data/third_party/closure-library/closure/goog/ui/menuitemrenderer.js +358 -0
- data/third_party/closure-library/closure/goog/ui/menuitemrenderer_test.html +201 -0
- data/third_party/closure-library/closure/goog/ui/menurenderer.js +123 -0
- data/third_party/closure-library/closure/goog/ui/menuseparator.js +51 -0
- data/third_party/closure-library/closure/goog/ui/menuseparatorrenderer.js +113 -0
- data/third_party/closure-library/closure/goog/ui/menuseparatorrenderer_test.html +61 -0
- data/third_party/closure-library/closure/goog/ui/mockactivitymonitor.js +71 -0
- data/third_party/closure-library/closure/goog/ui/mockactivitymonitor_test.html +19 -0
- data/third_party/closure-library/closure/goog/ui/mockactivitymonitor_test.js +94 -0
- data/third_party/closure-library/closure/goog/ui/modalpopup.js +698 -0
- data/third_party/closure-library/closure/goog/ui/modalpopup_test.html +419 -0
- data/third_party/closure-library/closure/goog/ui/nativebuttonrenderer.js +207 -0
- data/third_party/closure-library/closure/goog/ui/nativebuttonrenderer_test.html +214 -0
- data/third_party/closure-library/closure/goog/ui/offlineinstalldialog.js +1089 -0
- data/third_party/closure-library/closure/goog/ui/offlinestatuscard.js +580 -0
- data/third_party/closure-library/closure/goog/ui/offlinestatuscomponent.js +540 -0
- data/third_party/closure-library/closure/goog/ui/option.js +68 -0
- data/third_party/closure-library/closure/goog/ui/palette.js +598 -0
- data/third_party/closure-library/closure/goog/ui/palette_test.html +135 -0
- data/third_party/closure-library/closure/goog/ui/paletterenderer.js +372 -0
- data/third_party/closure-library/closure/goog/ui/paletterenderer_test.html +83 -0
- data/third_party/closure-library/closure/goog/ui/plaintextspellchecker.js +672 -0
- data/third_party/closure-library/closure/goog/ui/plaintextspellchecker_test.html +239 -0
- data/third_party/closure-library/closure/goog/ui/popup.js +344 -0
- data/third_party/closure-library/closure/goog/ui/popup_test.html +137 -0
- data/third_party/closure-library/closure/goog/ui/popupbase.js +822 -0
- data/third_party/closure-library/closure/goog/ui/popupbase_test.html +484 -0
- data/third_party/closure-library/closure/goog/ui/popupcolorpicker.js +441 -0
- data/third_party/closure-library/closure/goog/ui/popupcolorpicker_test.html +71 -0
- data/third_party/closure-library/closure/goog/ui/popupdatepicker.js +273 -0
- data/third_party/closure-library/closure/goog/ui/popupmenu.js +557 -0
- data/third_party/closure-library/closure/goog/ui/popupmenu_test.html +308 -0
- data/third_party/closure-library/closure/goog/ui/progressbar.js +401 -0
- data/third_party/closure-library/closure/goog/ui/prompt.js +405 -0
- data/third_party/closure-library/closure/goog/ui/prompt_test.html +144 -0
- data/third_party/closure-library/closure/goog/ui/rangemodel.js +302 -0
- data/third_party/closure-library/closure/goog/ui/rangemodel_test.html +270 -0
- data/third_party/closure-library/closure/goog/ui/ratings.js +451 -0
- data/third_party/closure-library/closure/goog/ui/registry.js +167 -0
- data/third_party/closure-library/closure/goog/ui/registry_test.html +237 -0
- data/third_party/closure-library/closure/goog/ui/richtextspellchecker.js +626 -0
- data/third_party/closure-library/closure/goog/ui/richtextspellchecker_test.html +247 -0
- data/third_party/closure-library/closure/goog/ui/roundedpanel.js +625 -0
- data/third_party/closure-library/closure/goog/ui/roundedpanel_test.html +57 -0
- data/third_party/closure-library/closure/goog/ui/roundedtabrenderer.js +197 -0
- data/third_party/closure-library/closure/goog/ui/scrollfloater.js +585 -0
- data/third_party/closure-library/closure/goog/ui/scrollfloater_test.html +144 -0
- data/third_party/closure-library/closure/goog/ui/select.js +434 -0
- data/third_party/closure-library/closure/goog/ui/select_test.html +235 -0
- data/third_party/closure-library/closure/goog/ui/selectionmenubutton.js +299 -0
- data/third_party/closure-library/closure/goog/ui/selectionmenubutton_test.html +237 -0
- data/third_party/closure-library/closure/goog/ui/selectionmodel.js +300 -0
- data/third_party/closure-library/closure/goog/ui/selectionmodel_test.html +225 -0
- data/third_party/closure-library/closure/goog/ui/separator.js +80 -0
- data/third_party/closure-library/closure/goog/ui/serverchart.js +1837 -0
- data/third_party/closure-library/closure/goog/ui/serverchart_test.html +638 -0
- data/third_party/closure-library/closure/goog/ui/slider.js +126 -0
- data/third_party/closure-library/closure/goog/ui/sliderbase.js +1592 -0
- data/third_party/closure-library/closure/goog/ui/sliderbase_test.html +897 -0
- data/third_party/closure-library/closure/goog/ui/splitbehavior.js +340 -0
- data/third_party/closure-library/closure/goog/ui/splitbehavior_test.html +161 -0
- data/third_party/closure-library/closure/goog/ui/splitpane.js +898 -0
- data/third_party/closure-library/closure/goog/ui/splitpane_test.html +229 -0
- data/third_party/closure-library/closure/goog/ui/style/app/buttonrenderer.js +201 -0
- data/third_party/closure-library/closure/goog/ui/style/app/buttonrenderer_test.html +155 -0
- data/third_party/closure-library/closure/goog/ui/style/app/menubuttonrenderer.js +233 -0
- data/third_party/closure-library/closure/goog/ui/style/app/menubuttonrenderer_test.html +167 -0
- data/third_party/closure-library/closure/goog/ui/style/app/primaryactionbuttonrenderer.js +88 -0
- data/third_party/closure-library/closure/goog/ui/style/app/primaryactionbuttonrenderer_test.html +76 -0
- data/third_party/closure-library/closure/goog/ui/submenu.js +667 -0
- data/third_party/closure-library/closure/goog/ui/submenu_test.html +563 -0
- data/third_party/closure-library/closure/goog/ui/submenurenderer.js +233 -0
- data/third_party/closure-library/closure/goog/ui/tab.js +102 -0
- data/third_party/closure-library/closure/goog/ui/tab_test.html +62 -0
- data/third_party/closure-library/closure/goog/ui/tabbar.js +394 -0
- data/third_party/closure-library/closure/goog/ui/tabbar_test.html +612 -0
- data/third_party/closure-library/closure/goog/ui/tabbarrenderer.js +175 -0
- data/third_party/closure-library/closure/goog/ui/tabbarrenderer_test.html +138 -0
- data/third_party/closure-library/closure/goog/ui/tablesorter.js +325 -0
- data/third_party/closure-library/closure/goog/ui/tablesorter_test.html +197 -0
- data/third_party/closure-library/closure/goog/ui/tabpane.js +675 -0
- data/third_party/closure-library/closure/goog/ui/tabpane_test.html +107 -0
- data/third_party/closure-library/closure/goog/ui/tabrenderer.js +153 -0
- data/third_party/closure-library/closure/goog/ui/tabrenderer_test.html +135 -0
- data/third_party/closure-library/closure/goog/ui/textarea.js +577 -0
- data/third_party/closure-library/closure/goog/ui/textarea_test.html +314 -0
- data/third_party/closure-library/closure/goog/ui/textarearenderer.js +169 -0
- data/third_party/closure-library/closure/goog/ui/togglebutton.js +58 -0
- data/third_party/closure-library/closure/goog/ui/toolbar.js +46 -0
- data/third_party/closure-library/closure/goog/ui/toolbarbutton.js +55 -0
- data/third_party/closure-library/closure/goog/ui/toolbarbuttonrenderer.js +57 -0
- data/third_party/closure-library/closure/goog/ui/toolbarcolormenubutton.js +58 -0
- data/third_party/closure-library/closure/goog/ui/toolbarcolormenubuttonrenderer.js +98 -0
- data/third_party/closure-library/closure/goog/ui/toolbarcolormenubuttonrenderer_test.html +66 -0
- data/third_party/closure-library/closure/goog/ui/toolbarmenubutton.js +57 -0
- data/third_party/closure-library/closure/goog/ui/toolbarmenubuttonrenderer.js +57 -0
- data/third_party/closure-library/closure/goog/ui/toolbarrenderer.js +99 -0
- data/third_party/closure-library/closure/goog/ui/toolbarselect.js +56 -0
- data/third_party/closure-library/closure/goog/ui/toolbarseparator.js +53 -0
- data/third_party/closure-library/closure/goog/ui/toolbarseparatorrenderer.js +91 -0
- data/third_party/closure-library/closure/goog/ui/toolbartogglebutton.js +54 -0
- data/third_party/closure-library/closure/goog/ui/tooltip.js +999 -0
- data/third_party/closure-library/closure/goog/ui/tooltip_test.html +380 -0
- data/third_party/closure-library/closure/goog/ui/tree/basenode.js +1458 -0
- data/third_party/closure-library/closure/goog/ui/tree/basenode_test.html +232 -0
- data/third_party/closure-library/closure/goog/ui/tree/treecontrol.js +663 -0
- data/third_party/closure-library/closure/goog/ui/tree/treecontrol_test.html +113 -0
- data/third_party/closure-library/closure/goog/ui/tree/treenode.js +107 -0
- data/third_party/closure-library/closure/goog/ui/tree/typeahead.js +332 -0
- data/third_party/closure-library/closure/goog/ui/tree/typeahead_test.html +133 -0
- data/third_party/closure-library/closure/goog/ui/tristatemenuitem.js +184 -0
- data/third_party/closure-library/closure/goog/ui/tristatemenuitemrenderer.js +84 -0
- data/third_party/closure-library/closure/goog/ui/twothumbslider.js +157 -0
- data/third_party/closure-library/closure/goog/ui/twothumbslider_test.html +39 -0
- data/third_party/closure-library/closure/goog/ui/zippy.js +445 -0
- data/third_party/closure-library/closure/goog/ui/zippy_test.html +315 -0
- data/third_party/closure-library/closure/goog/uri/uri.js +1502 -0
- data/third_party/closure-library/closure/goog/uri/uri_test.html +21 -0
- data/third_party/closure-library/closure/goog/uri/uri_test.js +1048 -0
- data/third_party/closure-library/closure/goog/uri/utils.js +1053 -0
- data/third_party/closure-library/closure/goog/uri/utils_test.html +562 -0
- data/third_party/closure-library/closure/goog/useragent/adobereader.js +90 -0
- data/third_party/closure-library/closure/goog/useragent/adobereader_test.html +34 -0
- data/third_party/closure-library/closure/goog/useragent/flash.js +153 -0
- data/third_party/closure-library/closure/goog/useragent/flash_test.html +34 -0
- data/third_party/closure-library/closure/goog/useragent/iphoto.js +87 -0
- data/third_party/closure-library/closure/goog/useragent/jscript.js +95 -0
- data/third_party/closure-library/closure/goog/useragent/jscript_test.html +65 -0
- data/third_party/closure-library/closure/goog/useragent/picasa.js +112 -0
- data/third_party/closure-library/closure/goog/useragent/platform.js +82 -0
- data/third_party/closure-library/closure/goog/useragent/platform_test.html +182 -0
- data/third_party/closure-library/closure/goog/useragent/product.js +253 -0
- data/third_party/closure-library/closure/goog/useragent/product_isversion.js +140 -0
- data/third_party/closure-library/closure/goog/useragent/product_test.html +380 -0
- data/third_party/closure-library/closure/goog/useragent/useragent.js +599 -0
- data/third_party/closure-library/closure/goog/useragent/useragent_quirks_test.html +27 -0
- data/third_party/closure-library/closure/goog/useragent/useragent_test.html +300 -0
- data/third_party/closure-library/closure/goog/vec/float32array.js +110 -0
- data/third_party/closure-library/closure/goog/vec/float32array_test.html +69 -0
- data/third_party/closure-library/closure/goog/vec/float64array.js +117 -0
- data/third_party/closure-library/closure/goog/vec/float64array_test.html +69 -0
- data/third_party/closure-library/closure/goog/vec/mat3.js +1211 -0
- data/third_party/closure-library/closure/goog/vec/mat3_test.html +465 -0
- data/third_party/closure-library/closure/goog/vec/mat3d.js +1039 -0
- data/third_party/closure-library/closure/goog/vec/mat3d_test.html +432 -0
- data/third_party/closure-library/closure/goog/vec/mat3f.js +1039 -0
- data/third_party/closure-library/closure/goog/vec/mat3f_test.html +432 -0
- data/third_party/closure-library/closure/goog/vec/mat4.js +1822 -0
- data/third_party/closure-library/closure/goog/vec/mat4_test.html +781 -0
- data/third_party/closure-library/closure/goog/vec/mat4d.js +1769 -0
- data/third_party/closure-library/closure/goog/vec/mat4d_test.html +738 -0
- data/third_party/closure-library/closure/goog/vec/mat4f.js +1769 -0
- data/third_party/closure-library/closure/goog/vec/mat4f_test.html +738 -0
- data/third_party/closure-library/closure/goog/vec/matrix3.js +720 -0
- data/third_party/closure-library/closure/goog/vec/matrix3_test.html +301 -0
- data/third_party/closure-library/closure/goog/vec/matrix4.js +1405 -0
- data/third_party/closure-library/closure/goog/vec/matrix4_test.html +626 -0
- data/third_party/closure-library/closure/goog/vec/quaternion.js +458 -0
- data/third_party/closure-library/closure/goog/vec/quaternion_test.html +195 -0
- data/third_party/closure-library/closure/goog/vec/ray.js +94 -0
- data/third_party/closure-library/closure/goog/vec/ray_test.html +66 -0
- data/third_party/closure-library/closure/goog/vec/vec.js +73 -0
- data/third_party/closure-library/closure/goog/vec/vec2.js +376 -0
- data/third_party/closure-library/closure/goog/vec/vec2_test.html +216 -0
- data/third_party/closure-library/closure/goog/vec/vec2d.js +325 -0
- data/third_party/closure-library/closure/goog/vec/vec2d_test.html +208 -0
- data/third_party/closure-library/closure/goog/vec/vec2f.js +325 -0
- data/third_party/closure-library/closure/goog/vec/vec2f_test.html +208 -0
- data/third_party/closure-library/closure/goog/vec/vec3.js +474 -0
- data/third_party/closure-library/closure/goog/vec/vec3_test.html +258 -0
- data/third_party/closure-library/closure/goog/vec/vec3d.js +358 -0
- data/third_party/closure-library/closure/goog/vec/vec3d_test.html +232 -0
- data/third_party/closure-library/closure/goog/vec/vec3f.js +358 -0
- data/third_party/closure-library/closure/goog/vec/vec3f_test.html +232 -0
- data/third_party/closure-library/closure/goog/vec/vec4.js +406 -0
- data/third_party/closure-library/closure/goog/vec/vec4_test.html +192 -0
- data/third_party/closure-library/closure/goog/vec/vec4d.js +293 -0
- data/third_party/closure-library/closure/goog/vec/vec4d_test.html +168 -0
- data/third_party/closure-library/closure/goog/vec/vec4f.js +293 -0
- data/third_party/closure-library/closure/goog/vec/vec4f_test.html +168 -0
- data/third_party/closure-library/closure/goog/vec/vec_array_perf.html +443 -0
- data/third_party/closure-library/closure/goog/vec/vec_perf.html +101 -0
- data/third_party/closure-library/closure/goog/webgl/webgl.js +2194 -0
- data/third_party/closure-library/closure/goog/window/window.js +225 -0
- data/third_party/closure-library/closure/goog/window/window_test.html +239 -0
- data/third_party/closure-library/closure/known_issues/testdata/closure_library_warnings.txt +47 -0
- data/third_party/closure-library/third_party/closure/goog/base.js +2 -0
- data/third_party/closure-library/third_party/closure/goog/caja/string/html/htmlparser.js +611 -0
- data/third_party/closure-library/third_party/closure/goog/caja/string/html/htmlsanitizer.js +605 -0
- data/third_party/closure-library/third_party/closure/goog/deps.js +20 -0
- data/third_party/closure-library/third_party/closure/goog/dojo/dom/query.js +1543 -0
- data/third_party/closure-library/third_party/closure/goog/dojo/dom/query_compiled_test.html +65 -0
- data/third_party/closure-library/third_party/closure/goog/dojo/dom/query_test.html +64 -0
- data/third_party/closure-library/third_party/closure/goog/dojo/dom/query_test.js +158 -0
- data/third_party/closure-library/third_party/closure/goog/jpeg_encoder/jpeg_encoder_basic.js +751 -0
- data/third_party/closure-library/third_party/closure/goog/loremipsum/text/loremipsum.js +712 -0
- data/third_party/closure-library/third_party/closure/goog/loremipsum/text/loremipsum_test.html +60 -0
- data/third_party/closure-library/third_party/closure/goog/mochikit/async/deferred.js +764 -0
- data/third_party/closure-library/third_party/closure/goog/mochikit/async/deferred_async_test.html +144 -0
- data/third_party/closure-library/third_party/closure/goog/mochikit/async/deferred_test.html +877 -0
- data/third_party/closure-library/third_party/closure/goog/mochikit/async/deferredlist.js +205 -0
- data/third_party/closure-library/third_party/closure/goog/mochikit/async/deferredlist_test.html +504 -0
- data/third_party/closure-library/third_party/closure/goog/osapi/osapi.js +95 -0
- metadata +2054 -0
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<!--
|
|
4
|
+
Copyright 2008 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
|
+
@author gboyer@google.com (Garrett Boyer)
|
|
12
|
+
-->
|
|
13
|
+
<head>
|
|
14
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
15
|
+
<title>Closure Unit Tests - goog.ui.ComboBox</title>
|
|
16
|
+
<style type='text/css'>
|
|
17
|
+
.goog-menu {
|
|
18
|
+
position: absolute;
|
|
19
|
+
}
|
|
20
|
+
</style>
|
|
21
|
+
<script src="../base.js"></script>
|
|
22
|
+
<script>
|
|
23
|
+
goog.require('goog.dom');
|
|
24
|
+
goog.require('goog.dom.TagName');
|
|
25
|
+
goog.require('goog.dom.classlist');
|
|
26
|
+
goog.require('goog.events');
|
|
27
|
+
goog.require('goog.events.KeyCodes');
|
|
28
|
+
goog.require('goog.testing.MockClock');
|
|
29
|
+
goog.require('goog.testing.events');
|
|
30
|
+
goog.require('goog.testing.jsunit');
|
|
31
|
+
goog.require('goog.ui.ComboBox');
|
|
32
|
+
</script>
|
|
33
|
+
</head>
|
|
34
|
+
<body>
|
|
35
|
+
|
|
36
|
+
<h2 style="color:red">
|
|
37
|
+
This test is rudimentary.
|
|
38
|
+
The fact that it passes should not (yet) make you too confident.
|
|
39
|
+
</h2>
|
|
40
|
+
|
|
41
|
+
<div id="combo">
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
<div id="menu">
|
|
45
|
+
<div class="goog-combobox-item">Red</div>
|
|
46
|
+
<div class="goog-combobox-item">Green</div>
|
|
47
|
+
<div class="goog-combobox-item">Blue</div>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
<script>
|
|
51
|
+
|
|
52
|
+
var comboBox;
|
|
53
|
+
var input;
|
|
54
|
+
|
|
55
|
+
function setUp() {
|
|
56
|
+
goog.dom.getElement('combo').innerHTML = '';
|
|
57
|
+
|
|
58
|
+
comboBox = new goog.ui.ComboBox();
|
|
59
|
+
comboBox.setDefaultText('Select a color...');
|
|
60
|
+
comboBox.addItem(new goog.ui.ComboBoxItem('Red'));
|
|
61
|
+
comboBox.addItem(new goog.ui.ComboBoxItem('Maroon'));
|
|
62
|
+
comboBox.addItem(new goog.ui.ComboBoxItem('Gre<en'));
|
|
63
|
+
comboBox.addItem(new goog.ui.ComboBoxItem('Blue'));
|
|
64
|
+
comboBox.addItem(new goog.ui.ComboBoxItem('Royal Blue'));
|
|
65
|
+
comboBox.addItem(new goog.ui.ComboBoxItem('Yellow'));
|
|
66
|
+
comboBox.addItem(new goog.ui.ComboBoxItem('Magenta'));
|
|
67
|
+
comboBox.addItem(new goog.ui.ComboBoxItem('Mouve'));
|
|
68
|
+
comboBox.addItem(new goog.ui.ComboBoxItem('Grey'));
|
|
69
|
+
comboBox.render(goog.dom.getElement('combo'));
|
|
70
|
+
|
|
71
|
+
input = comboBox.getInputElement();
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function tearDown() {
|
|
75
|
+
comboBox.dispose();
|
|
76
|
+
goog.events.removeAllNativeListeners();
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function testInputElementAttributes() {
|
|
80
|
+
var comboBox = new goog.ui.ComboBox();
|
|
81
|
+
comboBox.setFieldName('a_form_field');
|
|
82
|
+
comboBox.createDom();
|
|
83
|
+
var inputElement = comboBox.getInputElement();
|
|
84
|
+
assertEquals('text', inputElement.type);
|
|
85
|
+
assertEquals('a_form_field', inputElement.name);
|
|
86
|
+
assertEquals('off', inputElement.autocomplete);
|
|
87
|
+
comboBox.dispose();
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
function testSetDefaultText() {
|
|
91
|
+
assertEquals('Select a color...', comboBox.getDefaultText());
|
|
92
|
+
comboBox.setDefaultText('new default text...');
|
|
93
|
+
assertEquals('new default text...', comboBox.getDefaultText());
|
|
94
|
+
assertEquals('new default text...', comboBox.labelInput_.getLabel());
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function testGetMenu() {
|
|
98
|
+
assertTrue('Menu should be instance of goog.ui.Menu',
|
|
99
|
+
comboBox.getMenu() instanceof goog.ui.Menu);
|
|
100
|
+
assertEquals('Menu should have correct number of children',
|
|
101
|
+
9, comboBox.getMenu().getChildCount());
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function testMenuBeginsInvisible() {
|
|
105
|
+
assertFalse('Menu should begin invisible', comboBox.getMenu().isVisible());
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function testClickCausesPopup() {
|
|
109
|
+
goog.testing.events.fireClickSequence(input);
|
|
110
|
+
assertTrue('Menu becomes visible after click',
|
|
111
|
+
comboBox.getMenu().isVisible());
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function testUpKeyCausesPopup() {
|
|
115
|
+
goog.testing.events.fireKeySequence(input, goog.events.KeyCodes.UP);
|
|
116
|
+
assertTrue('Menu becomes visible after UP key',
|
|
117
|
+
comboBox.getMenu().isVisible());
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function testActionSelectsItem() {
|
|
121
|
+
comboBox.getMenu().getItemAt(2).dispatchEvent(
|
|
122
|
+
goog.ui.Component.EventType.ACTION);
|
|
123
|
+
assertEquals('Gre<en', input.value);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function testActionSelectsItemWithModel() {
|
|
127
|
+
var itemWithModel = new goog.ui.MenuItem('one', 1);
|
|
128
|
+
comboBox.addItem(itemWithModel);
|
|
129
|
+
itemWithModel.dispatchEvent(goog.ui.Component.EventType.ACTION);
|
|
130
|
+
assertEquals('one', comboBox.getValue());
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function testRedisplayMenuAfterBackspace() {
|
|
134
|
+
input.value = 'mx';
|
|
135
|
+
comboBox.onInputEvent_();
|
|
136
|
+
input.value = 'm';
|
|
137
|
+
comboBox.onInputEvent_();
|
|
138
|
+
assertEquals('Three items should be displayed',
|
|
139
|
+
3, comboBox.getNumberOfVisibleItems_());
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
function testExternallyCreatedMenu() {
|
|
143
|
+
var menu = new goog.ui.Menu();
|
|
144
|
+
menu.decorate(goog.dom.getElement('menu'));
|
|
145
|
+
assertTrue('Menu items should be instances of goog.ui.ComboBoxItem',
|
|
146
|
+
menu.getChildAt(0) instanceof goog.ui.ComboBoxItem);
|
|
147
|
+
|
|
148
|
+
comboBox = new goog.ui.ComboBox(null, menu);
|
|
149
|
+
comboBox.render(goog.dom.getElement('combo'));
|
|
150
|
+
|
|
151
|
+
input = comboBox.getElement().getElementsByTagName(
|
|
152
|
+
goog.dom.TagName.INPUT)[0];
|
|
153
|
+
menu.getItemAt(2).dispatchEvent(
|
|
154
|
+
goog.ui.Component.EventType.ACTION);
|
|
155
|
+
assertEquals('Blue', input.value);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
function testRecomputeVisibleCountAfterChangingItems() {
|
|
159
|
+
input.value = 'Black';
|
|
160
|
+
comboBox.onInputEvent_();
|
|
161
|
+
assertEquals('No items should be displayed',
|
|
162
|
+
0, comboBox.getNumberOfVisibleItems_());
|
|
163
|
+
comboBox.addItem(new goog.ui.ComboBoxItem('Black'));
|
|
164
|
+
assertEquals('One item should be displayed',
|
|
165
|
+
1, comboBox.getNumberOfVisibleItems_());
|
|
166
|
+
|
|
167
|
+
input.value = 'Red';
|
|
168
|
+
comboBox.onInputEvent_();
|
|
169
|
+
assertEquals('One item should be displayed',
|
|
170
|
+
1, comboBox.getNumberOfVisibleItems_());
|
|
171
|
+
comboBox.removeItemAt(0); // Red
|
|
172
|
+
assertEquals('No items should be displayed',
|
|
173
|
+
0, comboBox.getNumberOfVisibleItems_());
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
function testSetEnabled() {
|
|
177
|
+
// By default, everything should be enabled.
|
|
178
|
+
assertFalse('Text input should initially not be disabled', input.disabled);
|
|
179
|
+
assertFalse('Text input should initially not look disabled',
|
|
180
|
+
goog.dom.classlist.contains(input,
|
|
181
|
+
goog.getCssName(goog.ui.LabelInput.prototype.LABEL_CLASS_NAME,
|
|
182
|
+
'disabled')));
|
|
183
|
+
assertFalse('Combo box should initially not look disabled',
|
|
184
|
+
goog.dom.classlist.contains(comboBox.getElement(),
|
|
185
|
+
goog.getCssName('goog-combobox-disabled')));
|
|
186
|
+
goog.testing.events.fireClickSequence(comboBox.getElement());
|
|
187
|
+
assertTrue('Menu initially becomes visible after click',
|
|
188
|
+
comboBox.getMenu().isVisible());
|
|
189
|
+
goog.testing.events.fireClickSequence(document);
|
|
190
|
+
assertFalse('Menu initially becomes invisible after document click',
|
|
191
|
+
comboBox.getMenu().isVisible());
|
|
192
|
+
|
|
193
|
+
comboBox.setEnabled(false);
|
|
194
|
+
assertTrue('Text input should be disabled after being disabled',
|
|
195
|
+
input.disabled);
|
|
196
|
+
assertTrue('Text input should appear disabled after being disabled',
|
|
197
|
+
goog.dom.classlist.contains(input,
|
|
198
|
+
goog.getCssName(goog.ui.LabelInput.prototype.LABEL_CLASS_NAME,
|
|
199
|
+
'disabled')));
|
|
200
|
+
assertTrue('Combo box should appear disabled after being disabled',
|
|
201
|
+
goog.dom.classlist.contains(comboBox.getElement(),
|
|
202
|
+
goog.getCssName('goog-combobox-disabled')));
|
|
203
|
+
goog.testing.events.fireClickSequence(comboBox.getElement());
|
|
204
|
+
assertFalse('Menu should not become visible after click if disabled',
|
|
205
|
+
comboBox.getMenu().isVisible());
|
|
206
|
+
|
|
207
|
+
comboBox.setEnabled(true);
|
|
208
|
+
assertFalse('Text input should not be disabled after being re-enabled',
|
|
209
|
+
input.disabled);
|
|
210
|
+
assertFalse('Text input should not appear disabled after being re-enabled',
|
|
211
|
+
goog.dom.classlist.contains(input,
|
|
212
|
+
goog.getCssName(goog.ui.LabelInput.prototype.LABEL_CLASS_NAME,
|
|
213
|
+
'disabled')));
|
|
214
|
+
assertFalse('Combo box should not appear disabled after being re-enabled',
|
|
215
|
+
goog.dom.classlist.contains(comboBox.getElement(),
|
|
216
|
+
goog.getCssName('goog-combobox-disabled')));
|
|
217
|
+
goog.testing.events.fireClickSequence(comboBox.getElement());
|
|
218
|
+
assertTrue('Menu becomes visible after click when re-enabled',
|
|
219
|
+
comboBox.getMenu().isVisible());
|
|
220
|
+
goog.testing.events.fireClickSequence(document);
|
|
221
|
+
assertFalse('Menu becomes invisible after document click when re-enabled',
|
|
222
|
+
comboBox.getMenu().isVisible());
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
function testSetFormatFromToken() {
|
|
226
|
+
var item = new goog.ui.ComboBoxItem('ABc');
|
|
227
|
+
item.setFormatFromToken('b');
|
|
228
|
+
var div = goog.dom.createDom('div');
|
|
229
|
+
new goog.ui.ControlRenderer().setContent(div, item.getContent());
|
|
230
|
+
assertTrue(div.innerHTML == 'A<b>B</b>c' || div.innerHTML == 'A<B>B</B>c');
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
function testSetValue() {
|
|
234
|
+
var clock = new goog.testing.MockClock(/* autoInstall */ true);
|
|
235
|
+
|
|
236
|
+
// Get the input focus. Note that both calls are needed to correctly
|
|
237
|
+
// simulate the focus (and setting document.activeElement) across all
|
|
238
|
+
// browsers.
|
|
239
|
+
input.focus();
|
|
240
|
+
goog.testing.events.fireClickSequence(input);
|
|
241
|
+
|
|
242
|
+
// Simulate text input.
|
|
243
|
+
input.value = 'Black';
|
|
244
|
+
comboBox.onInputEvent_();
|
|
245
|
+
clock.tick();
|
|
246
|
+
assertEquals('No items should be displayed',
|
|
247
|
+
0, comboBox.getNumberOfVisibleItems_());
|
|
248
|
+
assertFalse('Menu should be invisible', comboBox.getMenu().isVisible());
|
|
249
|
+
|
|
250
|
+
// Programmatic change with the input focus causes the menu visibility to
|
|
251
|
+
// change if needed.
|
|
252
|
+
comboBox.setValue('Blue');
|
|
253
|
+
clock.tick();
|
|
254
|
+
assertTrue('Menu should be visible1', comboBox.getMenu().isVisible());
|
|
255
|
+
assertEquals('One item should be displayed',
|
|
256
|
+
1, comboBox.getNumberOfVisibleItems_());
|
|
257
|
+
|
|
258
|
+
// Simulate user input to ensure all the items are invisible again, then
|
|
259
|
+
// blur away.
|
|
260
|
+
input.value = 'Black';
|
|
261
|
+
comboBox.onInputEvent_();
|
|
262
|
+
clock.tick();
|
|
263
|
+
input.blur();
|
|
264
|
+
document.body.focus();
|
|
265
|
+
clock.tick(goog.ui.ComboBox.BLUR_DISMISS_TIMER_MS);
|
|
266
|
+
assertEquals('No items should be displayed',
|
|
267
|
+
0, comboBox.getNumberOfVisibleItems_());
|
|
268
|
+
assertFalse('Menu should be invisible', comboBox.getMenu().isVisible());
|
|
269
|
+
|
|
270
|
+
// Programmatic change without the input focus does not pop up the menu,
|
|
271
|
+
// but still updates the list of visible items within it.
|
|
272
|
+
comboBox.setValue('Blue');
|
|
273
|
+
clock.tick();
|
|
274
|
+
assertFalse('Menu should be invisible', comboBox.getMenu().isVisible());
|
|
275
|
+
assertEquals('Menu should contain one item',
|
|
276
|
+
1, comboBox.getNumberOfVisibleItems_());
|
|
277
|
+
|
|
278
|
+
// Click on the combobox. The entire menu becomes visible, the last item
|
|
279
|
+
// (programmatically) set is highlighted.
|
|
280
|
+
goog.testing.events.fireClickSequence(comboBox.getElement());
|
|
281
|
+
assertTrue('Menu should be visible2', comboBox.getMenu().isVisible());
|
|
282
|
+
assertEquals('All items should be displayed',
|
|
283
|
+
comboBox.getMenu().getItemCount(), comboBox.getNumberOfVisibleItems_());
|
|
284
|
+
assertEquals('The last item set should be highlighted',
|
|
285
|
+
/* Blue= */ 3, comboBox.getMenu().getHighlightedIndex());
|
|
286
|
+
|
|
287
|
+
clock.uninstall();
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
</script>
|
|
291
|
+
</body>
|
|
292
|
+
</html>
|
|
@@ -0,0 +1,1300 @@
|
|
|
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 Abstract class for all UI components. This defines the standard
|
|
17
|
+
* design pattern that all UI components should follow.
|
|
18
|
+
*
|
|
19
|
+
* @see ../demos/samplecomponent.html
|
|
20
|
+
* @see http://code.google.com/p/closure-library/wiki/IntroToComponents
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
goog.provide('goog.ui.Component');
|
|
24
|
+
goog.provide('goog.ui.Component.Error');
|
|
25
|
+
goog.provide('goog.ui.Component.EventType');
|
|
26
|
+
goog.provide('goog.ui.Component.State');
|
|
27
|
+
|
|
28
|
+
goog.require('goog.array');
|
|
29
|
+
goog.require('goog.asserts');
|
|
30
|
+
goog.require('goog.dom');
|
|
31
|
+
goog.require('goog.dom.NodeType');
|
|
32
|
+
goog.require('goog.events.EventHandler');
|
|
33
|
+
goog.require('goog.events.EventTarget');
|
|
34
|
+
goog.require('goog.object');
|
|
35
|
+
goog.require('goog.style');
|
|
36
|
+
goog.require('goog.ui.IdGenerator');
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Default implementation of UI component.
|
|
42
|
+
*
|
|
43
|
+
* @param {goog.dom.DomHelper=} opt_domHelper Optional DOM helper.
|
|
44
|
+
* @constructor
|
|
45
|
+
* @extends {goog.events.EventTarget}
|
|
46
|
+
*/
|
|
47
|
+
goog.ui.Component = function(opt_domHelper) {
|
|
48
|
+
goog.events.EventTarget.call(this);
|
|
49
|
+
this.dom_ = opt_domHelper || goog.dom.getDomHelper();
|
|
50
|
+
|
|
51
|
+
// Set the defalt right to left value.
|
|
52
|
+
this.rightToLeft_ = goog.ui.Component.defaultRightToLeft_;
|
|
53
|
+
};
|
|
54
|
+
goog.inherits(goog.ui.Component, goog.events.EventTarget);
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @define {boolean} Whether to support calling decorate with an element that is
|
|
59
|
+
* not yet in the document. If true, we check if the element is in the
|
|
60
|
+
* document, and avoid calling enterDocument if it isn't. If false, we
|
|
61
|
+
* maintain legacy behavior (always call enterDocument from decorate).
|
|
62
|
+
*/
|
|
63
|
+
goog.define('goog.ui.Component.ALLOW_DETACHED_DECORATION', false);
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Generator for unique IDs.
|
|
68
|
+
* @type {goog.ui.IdGenerator}
|
|
69
|
+
* @private
|
|
70
|
+
*/
|
|
71
|
+
goog.ui.Component.prototype.idGenerator_ = goog.ui.IdGenerator.getInstance();
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* The default right to left value.
|
|
76
|
+
* @type {?boolean}
|
|
77
|
+
* @private
|
|
78
|
+
*/
|
|
79
|
+
goog.ui.Component.defaultRightToLeft_ = null;
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Common events fired by components so that event propagation is useful. Not
|
|
84
|
+
* all components are expected to dispatch or listen for all event types.
|
|
85
|
+
* Events dispatched before a state transition should be cancelable to prevent
|
|
86
|
+
* the corresponding state change.
|
|
87
|
+
* @enum {string}
|
|
88
|
+
*/
|
|
89
|
+
goog.ui.Component.EventType = {
|
|
90
|
+
/** Dispatched before the component becomes visible. */
|
|
91
|
+
BEFORE_SHOW: 'beforeshow',
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Dispatched after the component becomes visible.
|
|
95
|
+
* NOTE(user): For goog.ui.Container, this actually fires before containers
|
|
96
|
+
* are shown. Use goog.ui.Container.EventType.AFTER_SHOW if you want an event
|
|
97
|
+
* that fires after a goog.ui.Container is shown.
|
|
98
|
+
*/
|
|
99
|
+
SHOW: 'show',
|
|
100
|
+
|
|
101
|
+
/** Dispatched before the component becomes hidden. */
|
|
102
|
+
HIDE: 'hide',
|
|
103
|
+
|
|
104
|
+
/** Dispatched before the component becomes disabled. */
|
|
105
|
+
DISABLE: 'disable',
|
|
106
|
+
|
|
107
|
+
/** Dispatched before the component becomes enabled. */
|
|
108
|
+
ENABLE: 'enable',
|
|
109
|
+
|
|
110
|
+
/** Dispatched before the component becomes highlighted. */
|
|
111
|
+
HIGHLIGHT: 'highlight',
|
|
112
|
+
|
|
113
|
+
/** Dispatched before the component becomes un-highlighted. */
|
|
114
|
+
UNHIGHLIGHT: 'unhighlight',
|
|
115
|
+
|
|
116
|
+
/** Dispatched before the component becomes activated. */
|
|
117
|
+
ACTIVATE: 'activate',
|
|
118
|
+
|
|
119
|
+
/** Dispatched before the component becomes deactivated. */
|
|
120
|
+
DEACTIVATE: 'deactivate',
|
|
121
|
+
|
|
122
|
+
/** Dispatched before the component becomes selected. */
|
|
123
|
+
SELECT: 'select',
|
|
124
|
+
|
|
125
|
+
/** Dispatched before the component becomes un-selected. */
|
|
126
|
+
UNSELECT: 'unselect',
|
|
127
|
+
|
|
128
|
+
/** Dispatched before a component becomes checked. */
|
|
129
|
+
CHECK: 'check',
|
|
130
|
+
|
|
131
|
+
/** Dispatched before a component becomes un-checked. */
|
|
132
|
+
UNCHECK: 'uncheck',
|
|
133
|
+
|
|
134
|
+
/** Dispatched before a component becomes focused. */
|
|
135
|
+
FOCUS: 'focus',
|
|
136
|
+
|
|
137
|
+
/** Dispatched before a component becomes blurred. */
|
|
138
|
+
BLUR: 'blur',
|
|
139
|
+
|
|
140
|
+
/** Dispatched before a component is opened (expanded). */
|
|
141
|
+
OPEN: 'open',
|
|
142
|
+
|
|
143
|
+
/** Dispatched before a component is closed (collapsed). */
|
|
144
|
+
CLOSE: 'close',
|
|
145
|
+
|
|
146
|
+
/** Dispatched after a component is moused over. */
|
|
147
|
+
ENTER: 'enter',
|
|
148
|
+
|
|
149
|
+
/** Dispatched after a component is moused out of. */
|
|
150
|
+
LEAVE: 'leave',
|
|
151
|
+
|
|
152
|
+
/** Dispatched after the user activates the component. */
|
|
153
|
+
ACTION: 'action',
|
|
154
|
+
|
|
155
|
+
/** Dispatched after the external-facing state of a component is changed. */
|
|
156
|
+
CHANGE: 'change'
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Errors thrown by the component.
|
|
162
|
+
* @enum {string}
|
|
163
|
+
*/
|
|
164
|
+
goog.ui.Component.Error = {
|
|
165
|
+
/**
|
|
166
|
+
* Error when a method is not supported.
|
|
167
|
+
*/
|
|
168
|
+
NOT_SUPPORTED: 'Method not supported',
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Error when the given element can not be decorated.
|
|
172
|
+
*/
|
|
173
|
+
DECORATE_INVALID: 'Invalid element to decorate',
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Error when the component is already rendered and another render attempt is
|
|
177
|
+
* made.
|
|
178
|
+
*/
|
|
179
|
+
ALREADY_RENDERED: 'Component already rendered',
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Error when an attempt is made to set the parent of a component in a way
|
|
183
|
+
* that would result in an inconsistent object graph.
|
|
184
|
+
*/
|
|
185
|
+
PARENT_UNABLE_TO_BE_SET: 'Unable to set parent component',
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Error when an attempt is made to add a child component at an out-of-bounds
|
|
189
|
+
* index. We don't support sparse child arrays.
|
|
190
|
+
*/
|
|
191
|
+
CHILD_INDEX_OUT_OF_BOUNDS: 'Child component index out of bounds',
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Error when an attempt is made to remove a child component from a component
|
|
195
|
+
* other than its parent.
|
|
196
|
+
*/
|
|
197
|
+
NOT_OUR_CHILD: 'Child is not in parent component',
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Error when an operation requiring DOM interaction is made when the
|
|
201
|
+
* component is not in the document
|
|
202
|
+
*/
|
|
203
|
+
NOT_IN_DOCUMENT: 'Operation not supported while component is not in document',
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Error when an invalid component state is encountered.
|
|
207
|
+
*/
|
|
208
|
+
STATE_INVALID: 'Invalid component state'
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Common component states. Components may have distinct appearance depending
|
|
214
|
+
* on what state(s) apply to them. Not all components are expected to support
|
|
215
|
+
* all states.
|
|
216
|
+
* @enum {number}
|
|
217
|
+
*/
|
|
218
|
+
goog.ui.Component.State = {
|
|
219
|
+
/**
|
|
220
|
+
* Union of all supported component states.
|
|
221
|
+
*/
|
|
222
|
+
ALL: 0xFF,
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Component is disabled.
|
|
226
|
+
* @see goog.ui.Component.EventType.DISABLE
|
|
227
|
+
* @see goog.ui.Component.EventType.ENABLE
|
|
228
|
+
*/
|
|
229
|
+
DISABLED: 0x01,
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Component is highlighted.
|
|
233
|
+
* @see goog.ui.Component.EventType.HIGHLIGHT
|
|
234
|
+
* @see goog.ui.Component.EventType.UNHIGHLIGHT
|
|
235
|
+
*/
|
|
236
|
+
HOVER: 0x02,
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Component is active (or "pressed").
|
|
240
|
+
* @see goog.ui.Component.EventType.ACTIVATE
|
|
241
|
+
* @see goog.ui.Component.EventType.DEACTIVATE
|
|
242
|
+
*/
|
|
243
|
+
ACTIVE: 0x04,
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Component is selected.
|
|
247
|
+
* @see goog.ui.Component.EventType.SELECT
|
|
248
|
+
* @see goog.ui.Component.EventType.UNSELECT
|
|
249
|
+
*/
|
|
250
|
+
SELECTED: 0x08,
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Component is checked.
|
|
254
|
+
* @see goog.ui.Component.EventType.CHECK
|
|
255
|
+
* @see goog.ui.Component.EventType.UNCHECK
|
|
256
|
+
*/
|
|
257
|
+
CHECKED: 0x10,
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Component has focus.
|
|
261
|
+
* @see goog.ui.Component.EventType.FOCUS
|
|
262
|
+
* @see goog.ui.Component.EventType.BLUR
|
|
263
|
+
*/
|
|
264
|
+
FOCUSED: 0x20,
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Component is opened (expanded). Applies to tree nodes, menu buttons,
|
|
268
|
+
* submenus, zippys (zippies?), etc.
|
|
269
|
+
* @see goog.ui.Component.EventType.OPEN
|
|
270
|
+
* @see goog.ui.Component.EventType.CLOSE
|
|
271
|
+
*/
|
|
272
|
+
OPENED: 0x40
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Static helper method; returns the type of event components are expected to
|
|
278
|
+
* dispatch when transitioning to or from the given state.
|
|
279
|
+
* @param {goog.ui.Component.State} state State to/from which the component
|
|
280
|
+
* is transitioning.
|
|
281
|
+
* @param {boolean} isEntering Whether the component is entering or leaving the
|
|
282
|
+
* state.
|
|
283
|
+
* @return {goog.ui.Component.EventType} Event type to dispatch.
|
|
284
|
+
*/
|
|
285
|
+
goog.ui.Component.getStateTransitionEvent = function(state, isEntering) {
|
|
286
|
+
switch (state) {
|
|
287
|
+
case goog.ui.Component.State.DISABLED:
|
|
288
|
+
return isEntering ? goog.ui.Component.EventType.DISABLE :
|
|
289
|
+
goog.ui.Component.EventType.ENABLE;
|
|
290
|
+
case goog.ui.Component.State.HOVER:
|
|
291
|
+
return isEntering ? goog.ui.Component.EventType.HIGHLIGHT :
|
|
292
|
+
goog.ui.Component.EventType.UNHIGHLIGHT;
|
|
293
|
+
case goog.ui.Component.State.ACTIVE:
|
|
294
|
+
return isEntering ? goog.ui.Component.EventType.ACTIVATE :
|
|
295
|
+
goog.ui.Component.EventType.DEACTIVATE;
|
|
296
|
+
case goog.ui.Component.State.SELECTED:
|
|
297
|
+
return isEntering ? goog.ui.Component.EventType.SELECT :
|
|
298
|
+
goog.ui.Component.EventType.UNSELECT;
|
|
299
|
+
case goog.ui.Component.State.CHECKED:
|
|
300
|
+
return isEntering ? goog.ui.Component.EventType.CHECK :
|
|
301
|
+
goog.ui.Component.EventType.UNCHECK;
|
|
302
|
+
case goog.ui.Component.State.FOCUSED:
|
|
303
|
+
return isEntering ? goog.ui.Component.EventType.FOCUS :
|
|
304
|
+
goog.ui.Component.EventType.BLUR;
|
|
305
|
+
case goog.ui.Component.State.OPENED:
|
|
306
|
+
return isEntering ? goog.ui.Component.EventType.OPEN :
|
|
307
|
+
goog.ui.Component.EventType.CLOSE;
|
|
308
|
+
default:
|
|
309
|
+
// Fall through.
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
// Invalid state.
|
|
313
|
+
throw Error(goog.ui.Component.Error.STATE_INVALID);
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Set the default right-to-left value. This causes all component's created from
|
|
319
|
+
* this point foward to have the given value. This is useful for cases where
|
|
320
|
+
* a given page is always in one directionality, avoiding unnecessary
|
|
321
|
+
* right to left determinations.
|
|
322
|
+
* @param {?boolean} rightToLeft Whether the components should be rendered
|
|
323
|
+
* right-to-left. Null iff components should determine their directionality.
|
|
324
|
+
*/
|
|
325
|
+
goog.ui.Component.setDefaultRightToLeft = function(rightToLeft) {
|
|
326
|
+
goog.ui.Component.defaultRightToLeft_ = rightToLeft;
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Unique ID of the component, lazily initialized in {@link
|
|
332
|
+
* goog.ui.Component#getId} if needed. This property is strictly private and
|
|
333
|
+
* must not be accessed directly outside of this class!
|
|
334
|
+
* @type {?string}
|
|
335
|
+
* @private
|
|
336
|
+
*/
|
|
337
|
+
goog.ui.Component.prototype.id_ = null;
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* DomHelper used to interact with the document, allowing components to be
|
|
342
|
+
* created in a different window.
|
|
343
|
+
* @type {!goog.dom.DomHelper}
|
|
344
|
+
* @protected
|
|
345
|
+
* @suppress {underscore}
|
|
346
|
+
*/
|
|
347
|
+
goog.ui.Component.prototype.dom_;
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Whether the component is in the document.
|
|
352
|
+
* @type {boolean}
|
|
353
|
+
* @private
|
|
354
|
+
*/
|
|
355
|
+
goog.ui.Component.prototype.inDocument_ = false;
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
// TODO(attila): Stop referring to this private field in subclasses.
|
|
359
|
+
/**
|
|
360
|
+
* The DOM element for the component.
|
|
361
|
+
* @type {Element}
|
|
362
|
+
* @private
|
|
363
|
+
*/
|
|
364
|
+
goog.ui.Component.prototype.element_ = null;
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Event handler.
|
|
369
|
+
* TODO(user): rename it to handler_ after all component subclasses in
|
|
370
|
+
* inside Google have been cleaned up.
|
|
371
|
+
* Code search: http://go/component_code_search
|
|
372
|
+
* @type {goog.events.EventHandler}
|
|
373
|
+
* @private
|
|
374
|
+
*/
|
|
375
|
+
goog.ui.Component.prototype.googUiComponentHandler_;
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Whether the component is rendered right-to-left. Right-to-left is set
|
|
380
|
+
* lazily when {@link #isRightToLeft} is called the first time, unless it has
|
|
381
|
+
* been set by calling {@link #setRightToLeft} explicitly.
|
|
382
|
+
* @type {?boolean}
|
|
383
|
+
* @private
|
|
384
|
+
*/
|
|
385
|
+
goog.ui.Component.prototype.rightToLeft_ = null;
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Arbitrary data object associated with the component. Such as meta-data.
|
|
390
|
+
* @type {*}
|
|
391
|
+
* @private
|
|
392
|
+
*/
|
|
393
|
+
goog.ui.Component.prototype.model_ = null;
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* Parent component to which events will be propagated. This property is
|
|
398
|
+
* strictly private and must not be accessed directly outside of this class!
|
|
399
|
+
* @type {goog.ui.Component?}
|
|
400
|
+
* @private
|
|
401
|
+
*/
|
|
402
|
+
goog.ui.Component.prototype.parent_ = null;
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Array of child components. Lazily initialized on first use. Must be kept in
|
|
407
|
+
* sync with {@code childIndex_}. This property is strictly private and must
|
|
408
|
+
* not be accessed directly outside of this class!
|
|
409
|
+
* @type {Array.<goog.ui.Component>?}
|
|
410
|
+
* @private
|
|
411
|
+
*/
|
|
412
|
+
goog.ui.Component.prototype.children_ = null;
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* Map of child component IDs to child components. Used for constant-time
|
|
417
|
+
* random access to child components by ID. Lazily initialized on first use.
|
|
418
|
+
* Must be kept in sync with {@code children_}. This property is strictly
|
|
419
|
+
* private and must not be accessed directly outside of this class!
|
|
420
|
+
*
|
|
421
|
+
* We use a plain Object, not a {@link goog.structs.Map}, for simplicity.
|
|
422
|
+
* This means components can't have children with IDs such as 'constructor' or
|
|
423
|
+
* 'valueOf', but this shouldn't really be an issue in practice, and if it is,
|
|
424
|
+
* we can always fix it later without changing the API.
|
|
425
|
+
*
|
|
426
|
+
* @type {Object}
|
|
427
|
+
* @private
|
|
428
|
+
*/
|
|
429
|
+
goog.ui.Component.prototype.childIndex_ = null;
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Flag used to keep track of whether a component decorated an already existing
|
|
434
|
+
* element or whether it created the DOM itself.
|
|
435
|
+
*
|
|
436
|
+
* If an element is decorated, dispose will leave the node in the document.
|
|
437
|
+
* It is up to the app to remove the node.
|
|
438
|
+
*
|
|
439
|
+
* If an element was rendered, dispose will remove the node automatically.
|
|
440
|
+
*
|
|
441
|
+
* @type {boolean}
|
|
442
|
+
* @private
|
|
443
|
+
*/
|
|
444
|
+
goog.ui.Component.prototype.wasDecorated_ = false;
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Gets the unique ID for the instance of this component. If the instance
|
|
449
|
+
* doesn't already have an ID, generates one on the fly.
|
|
450
|
+
* @return {string} Unique component ID.
|
|
451
|
+
*/
|
|
452
|
+
goog.ui.Component.prototype.getId = function() {
|
|
453
|
+
return this.id_ || (this.id_ = this.idGenerator_.getNextUniqueId());
|
|
454
|
+
};
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* Assigns an ID to this component instance. It is the caller's responsibility
|
|
459
|
+
* to guarantee that the ID is unique. If the component is a child of a parent
|
|
460
|
+
* component, then the parent component's child index is updated to reflect the
|
|
461
|
+
* new ID; this may throw an error if the parent already has a child with an ID
|
|
462
|
+
* that conflicts with the new ID.
|
|
463
|
+
* @param {string} id Unique component ID.
|
|
464
|
+
*/
|
|
465
|
+
goog.ui.Component.prototype.setId = function(id) {
|
|
466
|
+
if (this.parent_ && this.parent_.childIndex_) {
|
|
467
|
+
// Update the parent's child index.
|
|
468
|
+
goog.object.remove(this.parent_.childIndex_, this.id_);
|
|
469
|
+
goog.object.add(this.parent_.childIndex_, id, this);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
// Update the component ID.
|
|
473
|
+
this.id_ = id;
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* Gets the component's element.
|
|
479
|
+
* @return {Element} The element for the component.
|
|
480
|
+
*/
|
|
481
|
+
goog.ui.Component.prototype.getElement = function() {
|
|
482
|
+
return this.element_;
|
|
483
|
+
};
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Gets the component's element. This differs from getElement in that
|
|
488
|
+
* it assumes that the element exists (i.e. the component has been
|
|
489
|
+
* rendered/decorated) and will cause an assertion error otherwise (if
|
|
490
|
+
* assertion is enabled).
|
|
491
|
+
* @return {!Element} The element for the component.
|
|
492
|
+
*/
|
|
493
|
+
goog.ui.Component.prototype.getElementStrict = function() {
|
|
494
|
+
var el = this.element_;
|
|
495
|
+
goog.asserts.assert(
|
|
496
|
+
el, 'Can not call getElementStrict before rendering/decorating.');
|
|
497
|
+
return el;
|
|
498
|
+
};
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Sets the component's root element to the given element. Considered
|
|
503
|
+
* protected and final.
|
|
504
|
+
*
|
|
505
|
+
* This should generally only be called during createDom. Setting the element
|
|
506
|
+
* does not actually change which element is rendered, only the element that is
|
|
507
|
+
* associated with this UI component.
|
|
508
|
+
*
|
|
509
|
+
* This should only be used by subclasses and its associated renderers.
|
|
510
|
+
*
|
|
511
|
+
* @param {Element} element Root element for the component.
|
|
512
|
+
*/
|
|
513
|
+
goog.ui.Component.prototype.setElementInternal = function(element) {
|
|
514
|
+
this.element_ = element;
|
|
515
|
+
};
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* Returns an array of all the elements in this component's DOM with the
|
|
520
|
+
* provided className.
|
|
521
|
+
* @param {string} className The name of the class to look for.
|
|
522
|
+
* @return {!goog.array.ArrayLike} The items found with the class name provided.
|
|
523
|
+
*/
|
|
524
|
+
goog.ui.Component.prototype.getElementsByClass = function(className) {
|
|
525
|
+
return this.element_ ?
|
|
526
|
+
this.dom_.getElementsByClass(className, this.element_) : [];
|
|
527
|
+
};
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Returns the first element in this component's DOM with the provided
|
|
532
|
+
* className.
|
|
533
|
+
* @param {string} className The name of the class to look for.
|
|
534
|
+
* @return {Element} The first item with the class name provided.
|
|
535
|
+
*/
|
|
536
|
+
goog.ui.Component.prototype.getElementByClass = function(className) {
|
|
537
|
+
return this.element_ ?
|
|
538
|
+
this.dom_.getElementByClass(className, this.element_) : null;
|
|
539
|
+
};
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* Similar to {@code getElementByClass} except that it expects the
|
|
544
|
+
* element to be present in the dom thus returning a required value. Otherwise,
|
|
545
|
+
* will assert.
|
|
546
|
+
* @param {string} className The name of the class to look for.
|
|
547
|
+
* @return {!Element} The first item with the class name provided.
|
|
548
|
+
*/
|
|
549
|
+
goog.ui.Component.prototype.getRequiredElementByClass = function(className) {
|
|
550
|
+
var el = this.getElementByClass(className);
|
|
551
|
+
goog.asserts.assert(el, 'Expected element in component with class: %s',
|
|
552
|
+
className);
|
|
553
|
+
return el;
|
|
554
|
+
};
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* Returns the event handler for this component, lazily created the first time
|
|
559
|
+
* this method is called.
|
|
560
|
+
* @return {!goog.events.EventHandler} Event handler for this component.
|
|
561
|
+
* @protected
|
|
562
|
+
*/
|
|
563
|
+
goog.ui.Component.prototype.getHandler = function() {
|
|
564
|
+
return this.googUiComponentHandler_ ||
|
|
565
|
+
(this.googUiComponentHandler_ = new goog.events.EventHandler(this));
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* Sets the parent of this component to use for event bubbling. Throws an error
|
|
571
|
+
* if the component already has a parent or if an attempt is made to add a
|
|
572
|
+
* component to itself as a child. Callers must use {@code removeChild}
|
|
573
|
+
* or {@code removeChildAt} to remove components from their containers before
|
|
574
|
+
* calling this method.
|
|
575
|
+
* @see goog.ui.Component#removeChild
|
|
576
|
+
* @see goog.ui.Component#removeChildAt
|
|
577
|
+
* @param {goog.ui.Component} parent The parent component.
|
|
578
|
+
*/
|
|
579
|
+
goog.ui.Component.prototype.setParent = function(parent) {
|
|
580
|
+
if (this == parent) {
|
|
581
|
+
// Attempting to add a child to itself is an error.
|
|
582
|
+
throw Error(goog.ui.Component.Error.PARENT_UNABLE_TO_BE_SET);
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
if (parent && this.parent_ && this.id_ && this.parent_.getChild(this.id_) &&
|
|
586
|
+
this.parent_ != parent) {
|
|
587
|
+
// This component is already the child of some parent, so it should be
|
|
588
|
+
// removed using removeChild/removeChildAt first.
|
|
589
|
+
throw Error(goog.ui.Component.Error.PARENT_UNABLE_TO_BE_SET);
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
this.parent_ = parent;
|
|
593
|
+
goog.ui.Component.superClass_.setParentEventTarget.call(this, parent);
|
|
594
|
+
};
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* Returns the component's parent, if any.
|
|
599
|
+
* @return {goog.ui.Component?} The parent component.
|
|
600
|
+
*/
|
|
601
|
+
goog.ui.Component.prototype.getParent = function() {
|
|
602
|
+
return this.parent_;
|
|
603
|
+
};
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Overrides {@link goog.events.EventTarget#setParentEventTarget} to throw an
|
|
608
|
+
* error if the parent component is set, and the argument is not the parent.
|
|
609
|
+
* @override
|
|
610
|
+
*/
|
|
611
|
+
goog.ui.Component.prototype.setParentEventTarget = function(parent) {
|
|
612
|
+
if (this.parent_ && this.parent_ != parent) {
|
|
613
|
+
throw Error(goog.ui.Component.Error.NOT_SUPPORTED);
|
|
614
|
+
}
|
|
615
|
+
goog.ui.Component.superClass_.setParentEventTarget.call(this, parent);
|
|
616
|
+
};
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* Returns the dom helper that is being used on this component.
|
|
621
|
+
* @return {!goog.dom.DomHelper} The dom helper used on this component.
|
|
622
|
+
*/
|
|
623
|
+
goog.ui.Component.prototype.getDomHelper = function() {
|
|
624
|
+
return this.dom_;
|
|
625
|
+
};
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* Determines whether the component has been added to the document.
|
|
630
|
+
* @return {boolean} TRUE if rendered. Otherwise, FALSE.
|
|
631
|
+
*/
|
|
632
|
+
goog.ui.Component.prototype.isInDocument = function() {
|
|
633
|
+
return this.inDocument_;
|
|
634
|
+
};
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* Creates the initial DOM representation for the component. The default
|
|
639
|
+
* implementation is to set this.element_ = div.
|
|
640
|
+
*/
|
|
641
|
+
goog.ui.Component.prototype.createDom = function() {
|
|
642
|
+
this.element_ = this.dom_.createElement('div');
|
|
643
|
+
};
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* Renders the component. If a parent element is supplied, the component's
|
|
648
|
+
* element will be appended to it. If there is no optional parent element and
|
|
649
|
+
* the element doesn't have a parentNode then it will be appended to the
|
|
650
|
+
* document body.
|
|
651
|
+
*
|
|
652
|
+
* If this component has a parent component, and the parent component is
|
|
653
|
+
* not in the document already, then this will not call {@code enterDocument}
|
|
654
|
+
* on this component.
|
|
655
|
+
*
|
|
656
|
+
* Throws an Error if the component is already rendered.
|
|
657
|
+
*
|
|
658
|
+
* @param {Element=} opt_parentElement Optional parent element to render the
|
|
659
|
+
* component into.
|
|
660
|
+
*/
|
|
661
|
+
goog.ui.Component.prototype.render = function(opt_parentElement) {
|
|
662
|
+
this.render_(opt_parentElement);
|
|
663
|
+
};
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* Renders the component before another element. The other element should be in
|
|
668
|
+
* the document already.
|
|
669
|
+
*
|
|
670
|
+
* Throws an Error if the component is already rendered.
|
|
671
|
+
*
|
|
672
|
+
* @param {Node} sibling Node to render the component before.
|
|
673
|
+
*/
|
|
674
|
+
goog.ui.Component.prototype.renderBefore = function(sibling) {
|
|
675
|
+
this.render_(/** @type {Element} */ (sibling.parentNode),
|
|
676
|
+
sibling);
|
|
677
|
+
};
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* Renders the component. If a parent element is supplied, the component's
|
|
682
|
+
* element will be appended to it. If there is no optional parent element and
|
|
683
|
+
* the element doesn't have a parentNode then it will be appended to the
|
|
684
|
+
* document body.
|
|
685
|
+
*
|
|
686
|
+
* If this component has a parent component, and the parent component is
|
|
687
|
+
* not in the document already, then this will not call {@code enterDocument}
|
|
688
|
+
* on this component.
|
|
689
|
+
*
|
|
690
|
+
* Throws an Error if the component is already rendered.
|
|
691
|
+
*
|
|
692
|
+
* @param {Element=} opt_parentElement Optional parent element to render the
|
|
693
|
+
* component into.
|
|
694
|
+
* @param {Node=} opt_beforeNode Node before which the component is to
|
|
695
|
+
* be rendered. If left out the node is appended to the parent element.
|
|
696
|
+
* @private
|
|
697
|
+
*/
|
|
698
|
+
goog.ui.Component.prototype.render_ = function(opt_parentElement,
|
|
699
|
+
opt_beforeNode) {
|
|
700
|
+
if (this.inDocument_) {
|
|
701
|
+
throw Error(goog.ui.Component.Error.ALREADY_RENDERED);
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
if (!this.element_) {
|
|
705
|
+
this.createDom();
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
if (opt_parentElement) {
|
|
709
|
+
opt_parentElement.insertBefore(this.element_, opt_beforeNode || null);
|
|
710
|
+
} else {
|
|
711
|
+
this.dom_.getDocument().body.appendChild(this.element_);
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
// If this component has a parent component that isn't in the document yet,
|
|
715
|
+
// we don't call enterDocument() here. Instead, when the parent component
|
|
716
|
+
// enters the document, the enterDocument() call will propagate to its
|
|
717
|
+
// children, including this one. If the component doesn't have a parent
|
|
718
|
+
// or if the parent is already in the document, we call enterDocument().
|
|
719
|
+
if (!this.parent_ || this.parent_.isInDocument()) {
|
|
720
|
+
this.enterDocument();
|
|
721
|
+
}
|
|
722
|
+
};
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
/**
|
|
726
|
+
* Decorates the element for the UI component. If the element is in the
|
|
727
|
+
* document, the enterDocument method will be called.
|
|
728
|
+
*
|
|
729
|
+
* If goog.ui.Component.ALLOW_DETACHED_DECORATION is false, the caller must
|
|
730
|
+
* pass an element that is in the document.
|
|
731
|
+
*
|
|
732
|
+
* @param {Element} element Element to decorate.
|
|
733
|
+
*/
|
|
734
|
+
goog.ui.Component.prototype.decorate = function(element) {
|
|
735
|
+
if (this.inDocument_) {
|
|
736
|
+
throw Error(goog.ui.Component.Error.ALREADY_RENDERED);
|
|
737
|
+
} else if (element && this.canDecorate(element)) {
|
|
738
|
+
this.wasDecorated_ = true;
|
|
739
|
+
|
|
740
|
+
// Set the DOM helper of the component to match the decorated element.
|
|
741
|
+
var doc = goog.dom.getOwnerDocument(element);
|
|
742
|
+
if (!this.dom_ || this.dom_.getDocument() != doc) {
|
|
743
|
+
this.dom_ = goog.dom.getDomHelper(element);
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
// Call specific component decorate logic.
|
|
747
|
+
this.decorateInternal(element);
|
|
748
|
+
|
|
749
|
+
// If supporting detached decoration, check that element is in doc.
|
|
750
|
+
if (!goog.ui.Component.ALLOW_DETACHED_DECORATION ||
|
|
751
|
+
goog.dom.contains(doc, element)) {
|
|
752
|
+
this.enterDocument();
|
|
753
|
+
}
|
|
754
|
+
} else {
|
|
755
|
+
throw Error(goog.ui.Component.Error.DECORATE_INVALID);
|
|
756
|
+
}
|
|
757
|
+
};
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* Determines if a given element can be decorated by this type of component.
|
|
762
|
+
* This method should be overridden by inheriting objects.
|
|
763
|
+
* @param {Element} element Element to decorate.
|
|
764
|
+
* @return {boolean} True if the element can be decorated, false otherwise.
|
|
765
|
+
*/
|
|
766
|
+
goog.ui.Component.prototype.canDecorate = function(element) {
|
|
767
|
+
return true;
|
|
768
|
+
};
|
|
769
|
+
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* @return {boolean} Whether the component was decorated.
|
|
773
|
+
*/
|
|
774
|
+
goog.ui.Component.prototype.wasDecorated = function() {
|
|
775
|
+
return this.wasDecorated_;
|
|
776
|
+
};
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
/**
|
|
780
|
+
* Actually decorates the element. Should be overridden by inheriting objects.
|
|
781
|
+
* This method can assume there are checks to ensure the component has not
|
|
782
|
+
* already been rendered have occurred and that enter document will be called
|
|
783
|
+
* afterwards. This method is considered protected.
|
|
784
|
+
* @param {Element} element Element to decorate.
|
|
785
|
+
* @protected
|
|
786
|
+
*/
|
|
787
|
+
goog.ui.Component.prototype.decorateInternal = function(element) {
|
|
788
|
+
this.element_ = element;
|
|
789
|
+
};
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* Called when the component's element is known to be in the document. Anything
|
|
794
|
+
* using document.getElementById etc. should be done at this stage.
|
|
795
|
+
*
|
|
796
|
+
* If the component contains child components, this call is propagated to its
|
|
797
|
+
* children.
|
|
798
|
+
*/
|
|
799
|
+
goog.ui.Component.prototype.enterDocument = function() {
|
|
800
|
+
this.inDocument_ = true;
|
|
801
|
+
|
|
802
|
+
// Propagate enterDocument to child components that have a DOM, if any.
|
|
803
|
+
// If a child was decorated before entering the document (permitted when
|
|
804
|
+
// goog.ui.Component.ALLOW_DETACHED_DECORATION is true), its enterDocument
|
|
805
|
+
// will be called here.
|
|
806
|
+
this.forEachChild(function(child) {
|
|
807
|
+
if (!child.isInDocument() && child.getElement()) {
|
|
808
|
+
child.enterDocument();
|
|
809
|
+
}
|
|
810
|
+
});
|
|
811
|
+
};
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
/**
|
|
815
|
+
* Called by dispose to clean up the elements and listeners created by a
|
|
816
|
+
* component, or by a parent component/application who has removed the
|
|
817
|
+
* component from the document but wants to reuse it later.
|
|
818
|
+
*
|
|
819
|
+
* If the component contains child components, this call is propagated to its
|
|
820
|
+
* children.
|
|
821
|
+
*
|
|
822
|
+
* It should be possible for the component to be rendered again once this method
|
|
823
|
+
* has been called.
|
|
824
|
+
*/
|
|
825
|
+
goog.ui.Component.prototype.exitDocument = function() {
|
|
826
|
+
// Propagate exitDocument to child components that have been rendered, if any.
|
|
827
|
+
this.forEachChild(function(child) {
|
|
828
|
+
if (child.isInDocument()) {
|
|
829
|
+
child.exitDocument();
|
|
830
|
+
}
|
|
831
|
+
});
|
|
832
|
+
|
|
833
|
+
if (this.googUiComponentHandler_) {
|
|
834
|
+
this.googUiComponentHandler_.removeAll();
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
this.inDocument_ = false;
|
|
838
|
+
};
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* Disposes of the component. Calls {@code exitDocument}, which is expected to
|
|
843
|
+
* remove event handlers and clean up the component. Propagates the call to
|
|
844
|
+
* the component's children, if any. Removes the component's DOM from the
|
|
845
|
+
* document unless it was decorated.
|
|
846
|
+
* @override
|
|
847
|
+
* @protected
|
|
848
|
+
*/
|
|
849
|
+
goog.ui.Component.prototype.disposeInternal = function() {
|
|
850
|
+
if (this.inDocument_) {
|
|
851
|
+
this.exitDocument();
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
if (this.googUiComponentHandler_) {
|
|
855
|
+
this.googUiComponentHandler_.dispose();
|
|
856
|
+
delete this.googUiComponentHandler_;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
// Disposes of the component's children, if any.
|
|
860
|
+
this.forEachChild(function(child) {
|
|
861
|
+
child.dispose();
|
|
862
|
+
});
|
|
863
|
+
|
|
864
|
+
// Detach the component's element from the DOM, unless it was decorated.
|
|
865
|
+
if (!this.wasDecorated_ && this.element_) {
|
|
866
|
+
goog.dom.removeNode(this.element_);
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
this.children_ = null;
|
|
870
|
+
this.childIndex_ = null;
|
|
871
|
+
this.element_ = null;
|
|
872
|
+
this.model_ = null;
|
|
873
|
+
this.parent_ = null;
|
|
874
|
+
|
|
875
|
+
goog.ui.Component.superClass_.disposeInternal.call(this);
|
|
876
|
+
};
|
|
877
|
+
|
|
878
|
+
|
|
879
|
+
/**
|
|
880
|
+
* Helper function for subclasses that gets a unique id for a given fragment,
|
|
881
|
+
* this can be used by components to generate unique string ids for DOM
|
|
882
|
+
* elements.
|
|
883
|
+
* @param {string} idFragment A partial id.
|
|
884
|
+
* @return {string} Unique element id.
|
|
885
|
+
*/
|
|
886
|
+
goog.ui.Component.prototype.makeId = function(idFragment) {
|
|
887
|
+
return this.getId() + '.' + idFragment;
|
|
888
|
+
};
|
|
889
|
+
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* Makes a collection of ids. This is a convenience method for makeId. The
|
|
893
|
+
* object's values are the id fragments and the new values are the generated
|
|
894
|
+
* ids. The key will remain the same.
|
|
895
|
+
* @param {Object} object The object that will be used to create the ids.
|
|
896
|
+
* @return {Object} An object of id keys to generated ids.
|
|
897
|
+
*/
|
|
898
|
+
goog.ui.Component.prototype.makeIds = function(object) {
|
|
899
|
+
var ids = {};
|
|
900
|
+
for (var key in object) {
|
|
901
|
+
ids[key] = this.makeId(object[key]);
|
|
902
|
+
}
|
|
903
|
+
return ids;
|
|
904
|
+
};
|
|
905
|
+
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* Returns the model associated with the UI component.
|
|
909
|
+
* @return {*} The model.
|
|
910
|
+
*/
|
|
911
|
+
goog.ui.Component.prototype.getModel = function() {
|
|
912
|
+
return this.model_;
|
|
913
|
+
};
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* Sets the model associated with the UI component.
|
|
918
|
+
* @param {*} obj The model.
|
|
919
|
+
*/
|
|
920
|
+
goog.ui.Component.prototype.setModel = function(obj) {
|
|
921
|
+
this.model_ = obj;
|
|
922
|
+
};
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
/**
|
|
926
|
+
* Helper function for returning the fragment portion of an id generated using
|
|
927
|
+
* makeId().
|
|
928
|
+
* @param {string} id Id generated with makeId().
|
|
929
|
+
* @return {string} Fragment.
|
|
930
|
+
*/
|
|
931
|
+
goog.ui.Component.prototype.getFragmentFromId = function(id) {
|
|
932
|
+
return id.substring(this.getId().length + 1);
|
|
933
|
+
};
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* Helper function for returning an element in the document with a unique id
|
|
938
|
+
* generated using makeId().
|
|
939
|
+
* @param {string} idFragment The partial id.
|
|
940
|
+
* @return {Element} The element with the unique id, or null if it cannot be
|
|
941
|
+
* found.
|
|
942
|
+
*/
|
|
943
|
+
goog.ui.Component.prototype.getElementByFragment = function(idFragment) {
|
|
944
|
+
if (!this.inDocument_) {
|
|
945
|
+
throw Error(goog.ui.Component.Error.NOT_IN_DOCUMENT);
|
|
946
|
+
}
|
|
947
|
+
return this.dom_.getElement(this.makeId(idFragment));
|
|
948
|
+
};
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
/**
|
|
952
|
+
* Adds the specified component as the last child of this component. See
|
|
953
|
+
* {@link goog.ui.Component#addChildAt} for detailed semantics.
|
|
954
|
+
*
|
|
955
|
+
* @see goog.ui.Component#addChildAt
|
|
956
|
+
* @param {goog.ui.Component} child The new child component.
|
|
957
|
+
* @param {boolean=} opt_render If true, the child component will be rendered
|
|
958
|
+
* into the parent.
|
|
959
|
+
*/
|
|
960
|
+
goog.ui.Component.prototype.addChild = function(child, opt_render) {
|
|
961
|
+
// TODO(gboyer): addChildAt(child, this.getChildCount(), false) will
|
|
962
|
+
// reposition any already-rendered child to the end. Instead, perhaps
|
|
963
|
+
// addChild(child, false) should never reposition the child; instead, clients
|
|
964
|
+
// that need the repositioning will use addChildAt explicitly. Right now,
|
|
965
|
+
// clients can get around this by calling addChild first.
|
|
966
|
+
this.addChildAt(child, this.getChildCount(), opt_render);
|
|
967
|
+
};
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* Adds the specified component as a child of this component at the given
|
|
972
|
+
* 0-based index.
|
|
973
|
+
*
|
|
974
|
+
* Both {@code addChild} and {@code addChildAt} assume the following contract
|
|
975
|
+
* between parent and child components:
|
|
976
|
+
* <ul>
|
|
977
|
+
* <li>the child component's element must be a descendant of the parent
|
|
978
|
+
* component's element, and
|
|
979
|
+
* <li>the DOM state of the child component must be consistent with the DOM
|
|
980
|
+
* state of the parent component (see {@code isInDocument}) in the
|
|
981
|
+
* steady state -- the exception is to addChildAt(child, i, false) and
|
|
982
|
+
* then immediately decorate/render the child.
|
|
983
|
+
* </ul>
|
|
984
|
+
*
|
|
985
|
+
* In particular, {@code parent.addChild(child)} will throw an error if the
|
|
986
|
+
* child component is already in the document, but the parent isn't.
|
|
987
|
+
*
|
|
988
|
+
* Clients of this API may call {@code addChild} and {@code addChildAt} with
|
|
989
|
+
* {@code opt_render} set to true. If {@code opt_render} is true, calling these
|
|
990
|
+
* methods will automatically render the child component's element into the
|
|
991
|
+
* parent component's element. If the parent does not yet have an element, then
|
|
992
|
+
* {@code createDom} will automatically be invoked on the parent before
|
|
993
|
+
* rendering the child.
|
|
994
|
+
*
|
|
995
|
+
* Invoking {@code parent.addChild(child, true)} will throw an error if the
|
|
996
|
+
* child component is already in the document, regardless of the parent's DOM
|
|
997
|
+
* state.
|
|
998
|
+
*
|
|
999
|
+
* If {@code opt_render} is true and the parent component is not already
|
|
1000
|
+
* in the document, {@code enterDocument} will not be called on this component
|
|
1001
|
+
* at this point.
|
|
1002
|
+
*
|
|
1003
|
+
* Finally, this method also throws an error if the new child already has a
|
|
1004
|
+
* different parent, or the given index is out of bounds.
|
|
1005
|
+
*
|
|
1006
|
+
* @see goog.ui.Component#addChild
|
|
1007
|
+
* @param {goog.ui.Component} child The new child component.
|
|
1008
|
+
* @param {number} index 0-based index at which the new child component is to be
|
|
1009
|
+
* added; must be between 0 and the current child count (inclusive).
|
|
1010
|
+
* @param {boolean=} opt_render If true, the child component will be rendered
|
|
1011
|
+
* into the parent.
|
|
1012
|
+
* @return {void} Nada.
|
|
1013
|
+
*/
|
|
1014
|
+
goog.ui.Component.prototype.addChildAt = function(child, index, opt_render) {
|
|
1015
|
+
if (child.inDocument_ && (opt_render || !this.inDocument_)) {
|
|
1016
|
+
// Adding a child that's already in the document is an error, except if the
|
|
1017
|
+
// parent is also in the document and opt_render is false (e.g. decorate()).
|
|
1018
|
+
throw Error(goog.ui.Component.Error.ALREADY_RENDERED);
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
if (index < 0 || index > this.getChildCount()) {
|
|
1022
|
+
// Allowing sparse child arrays would lead to strange behavior, so we don't.
|
|
1023
|
+
throw Error(goog.ui.Component.Error.CHILD_INDEX_OUT_OF_BOUNDS);
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
// Create the index and the child array on first use.
|
|
1027
|
+
if (!this.childIndex_ || !this.children_) {
|
|
1028
|
+
this.childIndex_ = {};
|
|
1029
|
+
this.children_ = [];
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
// Moving child within component, remove old reference.
|
|
1033
|
+
if (child.getParent() == this) {
|
|
1034
|
+
goog.object.set(this.childIndex_, child.getId(), child);
|
|
1035
|
+
goog.array.remove(this.children_, child);
|
|
1036
|
+
|
|
1037
|
+
// Add the child to this component. goog.object.add() throws an error if
|
|
1038
|
+
// a child with the same ID already exists.
|
|
1039
|
+
} else {
|
|
1040
|
+
goog.object.add(this.childIndex_, child.getId(), child);
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
// Set the parent of the child to this component. This throws an error if
|
|
1044
|
+
// the child is already contained by another component.
|
|
1045
|
+
child.setParent(this);
|
|
1046
|
+
goog.array.insertAt(this.children_, child, index);
|
|
1047
|
+
|
|
1048
|
+
if (child.inDocument_ && this.inDocument_ && child.getParent() == this) {
|
|
1049
|
+
// Changing the position of an existing child, move the DOM node.
|
|
1050
|
+
var contentElement = this.getContentElement();
|
|
1051
|
+
contentElement.insertBefore(child.getElement(),
|
|
1052
|
+
(contentElement.childNodes[index] || null));
|
|
1053
|
+
|
|
1054
|
+
} else if (opt_render) {
|
|
1055
|
+
// If this (parent) component doesn't have a DOM yet, call createDom now
|
|
1056
|
+
// to make sure we render the child component's element into the correct
|
|
1057
|
+
// parent element (otherwise render_ with a null first argument would
|
|
1058
|
+
// render the child into the document body, which is almost certainly not
|
|
1059
|
+
// what we want).
|
|
1060
|
+
if (!this.element_) {
|
|
1061
|
+
this.createDom();
|
|
1062
|
+
}
|
|
1063
|
+
// Render the child into the parent at the appropriate location. Note that
|
|
1064
|
+
// getChildAt(index + 1) returns undefined if inserting at the end.
|
|
1065
|
+
// TODO(attila): We should have a renderer with a renderChildAt API.
|
|
1066
|
+
var sibling = this.getChildAt(index + 1);
|
|
1067
|
+
// render_() calls enterDocument() if the parent is already in the document.
|
|
1068
|
+
child.render_(this.getContentElement(), sibling ? sibling.element_ : null);
|
|
1069
|
+
} else if (this.inDocument_ && !child.inDocument_ && child.element_ &&
|
|
1070
|
+
child.element_.parentNode &&
|
|
1071
|
+
// Under some circumstances, IE8 implicitly creates a Document Fragment
|
|
1072
|
+
// for detached nodes, so ensure the parent is an Element as it should be.
|
|
1073
|
+
child.element_.parentNode.nodeType == goog.dom.NodeType.ELEMENT) {
|
|
1074
|
+
// We don't touch the DOM, but if the parent is in the document, and the
|
|
1075
|
+
// child element is in the document but not marked as such, then we call
|
|
1076
|
+
// enterDocument on the child.
|
|
1077
|
+
// TODO(gboyer): It would be nice to move this condition entirely, but
|
|
1078
|
+
// there's a large risk of breaking existing applications that manually
|
|
1079
|
+
// append the child to the DOM and then call addChild.
|
|
1080
|
+
child.enterDocument();
|
|
1081
|
+
}
|
|
1082
|
+
};
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
/**
|
|
1086
|
+
* Returns the DOM element into which child components are to be rendered,
|
|
1087
|
+
* or null if the component itself hasn't been rendered yet. This default
|
|
1088
|
+
* implementation returns the component's root element. Subclasses with
|
|
1089
|
+
* complex DOM structures must override this method.
|
|
1090
|
+
* @return {Element} Element to contain child elements (null if none).
|
|
1091
|
+
*/
|
|
1092
|
+
goog.ui.Component.prototype.getContentElement = function() {
|
|
1093
|
+
return this.element_;
|
|
1094
|
+
};
|
|
1095
|
+
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* Returns true if the component is rendered right-to-left, false otherwise.
|
|
1099
|
+
* The first time this function is invoked, the right-to-left rendering property
|
|
1100
|
+
* is set if it has not been already.
|
|
1101
|
+
* @return {boolean} Whether the control is rendered right-to-left.
|
|
1102
|
+
*/
|
|
1103
|
+
goog.ui.Component.prototype.isRightToLeft = function() {
|
|
1104
|
+
if (this.rightToLeft_ == null) {
|
|
1105
|
+
this.rightToLeft_ = goog.style.isRightToLeft(this.inDocument_ ?
|
|
1106
|
+
this.element_ : this.dom_.getDocument().body);
|
|
1107
|
+
}
|
|
1108
|
+
return /** @type {boolean} */(this.rightToLeft_);
|
|
1109
|
+
};
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
/**
|
|
1113
|
+
* Set is right-to-left. This function should be used if the component needs
|
|
1114
|
+
* to know the rendering direction during dom creation (i.e. before
|
|
1115
|
+
* {@link #enterDocument} is called and is right-to-left is set).
|
|
1116
|
+
* @param {boolean} rightToLeft Whether the component is rendered
|
|
1117
|
+
* right-to-left.
|
|
1118
|
+
*/
|
|
1119
|
+
goog.ui.Component.prototype.setRightToLeft = function(rightToLeft) {
|
|
1120
|
+
if (this.inDocument_) {
|
|
1121
|
+
throw Error(goog.ui.Component.Error.ALREADY_RENDERED);
|
|
1122
|
+
}
|
|
1123
|
+
this.rightToLeft_ = rightToLeft;
|
|
1124
|
+
};
|
|
1125
|
+
|
|
1126
|
+
|
|
1127
|
+
/**
|
|
1128
|
+
* Returns true if the component has children.
|
|
1129
|
+
* @return {boolean} True if the component has children.
|
|
1130
|
+
*/
|
|
1131
|
+
goog.ui.Component.prototype.hasChildren = function() {
|
|
1132
|
+
return !!this.children_ && this.children_.length != 0;
|
|
1133
|
+
};
|
|
1134
|
+
|
|
1135
|
+
|
|
1136
|
+
/**
|
|
1137
|
+
* Returns the number of children of this component.
|
|
1138
|
+
* @return {number} The number of children.
|
|
1139
|
+
*/
|
|
1140
|
+
goog.ui.Component.prototype.getChildCount = function() {
|
|
1141
|
+
return this.children_ ? this.children_.length : 0;
|
|
1142
|
+
};
|
|
1143
|
+
|
|
1144
|
+
|
|
1145
|
+
/**
|
|
1146
|
+
* Returns an array containing the IDs of the children of this component, or an
|
|
1147
|
+
* empty array if the component has no children.
|
|
1148
|
+
* @return {Array.<string>} Child component IDs.
|
|
1149
|
+
*/
|
|
1150
|
+
goog.ui.Component.prototype.getChildIds = function() {
|
|
1151
|
+
var ids = [];
|
|
1152
|
+
|
|
1153
|
+
// We don't use goog.object.getKeys(this.childIndex_) because we want to
|
|
1154
|
+
// return the IDs in the correct order as determined by this.children_.
|
|
1155
|
+
this.forEachChild(function(child) {
|
|
1156
|
+
// addChild()/addChildAt() guarantee that the child array isn't sparse.
|
|
1157
|
+
ids.push(child.getId());
|
|
1158
|
+
});
|
|
1159
|
+
|
|
1160
|
+
return ids;
|
|
1161
|
+
};
|
|
1162
|
+
|
|
1163
|
+
|
|
1164
|
+
/**
|
|
1165
|
+
* Returns the child with the given ID, or null if no such child exists.
|
|
1166
|
+
* @param {string} id Child component ID.
|
|
1167
|
+
* @return {goog.ui.Component?} The child with the given ID; null if none.
|
|
1168
|
+
*/
|
|
1169
|
+
goog.ui.Component.prototype.getChild = function(id) {
|
|
1170
|
+
// Use childIndex_ for O(1) access by ID.
|
|
1171
|
+
return (this.childIndex_ && id) ? /** @type {goog.ui.Component} */ (
|
|
1172
|
+
goog.object.get(this.childIndex_, id)) || null : null;
|
|
1173
|
+
};
|
|
1174
|
+
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* Returns the child at the given index, or null if the index is out of bounds.
|
|
1178
|
+
* @param {number} index 0-based index.
|
|
1179
|
+
* @return {goog.ui.Component?} The child at the given index; null if none.
|
|
1180
|
+
*/
|
|
1181
|
+
goog.ui.Component.prototype.getChildAt = function(index) {
|
|
1182
|
+
// Use children_ for access by index.
|
|
1183
|
+
return this.children_ ? this.children_[index] || null : null;
|
|
1184
|
+
};
|
|
1185
|
+
|
|
1186
|
+
|
|
1187
|
+
/**
|
|
1188
|
+
* Calls the given function on each of this component's children in order. If
|
|
1189
|
+
* {@code opt_obj} is provided, it will be used as the 'this' object in the
|
|
1190
|
+
* function when called. The function should take two arguments: the child
|
|
1191
|
+
* component and its 0-based index. The return value is ignored.
|
|
1192
|
+
* @param {function(this:T,?,number):?} f The function to call for every
|
|
1193
|
+
* child component; should take 2 arguments (the child and its index).
|
|
1194
|
+
* @param {T=} opt_obj Used as the 'this' object in f when called.
|
|
1195
|
+
* @template T
|
|
1196
|
+
*/
|
|
1197
|
+
goog.ui.Component.prototype.forEachChild = function(f, opt_obj) {
|
|
1198
|
+
if (this.children_) {
|
|
1199
|
+
goog.array.forEach(this.children_, f, opt_obj);
|
|
1200
|
+
}
|
|
1201
|
+
};
|
|
1202
|
+
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* Returns the 0-based index of the given child component, or -1 if no such
|
|
1206
|
+
* child is found.
|
|
1207
|
+
* @param {goog.ui.Component?} child The child component.
|
|
1208
|
+
* @return {number} 0-based index of the child component; -1 if not found.
|
|
1209
|
+
*/
|
|
1210
|
+
goog.ui.Component.prototype.indexOfChild = function(child) {
|
|
1211
|
+
return (this.children_ && child) ? goog.array.indexOf(this.children_, child) :
|
|
1212
|
+
-1;
|
|
1213
|
+
};
|
|
1214
|
+
|
|
1215
|
+
|
|
1216
|
+
/**
|
|
1217
|
+
* Removes the given child from this component, and returns it. Throws an error
|
|
1218
|
+
* if the argument is invalid or if the specified child isn't found in the
|
|
1219
|
+
* parent component. The argument can either be a string (interpreted as the
|
|
1220
|
+
* ID of the child component to remove) or the child component itself.
|
|
1221
|
+
*
|
|
1222
|
+
* If {@code opt_unrender} is true, calls {@link goog.ui.component#exitDocument}
|
|
1223
|
+
* on the removed child, and subsequently detaches the child's DOM from the
|
|
1224
|
+
* document. Otherwise it is the caller's responsibility to clean up the child
|
|
1225
|
+
* component's DOM.
|
|
1226
|
+
*
|
|
1227
|
+
* @see goog.ui.Component#removeChildAt
|
|
1228
|
+
* @param {string|goog.ui.Component|null} child The ID of the child to remove,
|
|
1229
|
+
* or the child component itself.
|
|
1230
|
+
* @param {boolean=} opt_unrender If true, calls {@code exitDocument} on the
|
|
1231
|
+
* removed child component, and detaches its DOM from the document.
|
|
1232
|
+
* @return {goog.ui.Component} The removed component, if any.
|
|
1233
|
+
*/
|
|
1234
|
+
goog.ui.Component.prototype.removeChild = function(child, opt_unrender) {
|
|
1235
|
+
if (child) {
|
|
1236
|
+
// Normalize child to be the object and id to be the ID string. This also
|
|
1237
|
+
// ensures that the child is really ours.
|
|
1238
|
+
var id = goog.isString(child) ? child : child.getId();
|
|
1239
|
+
child = this.getChild(id);
|
|
1240
|
+
|
|
1241
|
+
if (id && child) {
|
|
1242
|
+
goog.object.remove(this.childIndex_, id);
|
|
1243
|
+
goog.array.remove(this.children_, child);
|
|
1244
|
+
|
|
1245
|
+
if (opt_unrender) {
|
|
1246
|
+
// Remove the child component's DOM from the document. We have to call
|
|
1247
|
+
// exitDocument first (see documentation).
|
|
1248
|
+
child.exitDocument();
|
|
1249
|
+
if (child.element_) {
|
|
1250
|
+
goog.dom.removeNode(child.element_);
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
// Child's parent must be set to null after exitDocument is called
|
|
1255
|
+
// so that the child can unlisten to its parent if required.
|
|
1256
|
+
child.setParent(null);
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
if (!child) {
|
|
1261
|
+
throw Error(goog.ui.Component.Error.NOT_OUR_CHILD);
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
return /** @type {goog.ui.Component} */(child);
|
|
1265
|
+
};
|
|
1266
|
+
|
|
1267
|
+
|
|
1268
|
+
/**
|
|
1269
|
+
* Removes the child at the given index from this component, and returns it.
|
|
1270
|
+
* Throws an error if the argument is out of bounds, or if the specified child
|
|
1271
|
+
* isn't found in the parent. See {@link goog.ui.Component#removeChild} for
|
|
1272
|
+
* detailed semantics.
|
|
1273
|
+
*
|
|
1274
|
+
* @see goog.ui.Component#removeChild
|
|
1275
|
+
* @param {number} index 0-based index of the child to remove.
|
|
1276
|
+
* @param {boolean=} opt_unrender If true, calls {@code exitDocument} on the
|
|
1277
|
+
* removed child component, and detaches its DOM from the document.
|
|
1278
|
+
* @return {goog.ui.Component} The removed component, if any.
|
|
1279
|
+
*/
|
|
1280
|
+
goog.ui.Component.prototype.removeChildAt = function(index, opt_unrender) {
|
|
1281
|
+
// removeChild(null) will throw error.
|
|
1282
|
+
return this.removeChild(this.getChildAt(index), opt_unrender);
|
|
1283
|
+
};
|
|
1284
|
+
|
|
1285
|
+
|
|
1286
|
+
/**
|
|
1287
|
+
* Removes every child component attached to this one and returns them.
|
|
1288
|
+
*
|
|
1289
|
+
* @see goog.ui.Component#removeChild
|
|
1290
|
+
* @param {boolean=} opt_unrender If true, calls {@link #exitDocument} on the
|
|
1291
|
+
* removed child components, and detaches their DOM from the document.
|
|
1292
|
+
* @return {!Array.<goog.ui.Component>} The removed components if any.
|
|
1293
|
+
*/
|
|
1294
|
+
goog.ui.Component.prototype.removeChildren = function(opt_unrender) {
|
|
1295
|
+
var removedChildren = [];
|
|
1296
|
+
while (this.hasChildren()) {
|
|
1297
|
+
removedChildren.push(this.removeChildAt(0, opt_unrender));
|
|
1298
|
+
}
|
|
1299
|
+
return removedChildren;
|
|
1300
|
+
};
|