k4compiler 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- 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,202 @@
|
|
1
|
+
// Copyright 2013 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 The default renderer for {@link goog.ui.DatePicker}.
|
17
|
+
*
|
18
|
+
* @see ../demos/datepicker.html
|
19
|
+
*/
|
20
|
+
|
21
|
+
goog.provide('goog.ui.DefaultDatePickerRenderer');
|
22
|
+
|
23
|
+
goog.require('goog.dom');
|
24
|
+
goog.require('goog.dom.TagName');
|
25
|
+
/** @suppress {extraRequire} Interface. */
|
26
|
+
goog.require('goog.ui.DatePickerRenderer');
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
/**
|
31
|
+
* Default renderer for {@link goog.ui.DatePicker}. Renders the date picker's
|
32
|
+
* navigation header and footer.
|
33
|
+
*
|
34
|
+
* @param {string} baseCssClass Name of base CSS class of the date picker.
|
35
|
+
* @param {goog.dom.DomHelper=} opt_domHelper DOM helper.
|
36
|
+
* @constructor
|
37
|
+
* @implements {goog.ui.DatePickerRenderer}
|
38
|
+
*/
|
39
|
+
goog.ui.DefaultDatePickerRenderer = function(baseCssClass, opt_domHelper) {
|
40
|
+
/**
|
41
|
+
* Name of base CSS class of datepicker
|
42
|
+
* @type {string}
|
43
|
+
* @private
|
44
|
+
*/
|
45
|
+
this.baseCssClass_ = baseCssClass;
|
46
|
+
|
47
|
+
/**
|
48
|
+
* @type {!goog.dom.DomHelper}
|
49
|
+
* @private
|
50
|
+
*/
|
51
|
+
this.dom_ = opt_domHelper || goog.dom.getDomHelper();
|
52
|
+
};
|
53
|
+
|
54
|
+
|
55
|
+
/**
|
56
|
+
* Returns the dom helper that is being used on this component.
|
57
|
+
* @return {!goog.dom.DomHelper} The dom helper used on this component.
|
58
|
+
*/
|
59
|
+
goog.ui.DefaultDatePickerRenderer.prototype.getDomHelper = function() {
|
60
|
+
return this.dom_;
|
61
|
+
};
|
62
|
+
|
63
|
+
|
64
|
+
/**
|
65
|
+
* Returns base CSS class. This getter is used to get base CSS class part.
|
66
|
+
* All CSS class names in component are created as:
|
67
|
+
* goog.getCssName(this.getBaseCssClass(), 'CLASS_NAME')
|
68
|
+
* @return {string} Base CSS class.
|
69
|
+
*/
|
70
|
+
goog.ui.DefaultDatePickerRenderer.prototype.getBaseCssClass = function() {
|
71
|
+
return this.baseCssClass_;
|
72
|
+
};
|
73
|
+
|
74
|
+
|
75
|
+
/**
|
76
|
+
* Render the navigation row (navigating months and maybe years).
|
77
|
+
*
|
78
|
+
* @param {!Element} row The parent element to render the component into.
|
79
|
+
* @param {boolean} simpleNavigation Whether the picker should render a simple
|
80
|
+
* navigation menu that only contains controls for navigating to the next
|
81
|
+
* and previous month. The default navigation menu contains controls for
|
82
|
+
* navigating to the next/previous month, next/previous year, and menus for
|
83
|
+
* jumping to specific months and years.
|
84
|
+
* @param {boolean} showWeekNum Whether week numbers should be shown.
|
85
|
+
* @param {string} fullDateFormat The full date format.
|
86
|
+
* {@see goog.i18n.DateTimeSymbols}.
|
87
|
+
* @override
|
88
|
+
*/
|
89
|
+
goog.ui.DefaultDatePickerRenderer.prototype.renderNavigationRow =
|
90
|
+
function(row, simpleNavigation, showWeekNum, fullDateFormat) {
|
91
|
+
// Populate the navigation row according to the configured navigation mode.
|
92
|
+
var cell, monthCell, yearCell;
|
93
|
+
|
94
|
+
if (simpleNavigation) {
|
95
|
+
cell = this.getDomHelper().createElement(goog.dom.TagName.TD);
|
96
|
+
cell.colSpan = showWeekNum ? 1 : 2;
|
97
|
+
this.createButton_(cell, '\u00AB',
|
98
|
+
goog.getCssName(this.getBaseCssClass(), 'previousMonth')); // <<
|
99
|
+
row.appendChild(cell);
|
100
|
+
|
101
|
+
cell = this.getDomHelper().createElement(goog.dom.TagName.TD);
|
102
|
+
cell.colSpan = showWeekNum ? 6 : 5;
|
103
|
+
cell.className = goog.getCssName(this.getBaseCssClass(), 'monthyear');
|
104
|
+
row.appendChild(cell);
|
105
|
+
|
106
|
+
cell = this.getDomHelper().createElement(goog.dom.TagName.TD);
|
107
|
+
this.createButton_(cell, '\u00BB',
|
108
|
+
goog.getCssName(this.getBaseCssClass(), 'nextMonth')); // >>
|
109
|
+
row.appendChild(cell);
|
110
|
+
|
111
|
+
} else {
|
112
|
+
monthCell = this.getDomHelper().createElement(goog.dom.TagName.TD);
|
113
|
+
monthCell.colSpan = 5;
|
114
|
+
this.createButton_(monthCell, '\u00AB',
|
115
|
+
goog.getCssName(this.getBaseCssClass(), 'previousMonth')); // <<
|
116
|
+
this.createButton_(monthCell, '',
|
117
|
+
goog.getCssName(this.getBaseCssClass(), 'month'));
|
118
|
+
this.createButton_(monthCell, '\u00BB',
|
119
|
+
goog.getCssName(this.getBaseCssClass(), 'nextMonth')); // >>
|
120
|
+
|
121
|
+
yearCell = this.getDomHelper().createElement(goog.dom.TagName.TD);
|
122
|
+
yearCell.colSpan = 3;
|
123
|
+
this.createButton_(yearCell, '\u00AB',
|
124
|
+
goog.getCssName(this.getBaseCssClass(), 'previousYear')); // <<
|
125
|
+
this.createButton_(yearCell, '',
|
126
|
+
goog.getCssName(this.getBaseCssClass(), 'year'));
|
127
|
+
this.createButton_(yearCell, '\u00BB',
|
128
|
+
goog.getCssName(this.getBaseCssClass(), 'nextYear')); // <<
|
129
|
+
|
130
|
+
// If the date format has year ('y') appearing first before month ('m'),
|
131
|
+
// show the year on the left hand side of the datepicker popup. Otherwise,
|
132
|
+
// show the month on the left side. This check assumes the data to be
|
133
|
+
// valid, and that all date formats contain month and year.
|
134
|
+
if (fullDateFormat.indexOf('y') < fullDateFormat.indexOf('m')) {
|
135
|
+
row.appendChild(yearCell);
|
136
|
+
row.appendChild(monthCell);
|
137
|
+
} else {
|
138
|
+
row.appendChild(monthCell);
|
139
|
+
row.appendChild(yearCell);
|
140
|
+
}
|
141
|
+
}
|
142
|
+
};
|
143
|
+
|
144
|
+
|
145
|
+
/**
|
146
|
+
* Render the footer row (with select buttons).
|
147
|
+
*
|
148
|
+
* @param {!Element} row The parent element to render the component into.
|
149
|
+
* @param {boolean} showWeekNum Whether week numbers should be shown.
|
150
|
+
* @override
|
151
|
+
*/
|
152
|
+
goog.ui.DefaultDatePickerRenderer.prototype.renderFooterRow =
|
153
|
+
function(row, showWeekNum) {
|
154
|
+
// Populate the footer row with buttons for Today and None.
|
155
|
+
var cell = this.getDomHelper().createElement(goog.dom.TagName.TD);
|
156
|
+
cell.colSpan = showWeekNum ? 2 : 3;
|
157
|
+
cell.className = goog.getCssName(this.getBaseCssClass(), 'today-cont');
|
158
|
+
|
159
|
+
/** @desc Label for button that selects the current date. */
|
160
|
+
var MSG_DATEPICKER_TODAY_BUTTON_LABEL = goog.getMsg('Today');
|
161
|
+
this.createButton_(cell, MSG_DATEPICKER_TODAY_BUTTON_LABEL,
|
162
|
+
goog.getCssName(this.getBaseCssClass(), 'today-btn'));
|
163
|
+
row.appendChild(cell);
|
164
|
+
|
165
|
+
cell = this.getDomHelper().createElement(goog.dom.TagName.TD);
|
166
|
+
cell.colSpan = showWeekNum ? 4 : 3;
|
167
|
+
row.appendChild(cell);
|
168
|
+
|
169
|
+
cell = this.getDomHelper().createElement(goog.dom.TagName.TD);
|
170
|
+
cell.colSpan = 2;
|
171
|
+
cell.className = goog.getCssName(this.getBaseCssClass(), 'none-cont');
|
172
|
+
|
173
|
+
/** @desc Label for button that clears the selection. */
|
174
|
+
var MSG_DATEPICKER_NONE = goog.getMsg('None');
|
175
|
+
this.createButton_(cell, MSG_DATEPICKER_NONE,
|
176
|
+
goog.getCssName(this.getBaseCssClass(), 'none-btn'));
|
177
|
+
row.appendChild(cell);
|
178
|
+
};
|
179
|
+
|
180
|
+
|
181
|
+
/**
|
182
|
+
* Support function for button creation.
|
183
|
+
*
|
184
|
+
* @param {Element} parentNode Container the button should be added to.
|
185
|
+
* @param {string} label Button label.
|
186
|
+
* @param {string=} opt_className Class name for button, which will be used
|
187
|
+
* in addition to "goog-date-picker-btn".
|
188
|
+
* @private
|
189
|
+
* @return {Element} The created button element.
|
190
|
+
*/
|
191
|
+
goog.ui.DefaultDatePickerRenderer.prototype.createButton_ =
|
192
|
+
function(parentNode, label, opt_className) {
|
193
|
+
var classes = [goog.getCssName(this.getBaseCssClass(), 'btn')];
|
194
|
+
if (opt_className) {
|
195
|
+
classes.push(opt_className);
|
196
|
+
}
|
197
|
+
var el = this.getDomHelper().createElement(goog.dom.TagName.BUTTON);
|
198
|
+
el.className = classes.join(' ');
|
199
|
+
el.appendChild(this.getDomHelper().createTextNode(label));
|
200
|
+
parentNode.appendChild(el);
|
201
|
+
return el;
|
202
|
+
};
|
@@ -0,0 +1,1556 @@
|
|
1
|
+
// Copyright 2006 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 Class for showing simple modal dialog boxes.
|
17
|
+
*
|
18
|
+
* TODO(user):
|
19
|
+
* * Standardize CSS class names with other components
|
20
|
+
* * Add functionality to "host" other components in content area
|
21
|
+
* * Abstract out ButtonSet and make it more general
|
22
|
+
* @see ../demos/dialog.html
|
23
|
+
*/
|
24
|
+
|
25
|
+
goog.provide('goog.ui.Dialog');
|
26
|
+
goog.provide('goog.ui.Dialog.ButtonSet');
|
27
|
+
goog.provide('goog.ui.Dialog.ButtonSet.DefaultButtons');
|
28
|
+
goog.provide('goog.ui.Dialog.DefaultButtonCaptions');
|
29
|
+
goog.provide('goog.ui.Dialog.DefaultButtonKeys');
|
30
|
+
goog.provide('goog.ui.Dialog.Event');
|
31
|
+
goog.provide('goog.ui.Dialog.EventType');
|
32
|
+
|
33
|
+
goog.require('goog.a11y.aria');
|
34
|
+
goog.require('goog.a11y.aria.Role');
|
35
|
+
goog.require('goog.a11y.aria.State');
|
36
|
+
goog.require('goog.asserts');
|
37
|
+
goog.require('goog.dom');
|
38
|
+
goog.require('goog.dom.NodeType');
|
39
|
+
goog.require('goog.dom.TagName');
|
40
|
+
goog.require('goog.dom.classes');
|
41
|
+
goog.require('goog.events');
|
42
|
+
goog.require('goog.events.Event');
|
43
|
+
goog.require('goog.events.EventType');
|
44
|
+
goog.require('goog.events.KeyCodes');
|
45
|
+
goog.require('goog.fx.Dragger');
|
46
|
+
goog.require('goog.math.Rect');
|
47
|
+
goog.require('goog.structs');
|
48
|
+
goog.require('goog.structs.Map');
|
49
|
+
goog.require('goog.style');
|
50
|
+
goog.require('goog.ui.ModalPopup');
|
51
|
+
goog.require('goog.userAgent');
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
/**
|
56
|
+
* Class for showing simple dialog boxes.
|
57
|
+
* The Html structure of the dialog box is:
|
58
|
+
* <pre>
|
59
|
+
* Element Function Class-name, modal-dialog = default
|
60
|
+
* ----------------------------------------------------------------------------
|
61
|
+
* - iframe Iframe mask modal-dialog-bg
|
62
|
+
* - div Background mask modal-dialog-bg
|
63
|
+
* - div Dialog area modal-dialog
|
64
|
+
* - div Title bar modal-dialog-title
|
65
|
+
* - span modal-dialog-title-text
|
66
|
+
* - text Title text N/A
|
67
|
+
* - span modal-dialog-title-close
|
68
|
+
* - ?? Close box N/A
|
69
|
+
* - div Content area modal-dialog-content
|
70
|
+
* - ?? User specified content N/A
|
71
|
+
* - div Button area modal-dialog-buttons
|
72
|
+
* - button N/A
|
73
|
+
* - button
|
74
|
+
* - ...
|
75
|
+
* </pre>
|
76
|
+
* @constructor
|
77
|
+
* @param {string=} opt_class CSS class name for the dialog element, also used
|
78
|
+
* as a class name prefix for related elements; defaults to modal-dialog.
|
79
|
+
* @param {boolean=} opt_useIframeMask Work around windowed controls z-index
|
80
|
+
* issue by using an iframe instead of a div for bg element.
|
81
|
+
* @param {goog.dom.DomHelper=} opt_domHelper Optional DOM helper; see {@link
|
82
|
+
* goog.ui.Component} for semantics.
|
83
|
+
* @extends {goog.ui.ModalPopup}
|
84
|
+
*/
|
85
|
+
goog.ui.Dialog = function(opt_class, opt_useIframeMask, opt_domHelper) {
|
86
|
+
goog.base(this, opt_useIframeMask, opt_domHelper);
|
87
|
+
|
88
|
+
/**
|
89
|
+
* CSS class name for the dialog element, also used as a class name prefix for
|
90
|
+
* related elements. Defaults to goog.getCssName('modal-dialog').
|
91
|
+
* @type {string}
|
92
|
+
* @private
|
93
|
+
*/
|
94
|
+
this.class_ = opt_class || goog.getCssName('modal-dialog');
|
95
|
+
|
96
|
+
this.buttons_ = goog.ui.Dialog.ButtonSet.createOkCancel();
|
97
|
+
};
|
98
|
+
goog.inherits(goog.ui.Dialog, goog.ui.ModalPopup);
|
99
|
+
|
100
|
+
|
101
|
+
/**
|
102
|
+
* Button set. Default to Ok/Cancel.
|
103
|
+
* @type {goog.ui.Dialog.ButtonSet}
|
104
|
+
* @private
|
105
|
+
*/
|
106
|
+
goog.ui.Dialog.prototype.buttons_;
|
107
|
+
|
108
|
+
|
109
|
+
/**
|
110
|
+
* Whether the escape key closes this dialog.
|
111
|
+
* @type {boolean}
|
112
|
+
* @private
|
113
|
+
*/
|
114
|
+
goog.ui.Dialog.prototype.escapeToCancel_ = true;
|
115
|
+
|
116
|
+
|
117
|
+
/**
|
118
|
+
* Whether this dialog should include a title close button.
|
119
|
+
* @type {boolean}
|
120
|
+
* @private
|
121
|
+
*/
|
122
|
+
goog.ui.Dialog.prototype.hasTitleCloseButton_ = true;
|
123
|
+
|
124
|
+
|
125
|
+
/**
|
126
|
+
* Whether the dialog is modal. Defaults to true.
|
127
|
+
* @type {boolean}
|
128
|
+
* @private
|
129
|
+
*/
|
130
|
+
goog.ui.Dialog.prototype.modal_ = true;
|
131
|
+
|
132
|
+
|
133
|
+
/**
|
134
|
+
* Whether the dialog is draggable. Defaults to true.
|
135
|
+
* @type {boolean}
|
136
|
+
* @private
|
137
|
+
*/
|
138
|
+
goog.ui.Dialog.prototype.draggable_ = true;
|
139
|
+
|
140
|
+
|
141
|
+
/**
|
142
|
+
* Opacity for background mask. Defaults to 50%.
|
143
|
+
* @type {number}
|
144
|
+
* @private
|
145
|
+
*/
|
146
|
+
goog.ui.Dialog.prototype.backgroundElementOpacity_ = 0.50;
|
147
|
+
|
148
|
+
|
149
|
+
/**
|
150
|
+
* Dialog's title.
|
151
|
+
* @type {string}
|
152
|
+
* @private
|
153
|
+
*/
|
154
|
+
goog.ui.Dialog.prototype.title_ = '';
|
155
|
+
|
156
|
+
|
157
|
+
/**
|
158
|
+
* Dialog's content (HTML).
|
159
|
+
* @type {string}
|
160
|
+
* @private
|
161
|
+
*/
|
162
|
+
goog.ui.Dialog.prototype.content_ = '';
|
163
|
+
|
164
|
+
|
165
|
+
/**
|
166
|
+
* Dragger.
|
167
|
+
* @type {goog.fx.Dragger}
|
168
|
+
* @private
|
169
|
+
*/
|
170
|
+
goog.ui.Dialog.prototype.dragger_ = null;
|
171
|
+
|
172
|
+
|
173
|
+
/**
|
174
|
+
* Whether the dialog should be disposed when it is hidden.
|
175
|
+
* @type {boolean}
|
176
|
+
* @private
|
177
|
+
*/
|
178
|
+
goog.ui.Dialog.prototype.disposeOnHide_ = false;
|
179
|
+
|
180
|
+
|
181
|
+
/**
|
182
|
+
* Element for the title bar.
|
183
|
+
* @type {Element}
|
184
|
+
* @private
|
185
|
+
*/
|
186
|
+
goog.ui.Dialog.prototype.titleEl_ = null;
|
187
|
+
|
188
|
+
|
189
|
+
/**
|
190
|
+
* Element for the text area of the title bar.
|
191
|
+
* @type {Element}
|
192
|
+
* @private
|
193
|
+
*/
|
194
|
+
goog.ui.Dialog.prototype.titleTextEl_ = null;
|
195
|
+
|
196
|
+
|
197
|
+
/**
|
198
|
+
* Id of element for the text area of the title bar.
|
199
|
+
* @type {?string}
|
200
|
+
* @private
|
201
|
+
*/
|
202
|
+
goog.ui.Dialog.prototype.titleId_ = null;
|
203
|
+
|
204
|
+
|
205
|
+
/**
|
206
|
+
* Element for the close box area of the title bar.
|
207
|
+
* @type {Element}
|
208
|
+
* @private
|
209
|
+
*/
|
210
|
+
goog.ui.Dialog.prototype.titleCloseEl_ = null;
|
211
|
+
|
212
|
+
|
213
|
+
/**
|
214
|
+
* Element for the content area.
|
215
|
+
* @type {Element}
|
216
|
+
* @private
|
217
|
+
*/
|
218
|
+
goog.ui.Dialog.prototype.contentEl_ = null;
|
219
|
+
|
220
|
+
|
221
|
+
/**
|
222
|
+
* Element for the button bar.
|
223
|
+
* @type {Element}
|
224
|
+
* @private
|
225
|
+
*/
|
226
|
+
goog.ui.Dialog.prototype.buttonEl_ = null;
|
227
|
+
|
228
|
+
|
229
|
+
/**
|
230
|
+
* The dialog's preferred ARIA role.
|
231
|
+
* @type {goog.a11y.aria.Role}
|
232
|
+
* @private
|
233
|
+
*/
|
234
|
+
goog.ui.Dialog.prototype.preferredAriaRole_ = goog.a11y.aria.Role.DIALOG;
|
235
|
+
|
236
|
+
|
237
|
+
/** @override */
|
238
|
+
goog.ui.Dialog.prototype.getCssClass = function() {
|
239
|
+
return this.class_;
|
240
|
+
};
|
241
|
+
|
242
|
+
|
243
|
+
/**
|
244
|
+
* Sets the title.
|
245
|
+
* @param {string} title The title text.
|
246
|
+
*/
|
247
|
+
goog.ui.Dialog.prototype.setTitle = function(title) {
|
248
|
+
this.title_ = title;
|
249
|
+
if (this.titleTextEl_) {
|
250
|
+
goog.dom.setTextContent(this.titleTextEl_, title);
|
251
|
+
}
|
252
|
+
};
|
253
|
+
|
254
|
+
|
255
|
+
/**
|
256
|
+
* Gets the title.
|
257
|
+
* @return {string} The title.
|
258
|
+
*/
|
259
|
+
goog.ui.Dialog.prototype.getTitle = function() {
|
260
|
+
return this.title_;
|
261
|
+
};
|
262
|
+
|
263
|
+
|
264
|
+
/**
|
265
|
+
* Allows arbitrary HTML to be set in the content element.
|
266
|
+
* @param {string} html Content HTML.
|
267
|
+
*/
|
268
|
+
goog.ui.Dialog.prototype.setContent = function(html) {
|
269
|
+
this.content_ = html;
|
270
|
+
if (this.contentEl_) {
|
271
|
+
this.contentEl_.innerHTML = html;
|
272
|
+
}
|
273
|
+
};
|
274
|
+
|
275
|
+
|
276
|
+
/**
|
277
|
+
* Gets the content HTML of the content element.
|
278
|
+
* @return {string} Content HTML.
|
279
|
+
*/
|
280
|
+
goog.ui.Dialog.prototype.getContent = function() {
|
281
|
+
return this.content_;
|
282
|
+
};
|
283
|
+
|
284
|
+
|
285
|
+
/**
|
286
|
+
* Returns the dialog's preferred ARIA role. This can be used to override the
|
287
|
+
* default dialog role, e.g. with an ARIA role of ALERTDIALOG for a simple
|
288
|
+
* warning or confirmation dialog.
|
289
|
+
* @return {goog.a11y.aria.Role} This dialog's preferred ARIA role.
|
290
|
+
*/
|
291
|
+
goog.ui.Dialog.prototype.getPreferredAriaRole = function() {
|
292
|
+
return this.preferredAriaRole_;
|
293
|
+
};
|
294
|
+
|
295
|
+
|
296
|
+
/**
|
297
|
+
* Sets the dialog's preferred ARIA role. This can be used to override the
|
298
|
+
* default dialog role, e.g. with an ARIA role of ALERTDIALOG for a simple
|
299
|
+
* warning or confirmation dialog.
|
300
|
+
* @param {goog.a11y.aria.Role} role This dialog's preferred ARIA role.
|
301
|
+
*/
|
302
|
+
goog.ui.Dialog.prototype.setPreferredAriaRole = function(role) {
|
303
|
+
this.preferredAriaRole_ = role;
|
304
|
+
};
|
305
|
+
|
306
|
+
|
307
|
+
/**
|
308
|
+
* Renders if the DOM is not created.
|
309
|
+
* @private
|
310
|
+
*/
|
311
|
+
goog.ui.Dialog.prototype.renderIfNoDom_ = function() {
|
312
|
+
if (!this.getElement()) {
|
313
|
+
// TODO(gboyer): Ideally we'd only create the DOM, but many applications
|
314
|
+
// are requiring this behavior. Eventually, it would be best if the
|
315
|
+
// element getters could return null if the elements have not been
|
316
|
+
// created.
|
317
|
+
this.render();
|
318
|
+
}
|
319
|
+
};
|
320
|
+
|
321
|
+
|
322
|
+
/**
|
323
|
+
* Returns the content element so that more complicated things can be done with
|
324
|
+
* the content area. Renders if the DOM is not yet created. Overrides
|
325
|
+
* {@link goog.ui.Component#getContentElement}.
|
326
|
+
* @return {Element} The content element.
|
327
|
+
* @override
|
328
|
+
*/
|
329
|
+
goog.ui.Dialog.prototype.getContentElement = function() {
|
330
|
+
this.renderIfNoDom_();
|
331
|
+
return this.contentEl_;
|
332
|
+
};
|
333
|
+
|
334
|
+
|
335
|
+
/**
|
336
|
+
* Returns the title element so that more complicated things can be done with
|
337
|
+
* the title. Renders if the DOM is not yet created.
|
338
|
+
* @return {Element} The title element.
|
339
|
+
*/
|
340
|
+
goog.ui.Dialog.prototype.getTitleElement = function() {
|
341
|
+
this.renderIfNoDom_();
|
342
|
+
return this.titleEl_;
|
343
|
+
};
|
344
|
+
|
345
|
+
|
346
|
+
/**
|
347
|
+
* Returns the title text element so that more complicated things can be done
|
348
|
+
* with the text of the title. Renders if the DOM is not yet created.
|
349
|
+
* @return {Element} The title text element.
|
350
|
+
*/
|
351
|
+
goog.ui.Dialog.prototype.getTitleTextElement = function() {
|
352
|
+
this.renderIfNoDom_();
|
353
|
+
return this.titleTextEl_;
|
354
|
+
};
|
355
|
+
|
356
|
+
|
357
|
+
/**
|
358
|
+
* Returns the title close element so that more complicated things can be done
|
359
|
+
* with the close area of the title. Renders if the DOM is not yet created.
|
360
|
+
* @return {Element} The close box.
|
361
|
+
*/
|
362
|
+
goog.ui.Dialog.prototype.getTitleCloseElement = function() {
|
363
|
+
this.renderIfNoDom_();
|
364
|
+
return this.titleCloseEl_;
|
365
|
+
};
|
366
|
+
|
367
|
+
|
368
|
+
/**
|
369
|
+
* Returns the button element so that more complicated things can be done with
|
370
|
+
* the button area. Renders if the DOM is not yet created.
|
371
|
+
* @return {Element} The button container element.
|
372
|
+
*/
|
373
|
+
goog.ui.Dialog.prototype.getButtonElement = function() {
|
374
|
+
this.renderIfNoDom_();
|
375
|
+
return this.buttonEl_;
|
376
|
+
};
|
377
|
+
|
378
|
+
|
379
|
+
/**
|
380
|
+
* Returns the dialog element so that more complicated things can be done with
|
381
|
+
* the dialog box. Renders if the DOM is not yet created.
|
382
|
+
* @return {Element} The dialog element.
|
383
|
+
*/
|
384
|
+
goog.ui.Dialog.prototype.getDialogElement = function() {
|
385
|
+
this.renderIfNoDom_();
|
386
|
+
return this.getElement();
|
387
|
+
};
|
388
|
+
|
389
|
+
|
390
|
+
/**
|
391
|
+
* Returns the background mask element so that more complicated things can be
|
392
|
+
* done with the background region. Renders if the DOM is not yet created.
|
393
|
+
* @return {Element} The background mask element.
|
394
|
+
* @override
|
395
|
+
*/
|
396
|
+
goog.ui.Dialog.prototype.getBackgroundElement = function() {
|
397
|
+
this.renderIfNoDom_();
|
398
|
+
return goog.base(this, 'getBackgroundElement');
|
399
|
+
};
|
400
|
+
|
401
|
+
|
402
|
+
/**
|
403
|
+
* Gets the opacity of the background mask.
|
404
|
+
* @return {number} Background mask opacity.
|
405
|
+
*/
|
406
|
+
goog.ui.Dialog.prototype.getBackgroundElementOpacity = function() {
|
407
|
+
return this.backgroundElementOpacity_;
|
408
|
+
};
|
409
|
+
|
410
|
+
|
411
|
+
/**
|
412
|
+
* Sets the opacity of the background mask.
|
413
|
+
* @param {number} opacity Background mask opacity.
|
414
|
+
*/
|
415
|
+
goog.ui.Dialog.prototype.setBackgroundElementOpacity = function(opacity) {
|
416
|
+
this.backgroundElementOpacity_ = opacity;
|
417
|
+
|
418
|
+
if (this.getElement()) {
|
419
|
+
var bgEl = this.getBackgroundElement();
|
420
|
+
if (bgEl) {
|
421
|
+
goog.style.setOpacity(bgEl, this.backgroundElementOpacity_);
|
422
|
+
}
|
423
|
+
}
|
424
|
+
};
|
425
|
+
|
426
|
+
|
427
|
+
/**
|
428
|
+
* Sets the modal property of the dialog. In case the dialog is already
|
429
|
+
* inDocument, renders the modal background elements according to the specified
|
430
|
+
* modal parameter.
|
431
|
+
*
|
432
|
+
* Note that non-modal dialogs cannot use an iframe mask.
|
433
|
+
*
|
434
|
+
* @param {boolean} modal Whether the dialog is modal.
|
435
|
+
*/
|
436
|
+
goog.ui.Dialog.prototype.setModal = function(modal) {
|
437
|
+
if (modal != this.modal_) {
|
438
|
+
this.setModalInternal_(modal);
|
439
|
+
}
|
440
|
+
};
|
441
|
+
|
442
|
+
|
443
|
+
/**
|
444
|
+
* Sets the modal property of the dialog.
|
445
|
+
* @param {boolean} modal Whether the dialog is modal.
|
446
|
+
* @private
|
447
|
+
*/
|
448
|
+
goog.ui.Dialog.prototype.setModalInternal_ = function(modal) {
|
449
|
+
this.modal_ = modal;
|
450
|
+
if (this.isInDocument()) {
|
451
|
+
var dom = this.getDomHelper();
|
452
|
+
var bg = this.getBackgroundElement();
|
453
|
+
var bgIframe = this.getBackgroundIframe();
|
454
|
+
if (modal) {
|
455
|
+
if (bgIframe) {
|
456
|
+
dom.insertSiblingBefore(bgIframe, this.getElement());
|
457
|
+
}
|
458
|
+
dom.insertSiblingBefore(bg, this.getElement());
|
459
|
+
} else {
|
460
|
+
dom.removeNode(bgIframe);
|
461
|
+
dom.removeNode(bg);
|
462
|
+
}
|
463
|
+
}
|
464
|
+
};
|
465
|
+
|
466
|
+
|
467
|
+
/**
|
468
|
+
* @return {boolean} modal Whether the dialog is modal.
|
469
|
+
*/
|
470
|
+
goog.ui.Dialog.prototype.getModal = function() {
|
471
|
+
return this.modal_;
|
472
|
+
};
|
473
|
+
|
474
|
+
|
475
|
+
/**
|
476
|
+
* @return {string} The CSS class name for the dialog element.
|
477
|
+
*/
|
478
|
+
goog.ui.Dialog.prototype.getClass = function() {
|
479
|
+
return this.getCssClass();
|
480
|
+
};
|
481
|
+
|
482
|
+
|
483
|
+
/**
|
484
|
+
* Sets whether the dialog can be dragged.
|
485
|
+
* @param {boolean} draggable Whether the dialog can be dragged.
|
486
|
+
*/
|
487
|
+
goog.ui.Dialog.prototype.setDraggable = function(draggable) {
|
488
|
+
this.draggable_ = draggable;
|
489
|
+
this.setDraggingEnabled_(draggable && this.isInDocument());
|
490
|
+
};
|
491
|
+
|
492
|
+
|
493
|
+
/**
|
494
|
+
* Returns a dragger for moving the dialog and adds a class for the move cursor.
|
495
|
+
* Defaults to allow dragging of the title only, but can be overridden if
|
496
|
+
* different drag targets or dragging behavior is desired.
|
497
|
+
* @return {!goog.fx.Dragger} The created dragger instance.
|
498
|
+
* @protected
|
499
|
+
*/
|
500
|
+
goog.ui.Dialog.prototype.createDragger = function() {
|
501
|
+
return new goog.fx.Dragger(this.getElement(), this.titleEl_);
|
502
|
+
};
|
503
|
+
|
504
|
+
|
505
|
+
/**
|
506
|
+
* @return {boolean} Whether the dialog is draggable.
|
507
|
+
*/
|
508
|
+
goog.ui.Dialog.prototype.getDraggable = function() {
|
509
|
+
return this.draggable_;
|
510
|
+
};
|
511
|
+
|
512
|
+
|
513
|
+
/**
|
514
|
+
* Enables or disables dragging.
|
515
|
+
* @param {boolean} enabled Whether to enable it.
|
516
|
+
* @private.
|
517
|
+
*/
|
518
|
+
goog.ui.Dialog.prototype.setDraggingEnabled_ = function(enabled) {
|
519
|
+
if (this.getElement()) {
|
520
|
+
goog.dom.classes.enable(this.titleEl_,
|
521
|
+
goog.getCssName(this.class_, 'title-draggable'), enabled);
|
522
|
+
}
|
523
|
+
|
524
|
+
if (enabled && !this.dragger_) {
|
525
|
+
this.dragger_ = this.createDragger();
|
526
|
+
goog.dom.classes.add(this.titleEl_,
|
527
|
+
goog.getCssName(this.class_, 'title-draggable'));
|
528
|
+
goog.events.listen(this.dragger_, goog.fx.Dragger.EventType.START,
|
529
|
+
this.setDraggerLimits_, false, this);
|
530
|
+
} else if (!enabled && this.dragger_) {
|
531
|
+
this.dragger_.dispose();
|
532
|
+
this.dragger_ = null;
|
533
|
+
}
|
534
|
+
};
|
535
|
+
|
536
|
+
|
537
|
+
/** @override */
|
538
|
+
goog.ui.Dialog.prototype.createDom = function() {
|
539
|
+
goog.base(this, 'createDom');
|
540
|
+
var element = this.getElement();
|
541
|
+
goog.asserts.assert(element, 'getElement() returns null');
|
542
|
+
|
543
|
+
var dom = this.getDomHelper();
|
544
|
+
this.titleEl_ = dom.createDom('div',
|
545
|
+
{'className': goog.getCssName(this.class_, 'title'), 'id': this.getId()},
|
546
|
+
this.titleTextEl_ = dom.createDom(
|
547
|
+
'span', goog.getCssName(this.class_, 'title-text'), this.title_),
|
548
|
+
this.titleCloseEl_ = dom.createDom(
|
549
|
+
'span', goog.getCssName(this.class_, 'title-close'))),
|
550
|
+
goog.dom.append(element, this.titleEl_,
|
551
|
+
this.contentEl_ = dom.createDom('div',
|
552
|
+
goog.getCssName(this.class_, 'content')),
|
553
|
+
this.buttonEl_ = dom.createDom('div',
|
554
|
+
goog.getCssName(this.class_, 'buttons')));
|
555
|
+
|
556
|
+
this.titleId_ = this.titleEl_.id;
|
557
|
+
goog.a11y.aria.setRole(element, this.getPreferredAriaRole());
|
558
|
+
goog.a11y.aria.setState(element, goog.a11y.aria.State.LABELLEDBY,
|
559
|
+
this.titleId_ || '');
|
560
|
+
// If setContent() was called before createDom(), make sure the inner HTML of
|
561
|
+
// the content element is initialized.
|
562
|
+
if (this.content_) {
|
563
|
+
this.contentEl_.innerHTML = this.content_;
|
564
|
+
}
|
565
|
+
goog.style.setElementShown(this.titleCloseEl_, this.hasTitleCloseButton_);
|
566
|
+
|
567
|
+
// Render the buttons.
|
568
|
+
if (this.buttons_) {
|
569
|
+
this.buttons_.attachToElement(this.buttonEl_);
|
570
|
+
}
|
571
|
+
goog.style.setElementShown(this.buttonEl_, !!this.buttons_);
|
572
|
+
this.setBackgroundElementOpacity(this.backgroundElementOpacity_);
|
573
|
+
};
|
574
|
+
|
575
|
+
|
576
|
+
/** @override */
|
577
|
+
goog.ui.Dialog.prototype.decorateInternal = function(element) {
|
578
|
+
goog.base(this, 'decorateInternal', element);
|
579
|
+
var dialogElement = this.getElement();
|
580
|
+
goog.asserts.assert(dialogElement,
|
581
|
+
'The DOM element for dialog cannot be null.');
|
582
|
+
// Decorate or create the content element.
|
583
|
+
var contentClass = goog.getCssName(this.class_, 'content');
|
584
|
+
this.contentEl_ = goog.dom.getElementsByTagNameAndClass(
|
585
|
+
null, contentClass, dialogElement)[0];
|
586
|
+
if (this.contentEl_) {
|
587
|
+
this.content_ = this.contentEl_.innerHTML;
|
588
|
+
} else {
|
589
|
+
this.contentEl_ = this.getDomHelper().createDom('div', contentClass);
|
590
|
+
if (this.content_) {
|
591
|
+
this.contentEl_.innerHTML = this.content_;
|
592
|
+
}
|
593
|
+
dialogElement.appendChild(this.contentEl_);
|
594
|
+
}
|
595
|
+
|
596
|
+
// Decorate or create the title bar element.
|
597
|
+
var titleClass = goog.getCssName(this.class_, 'title');
|
598
|
+
var titleTextClass = goog.getCssName(this.class_, 'title-text');
|
599
|
+
var titleCloseClass = goog.getCssName(this.class_, 'title-close');
|
600
|
+
this.titleEl_ = goog.dom.getElementsByTagNameAndClass(
|
601
|
+
null, titleClass, dialogElement)[0];
|
602
|
+
if (this.titleEl_) {
|
603
|
+
// Only look for title text & title close elements if a title bar element
|
604
|
+
// was found. Otherwise assume that the entire title bar has to be
|
605
|
+
// created from scratch.
|
606
|
+
this.titleTextEl_ = goog.dom.getElementsByTagNameAndClass(
|
607
|
+
null, titleTextClass, this.titleEl_)[0];
|
608
|
+
this.titleCloseEl_ = goog.dom.getElementsByTagNameAndClass(
|
609
|
+
null, titleCloseClass, this.titleEl_)[0];
|
610
|
+
// Give the title an id if it doesn't already have one.
|
611
|
+
if (!this.titleEl_.id) {
|
612
|
+
this.titleEl_.id = this.getId();
|
613
|
+
}
|
614
|
+
} else {
|
615
|
+
// Create the title bar element and insert it before the content area.
|
616
|
+
// This is useful if the element to decorate only includes a content area.
|
617
|
+
this.titleEl_ = this.getDomHelper().createDom('div',
|
618
|
+
{'className': titleClass, 'id': this.getId()});
|
619
|
+
dialogElement.insertBefore(this.titleEl_, this.contentEl_);
|
620
|
+
}
|
621
|
+
this.titleId_ = this.titleEl_.id;
|
622
|
+
|
623
|
+
// Decorate or create the title text element.
|
624
|
+
if (this.titleTextEl_) {
|
625
|
+
this.title_ = goog.dom.getTextContent(this.titleTextEl_);
|
626
|
+
} else {
|
627
|
+
this.titleTextEl_ = this.getDomHelper().createDom('span', titleTextClass,
|
628
|
+
this.title_);
|
629
|
+
this.titleEl_.appendChild(this.titleTextEl_);
|
630
|
+
}
|
631
|
+
goog.a11y.aria.setState(dialogElement, goog.a11y.aria.State.LABELLEDBY,
|
632
|
+
this.titleId_ || '');
|
633
|
+
// Decorate or create the title close element.
|
634
|
+
if (!this.titleCloseEl_) {
|
635
|
+
this.titleCloseEl_ = this.getDomHelper().createDom('span', titleCloseClass);
|
636
|
+
this.titleEl_.appendChild(this.titleCloseEl_);
|
637
|
+
}
|
638
|
+
goog.style.setElementShown(this.titleCloseEl_, this.hasTitleCloseButton_);
|
639
|
+
|
640
|
+
// Decorate or create the button container element.
|
641
|
+
var buttonsClass = goog.getCssName(this.class_, 'buttons');
|
642
|
+
this.buttonEl_ = goog.dom.getElementsByTagNameAndClass(
|
643
|
+
null, buttonsClass, dialogElement)[0];
|
644
|
+
if (this.buttonEl_) {
|
645
|
+
// Button container element found. Create empty button set and use it to
|
646
|
+
// decorate the button container.
|
647
|
+
this.buttons_ = new goog.ui.Dialog.ButtonSet(this.getDomHelper());
|
648
|
+
this.buttons_.decorate(this.buttonEl_);
|
649
|
+
} else {
|
650
|
+
// Create new button container element, and render a button set into it.
|
651
|
+
this.buttonEl_ = this.getDomHelper().createDom('div', buttonsClass);
|
652
|
+
dialogElement.appendChild(this.buttonEl_);
|
653
|
+
if (this.buttons_) {
|
654
|
+
this.buttons_.attachToElement(this.buttonEl_);
|
655
|
+
}
|
656
|
+
goog.style.setElementShown(this.buttonEl_, !!this.buttons_);
|
657
|
+
}
|
658
|
+
this.setBackgroundElementOpacity(this.backgroundElementOpacity_);
|
659
|
+
};
|
660
|
+
|
661
|
+
|
662
|
+
/** @override */
|
663
|
+
goog.ui.Dialog.prototype.enterDocument = function() {
|
664
|
+
goog.base(this, 'enterDocument');
|
665
|
+
|
666
|
+
// Listen for keyboard events while the dialog is visible.
|
667
|
+
this.getHandler().
|
668
|
+
listen(this.getElement(), goog.events.EventType.KEYDOWN, this.onKey_).
|
669
|
+
listen(this.getElement(), goog.events.EventType.KEYPRESS, this.onKey_);
|
670
|
+
|
671
|
+
// NOTE: see bug 1163154 for an example of an edge case where making the
|
672
|
+
// dialog visible in response to a KEYDOWN will result in a CLICK event
|
673
|
+
// firing on the default button (immediately closing the dialog) if the key
|
674
|
+
// that fired the KEYDOWN is also normally used to activate controls
|
675
|
+
// (i.e. SPACE/ENTER).
|
676
|
+
//
|
677
|
+
// This could be worked around by attaching the onButtonClick_ handler in a
|
678
|
+
// setTimeout, but that was deemed undesirable.
|
679
|
+
this.getHandler().listen(this.buttonEl_, goog.events.EventType.CLICK,
|
680
|
+
this.onButtonClick_);
|
681
|
+
|
682
|
+
// Add drag support.
|
683
|
+
this.setDraggingEnabled_(this.draggable_);
|
684
|
+
|
685
|
+
// Add event listeners to the close box and the button container.
|
686
|
+
this.getHandler().listen(
|
687
|
+
this.titleCloseEl_, goog.events.EventType.CLICK,
|
688
|
+
this.onTitleCloseClick_);
|
689
|
+
|
690
|
+
var element = this.getElement();
|
691
|
+
goog.asserts.assert(element, 'The DOM element for dialog cannot be null');
|
692
|
+
goog.a11y.aria.setRole(element, this.getPreferredAriaRole());
|
693
|
+
if (this.titleTextEl_.id !== '') {
|
694
|
+
goog.a11y.aria.setState(element, goog.a11y.aria.State.LABELLEDBY,
|
695
|
+
this.titleTextEl_.id);
|
696
|
+
}
|
697
|
+
|
698
|
+
if (!this.modal_) {
|
699
|
+
this.setModalInternal_(false);
|
700
|
+
}
|
701
|
+
};
|
702
|
+
|
703
|
+
|
704
|
+
/** @override */
|
705
|
+
goog.ui.Dialog.prototype.exitDocument = function() {
|
706
|
+
if (this.isVisible()) {
|
707
|
+
this.setVisible(false);
|
708
|
+
}
|
709
|
+
|
710
|
+
// Remove drag support.
|
711
|
+
this.setDraggingEnabled_(false);
|
712
|
+
|
713
|
+
goog.base(this, 'exitDocument');
|
714
|
+
};
|
715
|
+
|
716
|
+
|
717
|
+
/**
|
718
|
+
* Sets the visibility of the dialog box and moves focus to the
|
719
|
+
* default button. Lazily renders the component if needed. After this
|
720
|
+
* method returns, isVisible() will always return the new state, even
|
721
|
+
* if there is a transition.
|
722
|
+
* @param {boolean} visible Whether the dialog should be visible.
|
723
|
+
* @override
|
724
|
+
*/
|
725
|
+
goog.ui.Dialog.prototype.setVisible = function(visible) {
|
726
|
+
if (visible == this.isVisible()) {
|
727
|
+
return;
|
728
|
+
}
|
729
|
+
|
730
|
+
// If the dialog hasn't been rendered yet, render it now.
|
731
|
+
if (!this.isInDocument()) {
|
732
|
+
this.render();
|
733
|
+
}
|
734
|
+
|
735
|
+
goog.base(this, 'setVisible', visible);
|
736
|
+
};
|
737
|
+
|
738
|
+
|
739
|
+
/** @override */
|
740
|
+
goog.ui.Dialog.prototype.onShow = function() {
|
741
|
+
goog.base(this, 'onShow');
|
742
|
+
this.dispatchEvent(goog.ui.Dialog.EventType.AFTER_SHOW);
|
743
|
+
};
|
744
|
+
|
745
|
+
|
746
|
+
/** @override */
|
747
|
+
goog.ui.Dialog.prototype.onHide = function() {
|
748
|
+
goog.base(this, 'onHide');
|
749
|
+
this.dispatchEvent(goog.ui.Dialog.EventType.AFTER_HIDE);
|
750
|
+
if (this.disposeOnHide_) {
|
751
|
+
this.dispose();
|
752
|
+
}
|
753
|
+
};
|
754
|
+
|
755
|
+
|
756
|
+
/**
|
757
|
+
* Focuses the dialog contents and the default dialog button if there is one.
|
758
|
+
* @override
|
759
|
+
*/
|
760
|
+
goog.ui.Dialog.prototype.focus = function() {
|
761
|
+
goog.base(this, 'focus');
|
762
|
+
|
763
|
+
// Move focus to the default button (if any).
|
764
|
+
if (this.getButtonSet()) {
|
765
|
+
var defaultButton = this.getButtonSet().getDefault();
|
766
|
+
if (defaultButton) {
|
767
|
+
var doc = this.getDomHelper().getDocument();
|
768
|
+
var buttons = this.buttonEl_.getElementsByTagName('button');
|
769
|
+
for (var i = 0, button; button = buttons[i]; i++) {
|
770
|
+
if (button.name == defaultButton && !button.disabled) {
|
771
|
+
try {
|
772
|
+
// Reopening a dialog can cause focusing the button to fail in
|
773
|
+
// WebKit and Opera. Shift the focus to a temporary <input>
|
774
|
+
// element to make refocusing the button possible.
|
775
|
+
if (goog.userAgent.WEBKIT || goog.userAgent.OPERA) {
|
776
|
+
var temp = doc.createElement('input');
|
777
|
+
temp.style.cssText =
|
778
|
+
'position:fixed;width:0;height:0;left:0;top:0;';
|
779
|
+
this.getElement().appendChild(temp);
|
780
|
+
temp.focus();
|
781
|
+
this.getElement().removeChild(temp);
|
782
|
+
}
|
783
|
+
button.focus();
|
784
|
+
} catch (e) {
|
785
|
+
// Swallow this. Could be the button is disabled
|
786
|
+
// and IE6 wishes to throw an error.
|
787
|
+
}
|
788
|
+
break;
|
789
|
+
}
|
790
|
+
}
|
791
|
+
}
|
792
|
+
}
|
793
|
+
};
|
794
|
+
|
795
|
+
|
796
|
+
/**
|
797
|
+
* Sets dragger limits when dragging is started.
|
798
|
+
* @param {!goog.events.Event} e goog.fx.Dragger.EventType.START event.
|
799
|
+
* @private
|
800
|
+
*/
|
801
|
+
goog.ui.Dialog.prototype.setDraggerLimits_ = function(e) {
|
802
|
+
var doc = this.getDomHelper().getDocument();
|
803
|
+
var win = goog.dom.getWindow(doc) || window;
|
804
|
+
|
805
|
+
// Take the max of scroll height and view height for cases in which document
|
806
|
+
// does not fill screen.
|
807
|
+
var viewSize = goog.dom.getViewportSize(win);
|
808
|
+
var w = Math.max(doc.body.scrollWidth, viewSize.width);
|
809
|
+
var h = Math.max(doc.body.scrollHeight, viewSize.height);
|
810
|
+
|
811
|
+
var dialogSize = goog.style.getSize(this.getElement());
|
812
|
+
if (goog.style.getComputedPosition(this.getElement()) == 'fixed') {
|
813
|
+
// Ensure position:fixed dialogs can't be dragged beyond the viewport.
|
814
|
+
this.dragger_.setLimits(new goog.math.Rect(0, 0,
|
815
|
+
Math.max(0, viewSize.width - dialogSize.width),
|
816
|
+
Math.max(0, viewSize.height - dialogSize.height)));
|
817
|
+
} else {
|
818
|
+
this.dragger_.setLimits(new goog.math.Rect(0, 0,
|
819
|
+
w - dialogSize.width, h - dialogSize.height));
|
820
|
+
}
|
821
|
+
};
|
822
|
+
|
823
|
+
|
824
|
+
/**
|
825
|
+
* Handles a click on the title close area.
|
826
|
+
* @param {goog.events.BrowserEvent} e Browser's event object.
|
827
|
+
* @private
|
828
|
+
*/
|
829
|
+
goog.ui.Dialog.prototype.onTitleCloseClick_ = function(e) {
|
830
|
+
if (!this.hasTitleCloseButton_) {
|
831
|
+
return;
|
832
|
+
}
|
833
|
+
|
834
|
+
var bs = this.getButtonSet();
|
835
|
+
var key = bs && bs.getCancel();
|
836
|
+
// Only if there is a valid cancel button is an event dispatched.
|
837
|
+
if (key) {
|
838
|
+
var caption = /** @type {Element|string} */(bs.get(key));
|
839
|
+
if (this.dispatchEvent(new goog.ui.Dialog.Event(key, caption))) {
|
840
|
+
this.setVisible(false);
|
841
|
+
}
|
842
|
+
} else {
|
843
|
+
this.setVisible(false);
|
844
|
+
}
|
845
|
+
};
|
846
|
+
|
847
|
+
|
848
|
+
/**
|
849
|
+
* @return {boolean} Whether this dialog has a title close button.
|
850
|
+
*/
|
851
|
+
goog.ui.Dialog.prototype.getHasTitleCloseButton = function() {
|
852
|
+
return this.hasTitleCloseButton_;
|
853
|
+
};
|
854
|
+
|
855
|
+
|
856
|
+
/**
|
857
|
+
* Sets whether the dialog should have a close button in the title bar. There
|
858
|
+
* will always be an element for the title close button, but setting this
|
859
|
+
* parameter to false will cause it to be hidden and have no active listener.
|
860
|
+
* @param {boolean} b Whether this dialog should have a title close button.
|
861
|
+
*/
|
862
|
+
goog.ui.Dialog.prototype.setHasTitleCloseButton = function(b) {
|
863
|
+
this.hasTitleCloseButton_ = b;
|
864
|
+
if (this.titleCloseEl_) {
|
865
|
+
goog.style.setElementShown(this.titleCloseEl_, this.hasTitleCloseButton_);
|
866
|
+
}
|
867
|
+
};
|
868
|
+
|
869
|
+
|
870
|
+
/**
|
871
|
+
* @return {boolean} Whether the escape key should close this dialog.
|
872
|
+
*/
|
873
|
+
goog.ui.Dialog.prototype.isEscapeToCancel = function() {
|
874
|
+
return this.escapeToCancel_;
|
875
|
+
};
|
876
|
+
|
877
|
+
|
878
|
+
/**
|
879
|
+
* @param {boolean} b Whether the escape key should close this dialog.
|
880
|
+
*/
|
881
|
+
goog.ui.Dialog.prototype.setEscapeToCancel = function(b) {
|
882
|
+
this.escapeToCancel_ = b;
|
883
|
+
};
|
884
|
+
|
885
|
+
|
886
|
+
/**
|
887
|
+
* Sets whether the dialog should be disposed when it is hidden. By default
|
888
|
+
* dialogs are not disposed when they are hidden.
|
889
|
+
* @param {boolean} b Whether the dialog should get disposed when it gets
|
890
|
+
* hidden.
|
891
|
+
*/
|
892
|
+
goog.ui.Dialog.prototype.setDisposeOnHide = function(b) {
|
893
|
+
this.disposeOnHide_ = b;
|
894
|
+
};
|
895
|
+
|
896
|
+
|
897
|
+
/**
|
898
|
+
* @return {boolean} Whether the dialog should be disposed when it is hidden.
|
899
|
+
*/
|
900
|
+
goog.ui.Dialog.prototype.getDisposeOnHide = function() {
|
901
|
+
return this.disposeOnHide_;
|
902
|
+
};
|
903
|
+
|
904
|
+
|
905
|
+
/** @override */
|
906
|
+
goog.ui.Dialog.prototype.disposeInternal = function() {
|
907
|
+
this.titleCloseEl_ = null;
|
908
|
+
this.buttonEl_ = null;
|
909
|
+
goog.base(this, 'disposeInternal');
|
910
|
+
};
|
911
|
+
|
912
|
+
|
913
|
+
/**
|
914
|
+
* Sets the button set to use.
|
915
|
+
* Note: Passing in null will cause no button set to be rendered.
|
916
|
+
* @param {goog.ui.Dialog.ButtonSet?} buttons The button set to use.
|
917
|
+
*/
|
918
|
+
goog.ui.Dialog.prototype.setButtonSet = function(buttons) {
|
919
|
+
this.buttons_ = buttons;
|
920
|
+
if (this.buttonEl_) {
|
921
|
+
if (this.buttons_) {
|
922
|
+
this.buttons_.attachToElement(this.buttonEl_);
|
923
|
+
} else {
|
924
|
+
this.buttonEl_.innerHTML = '';
|
925
|
+
}
|
926
|
+
goog.style.setElementShown(this.buttonEl_, !!this.buttons_);
|
927
|
+
}
|
928
|
+
};
|
929
|
+
|
930
|
+
|
931
|
+
/**
|
932
|
+
* Returns the button set being used.
|
933
|
+
* @return {goog.ui.Dialog.ButtonSet?} The button set being used.
|
934
|
+
*/
|
935
|
+
goog.ui.Dialog.prototype.getButtonSet = function() {
|
936
|
+
return this.buttons_;
|
937
|
+
};
|
938
|
+
|
939
|
+
|
940
|
+
/**
|
941
|
+
* Handles a click on the button container.
|
942
|
+
* @param {goog.events.BrowserEvent} e Browser's event object.
|
943
|
+
* @private
|
944
|
+
*/
|
945
|
+
goog.ui.Dialog.prototype.onButtonClick_ = function(e) {
|
946
|
+
var button = this.findParentButton_(/** @type {Element} */ (e.target));
|
947
|
+
if (button && !button.disabled) {
|
948
|
+
var key = button.name;
|
949
|
+
var caption = /** @type {Element|string} */(
|
950
|
+
this.getButtonSet().get(key));
|
951
|
+
if (this.dispatchEvent(new goog.ui.Dialog.Event(key, caption))) {
|
952
|
+
this.setVisible(false);
|
953
|
+
}
|
954
|
+
}
|
955
|
+
};
|
956
|
+
|
957
|
+
|
958
|
+
/**
|
959
|
+
* Finds the parent button of an element (or null if there was no button
|
960
|
+
* parent).
|
961
|
+
* @param {Element} element The element that was clicked on.
|
962
|
+
* @return {Element} Returns the parent button or null if not found.
|
963
|
+
* @private
|
964
|
+
*/
|
965
|
+
goog.ui.Dialog.prototype.findParentButton_ = function(element) {
|
966
|
+
var el = element;
|
967
|
+
while (el != null && el != this.buttonEl_) {
|
968
|
+
if (el.tagName == 'BUTTON') {
|
969
|
+
return /** @type {Element} */(el);
|
970
|
+
}
|
971
|
+
el = el.parentNode;
|
972
|
+
}
|
973
|
+
return null;
|
974
|
+
};
|
975
|
+
|
976
|
+
|
977
|
+
/**
|
978
|
+
* Handles keydown and keypress events, and dismisses the popup if cancel is
|
979
|
+
* pressed. If there is a cancel action in the ButtonSet, than that will be
|
980
|
+
* fired. Also prevents tabbing out of the dialog.
|
981
|
+
* @param {goog.events.BrowserEvent} e Browser's event object.
|
982
|
+
* @private
|
983
|
+
*/
|
984
|
+
goog.ui.Dialog.prototype.onKey_ = function(e) {
|
985
|
+
var close = false;
|
986
|
+
var hasHandler = false;
|
987
|
+
var buttonSet = this.getButtonSet();
|
988
|
+
var target = e.target;
|
989
|
+
|
990
|
+
if (e.type == goog.events.EventType.KEYDOWN) {
|
991
|
+
// Escape and tab can only properly be handled in keydown handlers.
|
992
|
+
if (this.escapeToCancel_ && e.keyCode == goog.events.KeyCodes.ESC) {
|
993
|
+
// Only if there is a valid cancel button is an event dispatched.
|
994
|
+
var cancel = buttonSet && buttonSet.getCancel();
|
995
|
+
|
996
|
+
// Users may expect to hit escape on a SELECT element.
|
997
|
+
var isSpecialFormElement =
|
998
|
+
target.tagName == 'SELECT' && !target.disabled;
|
999
|
+
|
1000
|
+
if (cancel && !isSpecialFormElement) {
|
1001
|
+
hasHandler = true;
|
1002
|
+
|
1003
|
+
var caption = buttonSet.get(cancel);
|
1004
|
+
close = this.dispatchEvent(
|
1005
|
+
new goog.ui.Dialog.Event(cancel,
|
1006
|
+
/** @type {Element|null|string} */(caption)));
|
1007
|
+
} else if (!isSpecialFormElement) {
|
1008
|
+
close = true;
|
1009
|
+
}
|
1010
|
+
} else if (e.keyCode == goog.events.KeyCodes.TAB && e.shiftKey &&
|
1011
|
+
target == this.getElement()) {
|
1012
|
+
// Prevent the user from shift-tabbing backwards out of the dialog box.
|
1013
|
+
// Instead, set up a wrap in focus backward to the end of the dialog.
|
1014
|
+
this.setupBackwardTabWrap();
|
1015
|
+
}
|
1016
|
+
} else if (e.keyCode == goog.events.KeyCodes.ENTER) {
|
1017
|
+
// Only handle ENTER in keypress events, in case the action opens a
|
1018
|
+
// popup window.
|
1019
|
+
var key;
|
1020
|
+
if (target.tagName == 'BUTTON' && !target.disabled) {
|
1021
|
+
// If the target is a button and it's enabled, we can fire that button's
|
1022
|
+
// handler.
|
1023
|
+
key = target.name;
|
1024
|
+
} else if (buttonSet) {
|
1025
|
+
// Try to fire the default button's handler (if one exists), but only if
|
1026
|
+
// the button is enabled.
|
1027
|
+
var defaultKey = buttonSet.getDefault();
|
1028
|
+
var defaultButton = defaultKey && buttonSet.getButton(defaultKey);
|
1029
|
+
|
1030
|
+
// Users may expect to hit enter on a TEXTAREA, SELECT or an A element.
|
1031
|
+
var isSpecialFormElement =
|
1032
|
+
(target.tagName == 'TEXTAREA' || target.tagName == 'SELECT' ||
|
1033
|
+
target.tagName == 'A') && !target.disabled;
|
1034
|
+
|
1035
|
+
if (defaultButton && !defaultButton.disabled && !isSpecialFormElement) {
|
1036
|
+
key = defaultKey;
|
1037
|
+
}
|
1038
|
+
}
|
1039
|
+
if (key && buttonSet) {
|
1040
|
+
hasHandler = true;
|
1041
|
+
close = this.dispatchEvent(
|
1042
|
+
new goog.ui.Dialog.Event(key, String(buttonSet.get(key))));
|
1043
|
+
}
|
1044
|
+
}
|
1045
|
+
|
1046
|
+
if (close || hasHandler) {
|
1047
|
+
e.stopPropagation();
|
1048
|
+
e.preventDefault();
|
1049
|
+
}
|
1050
|
+
|
1051
|
+
if (close) {
|
1052
|
+
this.setVisible(false);
|
1053
|
+
}
|
1054
|
+
};
|
1055
|
+
|
1056
|
+
|
1057
|
+
|
1058
|
+
/**
|
1059
|
+
* Dialog event class.
|
1060
|
+
* @param {string} key Key identifier for the button.
|
1061
|
+
* @param {string|Element} caption Caption on the button (might be i18nlized).
|
1062
|
+
* @constructor
|
1063
|
+
* @extends {goog.events.Event}
|
1064
|
+
*/
|
1065
|
+
goog.ui.Dialog.Event = function(key, caption) {
|
1066
|
+
this.type = goog.ui.Dialog.EventType.SELECT;
|
1067
|
+
this.key = key;
|
1068
|
+
this.caption = caption;
|
1069
|
+
};
|
1070
|
+
goog.inherits(goog.ui.Dialog.Event, goog.events.Event);
|
1071
|
+
|
1072
|
+
|
1073
|
+
/**
|
1074
|
+
* Event type constant for dialog events.
|
1075
|
+
* TODO(attila): Change this to goog.ui.Dialog.EventType.SELECT.
|
1076
|
+
* @type {string}
|
1077
|
+
* @deprecated Use goog.ui.Dialog.EventType.SELECT.
|
1078
|
+
*/
|
1079
|
+
goog.ui.Dialog.SELECT_EVENT = 'dialogselect';
|
1080
|
+
|
1081
|
+
|
1082
|
+
/**
|
1083
|
+
* Events dispatched by dialogs.
|
1084
|
+
* @enum {string}
|
1085
|
+
*/
|
1086
|
+
goog.ui.Dialog.EventType = {
|
1087
|
+
/**
|
1088
|
+
* Dispatched when the user closes the dialog.
|
1089
|
+
* The dispatched event will always be of type {@link goog.ui.Dialog.Event}.
|
1090
|
+
* Canceling the event will prevent the dialog from closing.
|
1091
|
+
*/
|
1092
|
+
SELECT: 'dialogselect',
|
1093
|
+
|
1094
|
+
/**
|
1095
|
+
* Dispatched after the dialog is closed. Not cancelable.
|
1096
|
+
* @deprecated Use goog.ui.PopupBase.EventType.HIDE.
|
1097
|
+
*/
|
1098
|
+
AFTER_HIDE: 'afterhide',
|
1099
|
+
|
1100
|
+
/**
|
1101
|
+
* Dispatched after the dialog is shown. Not cancelable.
|
1102
|
+
* @deprecated Use goog.ui.PopupBase.EventType.SHOW.
|
1103
|
+
*/
|
1104
|
+
AFTER_SHOW: 'aftershow'
|
1105
|
+
};
|
1106
|
+
|
1107
|
+
|
1108
|
+
|
1109
|
+
/**
|
1110
|
+
* A button set defines the behaviour of a set of buttons that the dialog can
|
1111
|
+
* show. Uses the {@link goog.structs.Map} interface.
|
1112
|
+
* @param {goog.dom.DomHelper=} opt_domHelper Optional DOM helper; see {@link
|
1113
|
+
* goog.ui.Component} for semantics.
|
1114
|
+
* @constructor
|
1115
|
+
* @extends {goog.structs.Map}
|
1116
|
+
*/
|
1117
|
+
goog.ui.Dialog.ButtonSet = function(opt_domHelper) {
|
1118
|
+
// TODO(attila): Refactor ButtonSet to extend goog.ui.Component?
|
1119
|
+
this.dom_ = opt_domHelper || goog.dom.getDomHelper();
|
1120
|
+
goog.structs.Map.call(this);
|
1121
|
+
};
|
1122
|
+
goog.inherits(goog.ui.Dialog.ButtonSet, goog.structs.Map);
|
1123
|
+
|
1124
|
+
|
1125
|
+
/**
|
1126
|
+
* A CSS className for this component.
|
1127
|
+
* @type {string}
|
1128
|
+
* @private
|
1129
|
+
*/
|
1130
|
+
goog.ui.Dialog.ButtonSet.prototype.class_ = goog.getCssName('goog-buttonset');
|
1131
|
+
|
1132
|
+
|
1133
|
+
/**
|
1134
|
+
* The button that has default focus (references key in buttons_ map).
|
1135
|
+
* @type {?string}
|
1136
|
+
* @private
|
1137
|
+
*/
|
1138
|
+
goog.ui.Dialog.ButtonSet.prototype.defaultButton_ = null;
|
1139
|
+
|
1140
|
+
|
1141
|
+
/**
|
1142
|
+
* Optional container the button set should be rendered into.
|
1143
|
+
* @type {Element}
|
1144
|
+
* @private
|
1145
|
+
*/
|
1146
|
+
goog.ui.Dialog.ButtonSet.prototype.element_ = null;
|
1147
|
+
|
1148
|
+
|
1149
|
+
/**
|
1150
|
+
* The button whose action is associated with the escape key and the X button
|
1151
|
+
* on the dialog.
|
1152
|
+
* @type {?string}
|
1153
|
+
* @private
|
1154
|
+
*/
|
1155
|
+
goog.ui.Dialog.ButtonSet.prototype.cancelButton_ = null;
|
1156
|
+
|
1157
|
+
|
1158
|
+
/**
|
1159
|
+
* Adds a button to the button set. Buttons will be displayed in the order they
|
1160
|
+
* are added.
|
1161
|
+
*
|
1162
|
+
* @param {*} key Key used to identify the button in events.
|
1163
|
+
* @param {*} caption A string caption or a DOM node that can be
|
1164
|
+
* appended to a button element.
|
1165
|
+
* @param {boolean=} opt_isDefault Whether this button is the default button,
|
1166
|
+
* Dialog will dispatch for this button if enter is pressed.
|
1167
|
+
* @param {boolean=} opt_isCancel Whether this button has the same behaviour as
|
1168
|
+
* cancel. If escape is pressed this button will fire.
|
1169
|
+
* @return {!goog.ui.Dialog.ButtonSet} The button set, to make it easy to chain
|
1170
|
+
* "set" calls and build new ButtonSets.
|
1171
|
+
* @override
|
1172
|
+
*/
|
1173
|
+
goog.ui.Dialog.ButtonSet.prototype.set = function(key, caption,
|
1174
|
+
opt_isDefault, opt_isCancel) {
|
1175
|
+
goog.structs.Map.prototype.set.call(this, key, caption);
|
1176
|
+
|
1177
|
+
if (opt_isDefault) {
|
1178
|
+
this.defaultButton_ = /** @type {?string} */ (key);
|
1179
|
+
}
|
1180
|
+
if (opt_isCancel) {
|
1181
|
+
this.cancelButton_ = /** @type {?string} */ (key);
|
1182
|
+
}
|
1183
|
+
|
1184
|
+
return this;
|
1185
|
+
};
|
1186
|
+
|
1187
|
+
|
1188
|
+
/**
|
1189
|
+
* Adds a button (an object with a key and caption) to this button set. Buttons
|
1190
|
+
* will be displayed in the order they are added.
|
1191
|
+
* @see goog.ui.Dialog.DefaultButtons
|
1192
|
+
* @param {!{key: string, caption: string}} button The button key and caption.
|
1193
|
+
* @param {boolean=} opt_isDefault Whether this button is the default button.
|
1194
|
+
* Dialog will dispatch for this button if enter is pressed.
|
1195
|
+
* @param {boolean=} opt_isCancel Whether this button has the same behavior as
|
1196
|
+
* cancel. If escape is pressed this button will fire.
|
1197
|
+
* @return {!goog.ui.Dialog.ButtonSet} The button set, to make it easy to chain
|
1198
|
+
* "addButton" calls and build new ButtonSets.
|
1199
|
+
*/
|
1200
|
+
goog.ui.Dialog.ButtonSet.prototype.addButton = function(button, opt_isDefault,
|
1201
|
+
opt_isCancel) {
|
1202
|
+
return this.set(button.key, button.caption, opt_isDefault, opt_isCancel);
|
1203
|
+
};
|
1204
|
+
|
1205
|
+
|
1206
|
+
/**
|
1207
|
+
* Attaches the button set to an element, rendering it inside.
|
1208
|
+
* @param {Element} el Container.
|
1209
|
+
*/
|
1210
|
+
goog.ui.Dialog.ButtonSet.prototype.attachToElement = function(el) {
|
1211
|
+
this.element_ = el;
|
1212
|
+
this.render();
|
1213
|
+
};
|
1214
|
+
|
1215
|
+
|
1216
|
+
/**
|
1217
|
+
* Renders the button set inside its container element.
|
1218
|
+
*/
|
1219
|
+
goog.ui.Dialog.ButtonSet.prototype.render = function() {
|
1220
|
+
if (this.element_) {
|
1221
|
+
this.element_.innerHTML = '';
|
1222
|
+
var domHelper = goog.dom.getDomHelper(this.element_);
|
1223
|
+
goog.structs.forEach(this, function(caption, key) {
|
1224
|
+
var button = domHelper.createDom('button', {'name': key}, caption);
|
1225
|
+
if (key == this.defaultButton_) {
|
1226
|
+
button.className = goog.getCssName(this.class_, 'default');
|
1227
|
+
}
|
1228
|
+
this.element_.appendChild(button);
|
1229
|
+
}, this);
|
1230
|
+
}
|
1231
|
+
};
|
1232
|
+
|
1233
|
+
|
1234
|
+
/**
|
1235
|
+
* Decorates the given element by adding any {@code button} elements found
|
1236
|
+
* among its descendants to the button set. The first button found is assumed
|
1237
|
+
* to be the default and will receive focus when the button set is rendered.
|
1238
|
+
* If a button with a name of {@link goog.ui.Dialog.DefaultButtonKeys.CANCEL}
|
1239
|
+
* is found, it is assumed to have "Cancel" semantics.
|
1240
|
+
* TODO(attila): ButtonSet should be a goog.ui.Component. Really.
|
1241
|
+
* @param {Element} element The element to decorate; should contain buttons.
|
1242
|
+
*/
|
1243
|
+
goog.ui.Dialog.ButtonSet.prototype.decorate = function(element) {
|
1244
|
+
if (!element || element.nodeType != goog.dom.NodeType.ELEMENT) {
|
1245
|
+
return;
|
1246
|
+
}
|
1247
|
+
|
1248
|
+
this.element_ = element;
|
1249
|
+
var buttons = this.element_.getElementsByTagName('button');
|
1250
|
+
for (var i = 0, button, key, caption; button = buttons[i]; i++) {
|
1251
|
+
// Buttons should have a "name" attribute and have their caption defined by
|
1252
|
+
// their innerHTML, but not everyone knows this, and we should play nice.
|
1253
|
+
key = button.name || button.id;
|
1254
|
+
caption = goog.dom.getTextContent(button) || button.value;
|
1255
|
+
if (key) {
|
1256
|
+
var isDefault = i == 0;
|
1257
|
+
var isCancel = button.name == goog.ui.Dialog.DefaultButtonKeys.CANCEL;
|
1258
|
+
this.set(key, caption, isDefault, isCancel);
|
1259
|
+
if (isDefault) {
|
1260
|
+
goog.dom.classes.add(button, goog.getCssName(this.class_,
|
1261
|
+
'default'));
|
1262
|
+
}
|
1263
|
+
}
|
1264
|
+
}
|
1265
|
+
};
|
1266
|
+
|
1267
|
+
|
1268
|
+
/**
|
1269
|
+
* Gets the component's element.
|
1270
|
+
* @return {Element} The element for the component.
|
1271
|
+
* TODO(user): Remove after refactoring to goog.ui.Component.
|
1272
|
+
*/
|
1273
|
+
goog.ui.Dialog.ButtonSet.prototype.getElement = function() {
|
1274
|
+
return this.element_;
|
1275
|
+
};
|
1276
|
+
|
1277
|
+
|
1278
|
+
/**
|
1279
|
+
* Returns the dom helper that is being used on this component.
|
1280
|
+
* @return {!goog.dom.DomHelper} The dom helper used on this component.
|
1281
|
+
* TODO(user): Remove after refactoring to goog.ui.Component.
|
1282
|
+
*/
|
1283
|
+
goog.ui.Dialog.ButtonSet.prototype.getDomHelper = function() {
|
1284
|
+
return this.dom_;
|
1285
|
+
};
|
1286
|
+
|
1287
|
+
|
1288
|
+
/**
|
1289
|
+
* Sets the default button.
|
1290
|
+
* @param {?string} key The default button.
|
1291
|
+
*/
|
1292
|
+
goog.ui.Dialog.ButtonSet.prototype.setDefault = function(key) {
|
1293
|
+
this.defaultButton_ = key;
|
1294
|
+
};
|
1295
|
+
|
1296
|
+
|
1297
|
+
/**
|
1298
|
+
* Returns the default button.
|
1299
|
+
* @return {?string} The default button.
|
1300
|
+
*/
|
1301
|
+
goog.ui.Dialog.ButtonSet.prototype.getDefault = function() {
|
1302
|
+
return this.defaultButton_;
|
1303
|
+
};
|
1304
|
+
|
1305
|
+
|
1306
|
+
/**
|
1307
|
+
* Sets the cancel button.
|
1308
|
+
* @param {?string} key The cancel button.
|
1309
|
+
*/
|
1310
|
+
goog.ui.Dialog.ButtonSet.prototype.setCancel = function(key) {
|
1311
|
+
this.cancelButton_ = key;
|
1312
|
+
};
|
1313
|
+
|
1314
|
+
|
1315
|
+
/**
|
1316
|
+
* Returns the cancel button.
|
1317
|
+
* @return {?string} The cancel button.
|
1318
|
+
*/
|
1319
|
+
goog.ui.Dialog.ButtonSet.prototype.getCancel = function() {
|
1320
|
+
return this.cancelButton_;
|
1321
|
+
};
|
1322
|
+
|
1323
|
+
|
1324
|
+
/**
|
1325
|
+
* Returns the HTML Button element.
|
1326
|
+
* @param {string} key The button to return.
|
1327
|
+
* @return {Element} The button, if found else null.
|
1328
|
+
*/
|
1329
|
+
goog.ui.Dialog.ButtonSet.prototype.getButton = function(key) {
|
1330
|
+
var buttons = this.getAllButtons();
|
1331
|
+
for (var i = 0, nextButton; nextButton = buttons[i]; i++) {
|
1332
|
+
if (nextButton.name == key || nextButton.id == key) {
|
1333
|
+
return nextButton;
|
1334
|
+
}
|
1335
|
+
}
|
1336
|
+
return null;
|
1337
|
+
};
|
1338
|
+
|
1339
|
+
|
1340
|
+
/**
|
1341
|
+
* Returns all the HTML Button elements in the button set container.
|
1342
|
+
* @return {NodeList} A live NodeList of the buttons.
|
1343
|
+
*/
|
1344
|
+
goog.ui.Dialog.ButtonSet.prototype.getAllButtons = function() {
|
1345
|
+
return this.element_.getElementsByTagName(goog.dom.TagName.BUTTON);
|
1346
|
+
};
|
1347
|
+
|
1348
|
+
|
1349
|
+
/**
|
1350
|
+
* Enables or disables a button in this set by key. If the button is not found,
|
1351
|
+
* does nothing.
|
1352
|
+
* @param {string} key The button to enable or disable.
|
1353
|
+
* @param {boolean} enabled True to enable; false to disable.
|
1354
|
+
*/
|
1355
|
+
goog.ui.Dialog.ButtonSet.prototype.setButtonEnabled = function(key, enabled) {
|
1356
|
+
var button = this.getButton(key);
|
1357
|
+
if (button) {
|
1358
|
+
button.disabled = !enabled;
|
1359
|
+
}
|
1360
|
+
};
|
1361
|
+
|
1362
|
+
|
1363
|
+
/**
|
1364
|
+
* Enables or disables all of the buttons in this set.
|
1365
|
+
* @param {boolean} enabled True to enable; false to disable.
|
1366
|
+
*/
|
1367
|
+
goog.ui.Dialog.ButtonSet.prototype.setAllButtonsEnabled = function(enabled) {
|
1368
|
+
var allButtons = this.getAllButtons();
|
1369
|
+
for (var i = 0, button; button = allButtons[i]; i++) {
|
1370
|
+
button.disabled = !enabled;
|
1371
|
+
}
|
1372
|
+
};
|
1373
|
+
|
1374
|
+
|
1375
|
+
/**
|
1376
|
+
* The keys used to identify standard buttons in events.
|
1377
|
+
* @enum {string}
|
1378
|
+
*/
|
1379
|
+
goog.ui.Dialog.DefaultButtonKeys = {
|
1380
|
+
OK: 'ok',
|
1381
|
+
CANCEL: 'cancel',
|
1382
|
+
YES: 'yes',
|
1383
|
+
NO: 'no',
|
1384
|
+
SAVE: 'save',
|
1385
|
+
CONTINUE: 'continue'
|
1386
|
+
};
|
1387
|
+
|
1388
|
+
|
1389
|
+
/**
|
1390
|
+
* @desc Standard caption for the dialog 'OK' button.
|
1391
|
+
* @private
|
1392
|
+
*/
|
1393
|
+
goog.ui.Dialog.MSG_DIALOG_OK_ = goog.getMsg('OK');
|
1394
|
+
|
1395
|
+
|
1396
|
+
/**
|
1397
|
+
* @desc Standard caption for the dialog 'Cancel' button.
|
1398
|
+
* @private
|
1399
|
+
*/
|
1400
|
+
goog.ui.Dialog.MSG_DIALOG_CANCEL_ = goog.getMsg('Cancel');
|
1401
|
+
|
1402
|
+
|
1403
|
+
/**
|
1404
|
+
* @desc Standard caption for the dialog 'Yes' button.
|
1405
|
+
* @private
|
1406
|
+
*/
|
1407
|
+
goog.ui.Dialog.MSG_DIALOG_YES_ = goog.getMsg('Yes');
|
1408
|
+
|
1409
|
+
|
1410
|
+
/**
|
1411
|
+
* @desc Standard caption for the dialog 'No' button.
|
1412
|
+
* @private
|
1413
|
+
*/
|
1414
|
+
goog.ui.Dialog.MSG_DIALOG_NO_ = goog.getMsg('No');
|
1415
|
+
|
1416
|
+
|
1417
|
+
/**
|
1418
|
+
* @desc Standard caption for the dialog 'Save' button.
|
1419
|
+
* @private
|
1420
|
+
*/
|
1421
|
+
goog.ui.Dialog.MSG_DIALOG_SAVE_ = goog.getMsg('Save');
|
1422
|
+
|
1423
|
+
|
1424
|
+
/**
|
1425
|
+
* @desc Standard caption for the dialog 'Continue' button.
|
1426
|
+
* @private
|
1427
|
+
*/
|
1428
|
+
goog.ui.Dialog.MSG_DIALOG_CONTINUE_ = goog.getMsg('Continue');
|
1429
|
+
|
1430
|
+
|
1431
|
+
/**
|
1432
|
+
* The default captions for the default buttons.
|
1433
|
+
* @enum {string}
|
1434
|
+
*/
|
1435
|
+
goog.ui.Dialog.DefaultButtonCaptions = {
|
1436
|
+
OK: goog.ui.Dialog.MSG_DIALOG_OK_,
|
1437
|
+
CANCEL: goog.ui.Dialog.MSG_DIALOG_CANCEL_,
|
1438
|
+
YES: goog.ui.Dialog.MSG_DIALOG_YES_,
|
1439
|
+
NO: goog.ui.Dialog.MSG_DIALOG_NO_,
|
1440
|
+
SAVE: goog.ui.Dialog.MSG_DIALOG_SAVE_,
|
1441
|
+
CONTINUE: goog.ui.Dialog.MSG_DIALOG_CONTINUE_
|
1442
|
+
};
|
1443
|
+
|
1444
|
+
|
1445
|
+
/**
|
1446
|
+
* The standard buttons (keys associated with captions).
|
1447
|
+
* @enum {!{key: string, caption: string}}
|
1448
|
+
*/
|
1449
|
+
goog.ui.Dialog.ButtonSet.DefaultButtons = {
|
1450
|
+
OK: {
|
1451
|
+
key: goog.ui.Dialog.DefaultButtonKeys.OK,
|
1452
|
+
caption: goog.ui.Dialog.DefaultButtonCaptions.OK
|
1453
|
+
},
|
1454
|
+
CANCEL: {
|
1455
|
+
key: goog.ui.Dialog.DefaultButtonKeys.CANCEL,
|
1456
|
+
caption: goog.ui.Dialog.DefaultButtonCaptions.CANCEL
|
1457
|
+
},
|
1458
|
+
YES: {
|
1459
|
+
key: goog.ui.Dialog.DefaultButtonKeys.YES,
|
1460
|
+
caption: goog.ui.Dialog.DefaultButtonCaptions.YES
|
1461
|
+
},
|
1462
|
+
NO: {
|
1463
|
+
key: goog.ui.Dialog.DefaultButtonKeys.NO,
|
1464
|
+
caption: goog.ui.Dialog.DefaultButtonCaptions.NO
|
1465
|
+
},
|
1466
|
+
SAVE: {
|
1467
|
+
key: goog.ui.Dialog.DefaultButtonKeys.SAVE,
|
1468
|
+
caption: goog.ui.Dialog.DefaultButtonCaptions.SAVE
|
1469
|
+
},
|
1470
|
+
CONTINUE: {
|
1471
|
+
key: goog.ui.Dialog.DefaultButtonKeys.CONTINUE,
|
1472
|
+
caption: goog.ui.Dialog.DefaultButtonCaptions.CONTINUE
|
1473
|
+
}
|
1474
|
+
};
|
1475
|
+
|
1476
|
+
|
1477
|
+
/**
|
1478
|
+
* Creates a new ButtonSet with a single 'OK' button, which is also set with
|
1479
|
+
* cancel button semantics so that pressing escape will close the dialog.
|
1480
|
+
* @return {!goog.ui.Dialog.ButtonSet} The created ButtonSet.
|
1481
|
+
*/
|
1482
|
+
goog.ui.Dialog.ButtonSet.createOk = function() {
|
1483
|
+
return new goog.ui.Dialog.ButtonSet().
|
1484
|
+
addButton(goog.ui.Dialog.ButtonSet.DefaultButtons.OK, true, true);
|
1485
|
+
};
|
1486
|
+
|
1487
|
+
|
1488
|
+
/**
|
1489
|
+
* Creates a new ButtonSet with 'OK' (default) and 'Cancel' buttons.
|
1490
|
+
* @return {!goog.ui.Dialog.ButtonSet} The created ButtonSet.
|
1491
|
+
*/
|
1492
|
+
goog.ui.Dialog.ButtonSet.createOkCancel = function() {
|
1493
|
+
return new goog.ui.Dialog.ButtonSet().
|
1494
|
+
addButton(goog.ui.Dialog.ButtonSet.DefaultButtons.OK, true).
|
1495
|
+
addButton(goog.ui.Dialog.ButtonSet.DefaultButtons.CANCEL, false, true);
|
1496
|
+
};
|
1497
|
+
|
1498
|
+
|
1499
|
+
/**
|
1500
|
+
* Creates a new ButtonSet with 'Yes' (default) and 'No' buttons.
|
1501
|
+
* @return {!goog.ui.Dialog.ButtonSet} The created ButtonSet.
|
1502
|
+
*/
|
1503
|
+
goog.ui.Dialog.ButtonSet.createYesNo = function() {
|
1504
|
+
return new goog.ui.Dialog.ButtonSet().
|
1505
|
+
addButton(goog.ui.Dialog.ButtonSet.DefaultButtons.YES, true).
|
1506
|
+
addButton(goog.ui.Dialog.ButtonSet.DefaultButtons.NO, false, true);
|
1507
|
+
};
|
1508
|
+
|
1509
|
+
|
1510
|
+
/**
|
1511
|
+
* Creates a new ButtonSet with 'Yes', 'No' (default), and 'Cancel' buttons.
|
1512
|
+
* @return {!goog.ui.Dialog.ButtonSet} The created ButtonSet.
|
1513
|
+
*/
|
1514
|
+
goog.ui.Dialog.ButtonSet.createYesNoCancel = function() {
|
1515
|
+
return new goog.ui.Dialog.ButtonSet().
|
1516
|
+
addButton(goog.ui.Dialog.ButtonSet.DefaultButtons.YES).
|
1517
|
+
addButton(goog.ui.Dialog.ButtonSet.DefaultButtons.NO, true).
|
1518
|
+
addButton(goog.ui.Dialog.ButtonSet.DefaultButtons.CANCEL, false, true);
|
1519
|
+
};
|
1520
|
+
|
1521
|
+
|
1522
|
+
/**
|
1523
|
+
* Creates a new ButtonSet with 'Continue', 'Save', and 'Cancel' (default)
|
1524
|
+
* buttons.
|
1525
|
+
* @return {!goog.ui.Dialog.ButtonSet} The created ButtonSet.
|
1526
|
+
*/
|
1527
|
+
goog.ui.Dialog.ButtonSet.createContinueSaveCancel = function() {
|
1528
|
+
return new goog.ui.Dialog.ButtonSet().
|
1529
|
+
addButton(goog.ui.Dialog.ButtonSet.DefaultButtons.CONTINUE).
|
1530
|
+
addButton(goog.ui.Dialog.ButtonSet.DefaultButtons.SAVE).
|
1531
|
+
addButton(goog.ui.Dialog.ButtonSet.DefaultButtons.CANCEL, true, true);
|
1532
|
+
};
|
1533
|
+
|
1534
|
+
|
1535
|
+
// TODO(user): These shared instances should be phased out.
|
1536
|
+
(function() {
|
1537
|
+
if (typeof document != 'undefined') {
|
1538
|
+
/** @deprecated Use goog.ui.Dialog.ButtonSet#createOk. */
|
1539
|
+
goog.ui.Dialog.ButtonSet.OK = goog.ui.Dialog.ButtonSet.createOk();
|
1540
|
+
|
1541
|
+
/** @deprecated Use goog.ui.Dialog.ButtonSet#createOkCancel. */
|
1542
|
+
goog.ui.Dialog.ButtonSet.OK_CANCEL =
|
1543
|
+
goog.ui.Dialog.ButtonSet.createOkCancel();
|
1544
|
+
|
1545
|
+
/** @deprecated Use goog.ui.Dialog.ButtonSet#createYesNo. */
|
1546
|
+
goog.ui.Dialog.ButtonSet.YES_NO = goog.ui.Dialog.ButtonSet.createYesNo();
|
1547
|
+
|
1548
|
+
/** @deprecated Use goog.ui.Dialog.ButtonSet#createYesNoCancel. */
|
1549
|
+
goog.ui.Dialog.ButtonSet.YES_NO_CANCEL =
|
1550
|
+
goog.ui.Dialog.ButtonSet.createYesNoCancel();
|
1551
|
+
|
1552
|
+
/** @deprecated Use goog.ui.Dialog.ButtonSet#createContinueSaveCancel. */
|
1553
|
+
goog.ui.Dialog.ButtonSet.CONTINUE_SAVE_CANCEL =
|
1554
|
+
goog.ui.Dialog.ButtonSet.createContinueSaveCancel();
|
1555
|
+
}
|
1556
|
+
})();
|