closure 1.1.692
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +6 -0
- data/.yardopts +3 -0
- data/LICENSE +202 -0
- data/README.md +26 -0
- data/beanshell/LICENSE +12 -0
- data/beanshell/bsh-core-2.0b4.jar +0 -0
- data/closure-compiler/COPYING +202 -0
- data/closure-compiler/README +278 -0
- data/closure-compiler/compiler.jar +0 -0
- data/closure-library/AUTHORS +12 -0
- data/closure-library/LICENSE +176 -0
- data/closure-library/README +6 -0
- data/closure-library/all_tests.html +113 -0
- data/closure-library/alltests.js +16 -0
- data/closure-library/closure/bin/build/closurebuilder.py +257 -0
- data/closure-library/closure/bin/build/depstree.py +186 -0
- data/closure-library/closure/bin/build/depstree_test.py +127 -0
- data/closure-library/closure/bin/build/depswriter.py +197 -0
- data/closure-library/closure/bin/build/jscompiler.py +69 -0
- data/closure-library/closure/bin/build/source.py +86 -0
- data/closure-library/closure/bin/build/source_test.py +57 -0
- data/closure-library/closure/bin/build/treescan.py +78 -0
- data/closure-library/closure/bin/calcdeps.py +570 -0
- data/closure-library/closure/bin/scopify.py +211 -0
- data/closure-library/closure/css/inlay/g-base.css +82 -0
- data/closure-library/closure/css/inlay/g-fixed.css +158 -0
- data/closure-library/closure/css/inlay/g-ratio.css +253 -0
- data/closure-library/closure/goog/array/array.js +1300 -0
- data/closure-library/closure/goog/array/array_test.html +1524 -0
- data/closure-library/closure/goog/asserts/asserts.js +277 -0
- data/closure-library/closure/goog/asserts/asserts_test.html +163 -0
- data/closure-library/closure/goog/async/conditionaldelay.js +238 -0
- data/closure-library/closure/goog/async/conditionaldelay_test.html +227 -0
- data/closure-library/closure/goog/async/delay.js +174 -0
- data/closure-library/closure/goog/async/delay_test.html +148 -0
- data/closure-library/closure/goog/async/throttle.js +189 -0
- data/closure-library/closure/goog/async/throttle_test.html +102 -0
- data/closure-library/closure/goog/base.js +1471 -0
- data/closure-library/closure/goog/base_test.html +1166 -0
- data/closure-library/closure/goog/bootstrap/webworkers.js +37 -0
- data/closure-library/closure/goog/color/alpha.js +436 -0
- data/closure-library/closure/goog/color/alpha_test.html +234 -0
- data/closure-library/closure/goog/color/color.js +757 -0
- data/closure-library/closure/goog/color/color_test.html +645 -0
- data/closure-library/closure/goog/color/names.js +176 -0
- data/closure-library/closure/goog/crypt/arc4.js +141 -0
- data/closure-library/closure/goog/crypt/arc4_test.html +42 -0
- data/closure-library/closure/goog/crypt/base64.js +267 -0
- data/closure-library/closure/goog/crypt/base64_test.html +106 -0
- data/closure-library/closure/goog/crypt/basen.js +242 -0
- data/closure-library/closure/goog/crypt/basen_test.html +167 -0
- data/closure-library/closure/goog/crypt/crypt.js +103 -0
- data/closure-library/closure/goog/crypt/crypt_test.html +68 -0
- data/closure-library/closure/goog/crypt/hash32.js +184 -0
- data/closure-library/closure/goog/crypt/hash32_test.html +287 -0
- data/closure-library/closure/goog/crypt/sha1.js +238 -0
- data/closure-library/closure/goog/crypt/sha1_test.html +47 -0
- data/closure-library/closure/goog/css/autocomplete.css +43 -0
- data/closure-library/closure/goog/css/bubble.css +84 -0
- data/closure-library/closure/goog/css/button.css +38 -0
- data/closure-library/closure/goog/css/charpicker.css +201 -0
- data/closure-library/closure/goog/css/checkbox.css +38 -0
- data/closure-library/closure/goog/css/colormenubutton.css +25 -0
- data/closure-library/closure/goog/css/colorpalette.css +54 -0
- data/closure-library/closure/goog/css/colorpicker-simplegrid.css +50 -0
- data/closure-library/closure/goog/css/combobox.css +57 -0
- data/closure-library/closure/goog/css/common.css +41 -0
- data/closure-library/closure/goog/css/css3button.css +77 -0
- data/closure-library/closure/goog/css/css3menubutton.css +23 -0
- data/closure-library/closure/goog/css/custombutton.css +164 -0
- data/closure-library/closure/goog/css/datepicker.css +148 -0
- data/closure-library/closure/goog/css/dialog.css +72 -0
- data/closure-library/closure/goog/css/dimensionpicker.css +47 -0
- data/closure-library/closure/goog/css/dragdropdetector.css +48 -0
- data/closure-library/closure/goog/css/editor/bubble.css +73 -0
- data/closure-library/closure/goog/css/editor/dialog.css +66 -0
- data/closure-library/closure/goog/css/editor/linkdialog.css +36 -0
- data/closure-library/closure/goog/css/editortoolbar.css +225 -0
- data/closure-library/closure/goog/css/filteredmenu.css +30 -0
- data/closure-library/closure/goog/css/filterobservingmenuitem.css +25 -0
- data/closure-library/closure/goog/css/flatbutton.css +65 -0
- data/closure-library/closure/goog/css/flatmenubutton.css +63 -0
- data/closure-library/closure/goog/css/hovercard.css +51 -0
- data/closure-library/closure/goog/css/hsvapalette.css +231 -0
- data/closure-library/closure/goog/css/hsvpalette.css +179 -0
- data/closure-library/closure/goog/css/imagelessbutton.css +160 -0
- data/closure-library/closure/goog/css/imagelessmenubutton.css +23 -0
- data/closure-library/closure/goog/css/inputdatepicker.css +12 -0
- data/closure-library/closure/goog/css/linkbutton.css +26 -0
- data/closure-library/closure/goog/css/menu.css +27 -0
- data/closure-library/closure/goog/css/menubutton.css +169 -0
- data/closure-library/closure/goog/css/menuitem.css +96 -0
- data/closure-library/closure/goog/css/menuseparator.css +19 -0
- data/closure-library/closure/goog/css/multitestrunner.css +121 -0
- data/closure-library/closure/goog/css/offline.css +147 -0
- data/closure-library/closure/goog/css/palette.css +36 -0
- data/closure-library/closure/goog/css/popupdatepicker.css +17 -0
- data/closure-library/closure/goog/css/roundedpanel.css +29 -0
- data/closure-library/closure/goog/css/roundedtab.css +158 -0
- data/closure-library/closure/goog/css/submenu.css +28 -0
- data/closure-library/closure/goog/css/tab.css +91 -0
- data/closure-library/closure/goog/css/tabbar.css +52 -0
- data/closure-library/closure/goog/css/tablesorter.css +14 -0
- data/closure-library/closure/goog/css/toolbar.css +400 -0
- data/closure-library/closure/goog/css/tooltip.css +14 -0
- data/closure-library/closure/goog/css/tree.css +147 -0
- data/closure-library/closure/goog/css/tristatemenuitem.css +43 -0
- data/closure-library/closure/goog/cssom/cssom.js +447 -0
- data/closure-library/closure/goog/cssom/cssom_test.html +343 -0
- data/closure-library/closure/goog/cssom/cssom_test_import_1.css +11 -0
- data/closure-library/closure/goog/cssom/cssom_test_import_2.css +10 -0
- data/closure-library/closure/goog/cssom/cssom_test_link_1.css +10 -0
- data/closure-library/closure/goog/cssom/iframe/style.js +1020 -0
- data/closure-library/closure/goog/cssom/iframe/style_test.html +391 -0
- data/closure-library/closure/goog/cssom/iframe/style_test_import.css +10 -0
- data/closure-library/closure/goog/datasource/datamanager.js +566 -0
- data/closure-library/closure/goog/datasource/datasource.js +646 -0
- data/closure-library/closure/goog/datasource/datasource_test.html +265 -0
- data/closure-library/closure/goog/datasource/expr.js +544 -0
- data/closure-library/closure/goog/datasource/expr_test.html +97 -0
- data/closure-library/closure/goog/datasource/fastdatanode.js +792 -0
- data/closure-library/closure/goog/datasource/fastdatanode_test.html +254 -0
- data/closure-library/closure/goog/datasource/jsdatasource.js +460 -0
- data/closure-library/closure/goog/datasource/jsondatasource.js +146 -0
- data/closure-library/closure/goog/datasource/jsxmlhttpdatasource.js +191 -0
- data/closure-library/closure/goog/datasource/jsxmlhttpdatasource_test.html +94 -0
- data/closure-library/closure/goog/datasource/xmldatasource.js +407 -0
- data/closure-library/closure/goog/date/date.js +1642 -0
- data/closure-library/closure/goog/date/date_test.html +1293 -0
- data/closure-library/closure/goog/date/datelike.js +27 -0
- data/closure-library/closure/goog/date/daterange.js +398 -0
- data/closure-library/closure/goog/date/daterange_test.html +213 -0
- data/closure-library/closure/goog/date/relative.js +425 -0
- data/closure-library/closure/goog/date/relative_test.html +124 -0
- data/closure-library/closure/goog/date/utcdatetime.js +178 -0
- data/closure-library/closure/goog/date/utcdatetime_test.html +119 -0
- data/closure-library/closure/goog/debug/console.js +138 -0
- data/closure-library/closure/goog/debug/debug.js +452 -0
- data/closure-library/closure/goog/debug/debug_test.html +32 -0
- data/closure-library/closure/goog/debug/debugwindow.js +582 -0
- data/closure-library/closure/goog/debug/devcss/devcss.js +435 -0
- data/closure-library/closure/goog/debug/devcss/devcss_test.html +365 -0
- data/closure-library/closure/goog/debug/devcss/devcssrunner.js +26 -0
- data/closure-library/closure/goog/debug/divconsole.js +141 -0
- data/closure-library/closure/goog/debug/enhanceerror_test.html +138 -0
- data/closure-library/closure/goog/debug/entrypointregistry.js +111 -0
- data/closure-library/closure/goog/debug/entrypointregistry_test.html +63 -0
- data/closure-library/closure/goog/debug/error.js +47 -0
- data/closure-library/closure/goog/debug/error_test.html +85 -0
- data/closure-library/closure/goog/debug/errorhandler.js +234 -0
- data/closure-library/closure/goog/debug/errorhandler_async_test.html +112 -0
- data/closure-library/closure/goog/debug/errorhandler_test.html +186 -0
- data/closure-library/closure/goog/debug/errorhandlerweakdep.js +38 -0
- data/closure-library/closure/goog/debug/errorreporter.js +324 -0
- data/closure-library/closure/goog/debug/errorreporter_test.html +289 -0
- data/closure-library/closure/goog/debug/fancywindow.js +265 -0
- data/closure-library/closure/goog/debug/formatter.js +314 -0
- data/closure-library/closure/goog/debug/gcdiagnostics.js +143 -0
- data/closure-library/closure/goog/debug/logbuffer.js +147 -0
- data/closure-library/closure/goog/debug/logbuffer_test.html +105 -0
- data/closure-library/closure/goog/debug/logger.js +809 -0
- data/closure-library/closure/goog/debug/logger_test.html +208 -0
- data/closure-library/closure/goog/debug/logrecord.js +271 -0
- data/closure-library/closure/goog/debug/reflect.js +159 -0
- data/closure-library/closure/goog/debug/reflect_test.html +81 -0
- data/closure-library/closure/goog/debug/relativetimeprovider.js +83 -0
- data/closure-library/closure/goog/debug/tracer.js +750 -0
- data/closure-library/closure/goog/debug/tracer_test.html +57 -0
- data/closure-library/closure/goog/demos/advancedtooltip.html +78 -0
- data/closure-library/closure/goog/demos/animationqueue.html +149 -0
- data/closure-library/closure/goog/demos/autocomplete-basic.html +56 -0
- data/closure-library/closure/goog/demos/autocompleteremote.html +40 -0
- data/closure-library/closure/goog/demos/autocompleteremotedata.js +18 -0
- data/closure-library/closure/goog/demos/autocompleterichremote.html +137 -0
- data/closure-library/closure/goog/demos/autocompleterichremotedata.js +33 -0
- data/closure-library/closure/goog/demos/bidiinput.html +72 -0
- data/closure-library/closure/goog/demos/bubble.html +250 -0
- data/closure-library/closure/goog/demos/button.html +395 -0
- data/closure-library/closure/goog/demos/charcounter.html +57 -0
- data/closure-library/closure/goog/demos/charpicker.html +64 -0
- data/closure-library/closure/goog/demos/checkbox.html +122 -0
- data/closure-library/closure/goog/demos/color-contrast.html +60 -0
- data/closure-library/closure/goog/demos/colormenubutton.html +213 -0
- data/closure-library/closure/goog/demos/colorpicker.html +43 -0
- data/closure-library/closure/goog/demos/combobox.html +125 -0
- data/closure-library/closure/goog/demos/container.html +670 -0
- data/closure-library/closure/goog/demos/control.html +477 -0
- data/closure-library/closure/goog/demos/css/demo.css +75 -0
- data/closure-library/closure/goog/demos/css/emojipicker.css +36 -0
- data/closure-library/closure/goog/demos/css/emojisprite.css +92 -0
- data/closure-library/closure/goog/demos/css3button.html +166 -0
- data/closure-library/closure/goog/demos/css3menubutton.html +285 -0
- data/closure-library/closure/goog/demos/cssspriteanimation.html +80 -0
- data/closure-library/closure/goog/demos/datepicker.html +183 -0
- data/closure-library/closure/goog/demos/debug.html +119 -0
- data/closure-library/closure/goog/demos/depsgraph.html +221 -0
- data/closure-library/closure/goog/demos/dialog.html +156 -0
- data/closure-library/closure/goog/demos/dimensionpicker.html +108 -0
- data/closure-library/closure/goog/demos/dimensionpicker_rtl.html +123 -0
- data/closure-library/closure/goog/demos/dom_selection.html +88 -0
- data/closure-library/closure/goog/demos/drag.html +191 -0
- data/closure-library/closure/goog/demos/dragdrop.html +263 -0
- data/closure-library/closure/goog/demos/dragdropdetector.html +46 -0
- data/closure-library/closure/goog/demos/dragdropdetector_target.html +17 -0
- data/closure-library/closure/goog/demos/dragger.html +83 -0
- data/closure-library/closure/goog/demos/draglistgroup.html +261 -0
- data/closure-library/closure/goog/demos/drilldownrow.html +78 -0
- data/closure-library/closure/goog/demos/editor/deps.js +20 -0
- data/closure-library/closure/goog/demos/editor/editor.html +139 -0
- data/closure-library/closure/goog/demos/editor/field_basic.html +74 -0
- data/closure-library/closure/goog/demos/editor/helloworld.html +91 -0
- data/closure-library/closure/goog/demos/editor/helloworld.js +81 -0
- data/closure-library/closure/goog/demos/editor/helloworld_test.html +75 -0
- data/closure-library/closure/goog/demos/editor/helloworlddialog.js +163 -0
- data/closure-library/closure/goog/demos/editor/helloworlddialog_test.html +100 -0
- data/closure-library/closure/goog/demos/editor/helloworlddialogplugin.js +110 -0
- data/closure-library/closure/goog/demos/editor/helloworlddialogplugin_test.html +198 -0
- data/closure-library/closure/goog/demos/editor/seamlessfield.html +106 -0
- data/closure-library/closure/goog/demos/effects.html +142 -0
- data/closure-library/closure/goog/demos/emoji/200.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/201.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/202.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/203.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/204.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/205.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/206.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2BC.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2BD.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2BE.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2BF.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2C0.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2C1.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2C2.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2C3.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2C4.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2C5.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2C6.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2C7.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2C8.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2C9.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2CA.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2CB.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2CC.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2CD.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2CE.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2CF.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2D0.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2D1.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2D2.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2D3.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2D4.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2D5.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2D6.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2D7.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2D8.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2D9.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2DA.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2DB.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2DC.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2DD.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2DE.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2DF.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2E0.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2E1.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2E2.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2E3.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2E4.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2E5.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2E6.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2E7.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2E8.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2E9.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2EA.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2EB.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2EC.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2ED.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2EE.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2EF.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2F0.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2F1.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2F2.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2F3.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2F4.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2F5.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2F6.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2F7.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2F8.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2F9.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2FA.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2FB.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2FC.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2FD.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2FE.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/2FF.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/none.gif +0 -0
- data/closure-library/closure/goog/demos/emoji/sprite.png +0 -0
- data/closure-library/closure/goog/demos/emoji/sprite2.png +0 -0
- data/closure-library/closure/goog/demos/emoji/unknown.gif +0 -0
- data/closure-library/closure/goog/demos/event-propagation.html +192 -0
- data/closure-library/closure/goog/demos/events.html +99 -0
- data/closure-library/closure/goog/demos/eventtarget.html +70 -0
- data/closure-library/closure/goog/demos/filedrophandler.html +63 -0
- data/closure-library/closure/goog/demos/filteredmenu.html +118 -0
- data/closure-library/closure/goog/demos/focushandler.html +58 -0
- data/closure-library/closure/goog/demos/gauge.html +158 -0
- data/closure-library/closure/goog/demos/graphics/advancedcoordinates.html +141 -0
- data/closure-library/closure/goog/demos/graphics/advancedcoordinates2.html +130 -0
- data/closure-library/closure/goog/demos/graphics/basicelements.html +264 -0
- data/closure-library/closure/goog/demos/graphics/events.html +113 -0
- data/closure-library/closure/goog/demos/graphics/modifyelements.html +195 -0
- data/closure-library/closure/goog/demos/graphics/subpixel.html +80 -0
- data/closure-library/closure/goog/demos/graphics/tiger.html +105 -0
- data/closure-library/closure/goog/demos/graphics/tigerdata.js +2840 -0
- data/closure-library/closure/goog/demos/history1.html +132 -0
- data/closure-library/closure/goog/demos/history2.html +100 -0
- data/closure-library/closure/goog/demos/history3.html +106 -0
- data/closure-library/closure/goog/demos/history3js.html +36 -0
- data/closure-library/closure/goog/demos/history_blank.html +25 -0
- data/closure-library/closure/goog/demos/hovercard.html +177 -0
- data/closure-library/closure/goog/demos/hsvapalette.html +55 -0
- data/closure-library/closure/goog/demos/hsvpalette.html +56 -0
- data/closure-library/closure/goog/demos/html5history.html +87 -0
- data/closure-library/closure/goog/demos/imagelessbutton.html +221 -0
- data/closure-library/closure/goog/demos/imagelessmenubutton.html +285 -0
- data/closure-library/closure/goog/demos/imagelessroundedcorner.html +231 -0
- data/closure-library/closure/goog/demos/index.html +19 -0
- data/closure-library/closure/goog/demos/index_nav.html +253 -0
- data/closure-library/closure/goog/demos/index_splash.html +22 -0
- data/closure-library/closure/goog/demos/inline_block_quirks.html +125 -0
- data/closure-library/closure/goog/demos/inline_block_standards.html +126 -0
- data/closure-library/closure/goog/demos/inputdatepicker.html +60 -0
- data/closure-library/closure/goog/demos/inputhandler.html +72 -0
- data/closure-library/closure/goog/demos/jsonprettyprinter.html +80 -0
- data/closure-library/closure/goog/demos/keyboardshortcuts.html +112 -0
- data/closure-library/closure/goog/demos/keyhandler.html +127 -0
- data/closure-library/closure/goog/demos/labelinput.html +42 -0
- data/closure-library/closure/goog/demos/menu.html +220 -0
- data/closure-library/closure/goog/demos/menubutton.html +318 -0
- data/closure-library/closure/goog/demos/mousewheelhandler.html +109 -0
- data/closure-library/closure/goog/demos/offline.html +268 -0
- data/closure-library/closure/goog/demos/onlinehandler.html +77 -0
- data/closure-library/closure/goog/demos/palette.html +302 -0
- data/closure-library/closure/goog/demos/pastehandler.html +54 -0
- data/closure-library/closure/goog/demos/plaintextspellchecker.html +106 -0
- data/closure-library/closure/goog/demos/popup.html +200 -0
- data/closure-library/closure/goog/demos/popupcolorpicker.html +49 -0
- data/closure-library/closure/goog/demos/popupdatepicker.html +53 -0
- data/closure-library/closure/goog/demos/popupemojipicker.html +407 -0
- data/closure-library/closure/goog/demos/popupmenu.html +89 -0
- data/closure-library/closure/goog/demos/progressbar.html +97 -0
- data/closure-library/closure/goog/demos/prompt.html +92 -0
- data/closure-library/closure/goog/demos/quadtree.html +107 -0
- data/closure-library/closure/goog/demos/ratings.html +120 -0
- data/closure-library/closure/goog/demos/richtextspellchecker.html +92 -0
- data/closure-library/closure/goog/demos/roundedpanel.html +139 -0
- data/closure-library/closure/goog/demos/samplecomponent.html +75 -0
- data/closure-library/closure/goog/demos/samplecomponent.js +206 -0
- data/closure-library/closure/goog/demos/scrollfloater.html +117 -0
- data/closure-library/closure/goog/demos/select.html +324 -0
- data/closure-library/closure/goog/demos/selectionmenubutton.html +186 -0
- data/closure-library/closure/goog/demos/serverchart.html +122 -0
- data/closure-library/closure/goog/demos/silverlightclipboardbutton.html +71 -0
- data/closure-library/closure/goog/demos/slider.html +110 -0
- data/closure-library/closure/goog/demos/splitbehavior.html +164 -0
- data/closure-library/closure/goog/demos/splitpane.html +243 -0
- data/closure-library/closure/goog/demos/stopevent.html +171 -0
- data/closure-library/closure/goog/demos/submenus.html +130 -0
- data/closure-library/closure/goog/demos/submenus2.html +150 -0
- data/closure-library/closure/goog/demos/tabbar.html +289 -0
- data/closure-library/closure/goog/demos/tablesorter.html +116 -0
- data/closure-library/closure/goog/demos/tabpane.html +302 -0
- data/closure-library/closure/goog/demos/textarea.html +128 -0
- data/closure-library/closure/goog/demos/timers.html +291 -0
- data/closure-library/closure/goog/demos/toolbar.html +703 -0
- data/closure-library/closure/goog/demos/tooltip.html +91 -0
- data/closure-library/closure/goog/demos/tracer.html +92 -0
- data/closure-library/closure/goog/demos/tree/demo.html +126 -0
- data/closure-library/closure/goog/demos/tree/testdata.js +260 -0
- data/closure-library/closure/goog/demos/tweakui.html +121 -0
- data/closure-library/closure/goog/demos/twothumbslider.html +121 -0
- data/closure-library/closure/goog/demos/useragent.html +173 -0
- data/closure-library/closure/goog/demos/viewportsizemonitor.html +71 -0
- data/closure-library/closure/goog/demos/xpc/blank.html +7 -0
- data/closure-library/closure/goog/demos/xpc/index.html +89 -0
- data/closure-library/closure/goog/demos/xpc/inner.html +58 -0
- data/closure-library/closure/goog/demos/xpc/minimal/blank.html +7 -0
- data/closure-library/closure/goog/demos/xpc/minimal/index.html +105 -0
- data/closure-library/closure/goog/demos/xpc/minimal/inner.html +75 -0
- data/closure-library/closure/goog/demos/xpc/minimal/relay.html +7 -0
- data/closure-library/closure/goog/demos/xpc/relay.html +7 -0
- data/closure-library/closure/goog/demos/xpc/xpcdemo.js +304 -0
- data/closure-library/closure/goog/demos/zippy.html +127 -0
- data/closure-library/closure/goog/deps.js +672 -0
- data/closure-library/closure/goog/disposable/disposable.js +167 -0
- data/closure-library/closure/goog/disposable/disposable_test.html +202 -0
- data/closure-library/closure/goog/dom/a11y.js +438 -0
- data/closure-library/closure/goog/dom/a11y_test.html +86 -0
- data/closure-library/closure/goog/dom/abstractmultirange.js +77 -0
- data/closure-library/closure/goog/dom/abstractrange.js +514 -0
- data/closure-library/closure/goog/dom/abstractrange_test.html +73 -0
- data/closure-library/closure/goog/dom/annotate.js +352 -0
- data/closure-library/closure/goog/dom/annotate_test.html +187 -0
- data/closure-library/closure/goog/dom/browserfeature.js +50 -0
- data/closure-library/closure/goog/dom/browserrange/abstractrange.js +316 -0
- data/closure-library/closure/goog/dom/browserrange/browserrange.js +149 -0
- data/closure-library/closure/goog/dom/browserrange/browserrange_test.html +562 -0
- data/closure-library/closure/goog/dom/browserrange/geckorange.js +82 -0
- data/closure-library/closure/goog/dom/browserrange/ierange.js +970 -0
- data/closure-library/closure/goog/dom/browserrange/operarange.js +83 -0
- data/closure-library/closure/goog/dom/browserrange/w3crange.js +364 -0
- data/closure-library/closure/goog/dom/browserrange/webkitrange.js +112 -0
- data/closure-library/closure/goog/dom/classes.js +233 -0
- data/closure-library/closure/goog/dom/classes_test.html +228 -0
- data/closure-library/closure/goog/dom/controlrange.js +511 -0
- data/closure-library/closure/goog/dom/controlrange_test.html +246 -0
- data/closure-library/closure/goog/dom/dataset.js +90 -0
- data/closure-library/closure/goog/dom/dataset_test.html +104 -0
- data/closure-library/closure/goog/dom/dom.js +2424 -0
- data/closure-library/closure/goog/dom/dom_quirks_test.html +104 -0
- data/closure-library/closure/goog/dom/dom_test.html +103 -0
- data/closure-library/closure/goog/dom/dom_test.js +1129 -0
- data/closure-library/closure/goog/dom/fontsizemonitor.js +159 -0
- data/closure-library/closure/goog/dom/fontsizemonitor_test.html +283 -0
- data/closure-library/closure/goog/dom/forms.js +403 -0
- data/closure-library/closure/goog/dom/forms_test.html +483 -0
- data/closure-library/closure/goog/dom/iframe.js +128 -0
- data/closure-library/closure/goog/dom/iframe_test.html +87 -0
- data/closure-library/closure/goog/dom/iter.js +127 -0
- data/closure-library/closure/goog/dom/iter_test.html +97 -0
- data/closure-library/closure/goog/dom/multirange.js +519 -0
- data/closure-library/closure/goog/dom/multirange_test.html +67 -0
- data/closure-library/closure/goog/dom/nodeiterator.js +85 -0
- data/closure-library/closure/goog/dom/nodeiterator_test.html +49 -0
- data/closure-library/closure/goog/dom/nodeoffset.js +111 -0
- data/closure-library/closure/goog/dom/nodeoffset_test.html +88 -0
- data/closure-library/closure/goog/dom/pattern/abstractpattern.js +60 -0
- data/closure-library/closure/goog/dom/pattern/allchildren.js +73 -0
- data/closure-library/closure/goog/dom/pattern/callback/callback.js +82 -0
- data/closure-library/closure/goog/dom/pattern/callback/counter.js +72 -0
- data/closure-library/closure/goog/dom/pattern/callback/test.js +77 -0
- data/closure-library/closure/goog/dom/pattern/childmatches.js +152 -0
- data/closure-library/closure/goog/dom/pattern/endtag.js +53 -0
- data/closure-library/closure/goog/dom/pattern/fulltag.js +92 -0
- data/closure-library/closure/goog/dom/pattern/matcher.js +150 -0
- data/closure-library/closure/goog/dom/pattern/matcher_test.html +204 -0
- data/closure-library/closure/goog/dom/pattern/nodetype.js +57 -0
- data/closure-library/closure/goog/dom/pattern/pattern.js +93 -0
- data/closure-library/closure/goog/dom/pattern/pattern_test.html +614 -0
- data/closure-library/closure/goog/dom/pattern/repeat.js +188 -0
- data/closure-library/closure/goog/dom/pattern/sequence.js +139 -0
- data/closure-library/closure/goog/dom/pattern/starttag.js +53 -0
- data/closure-library/closure/goog/dom/pattern/tag.js +149 -0
- data/closure-library/closure/goog/dom/pattern/text.js +69 -0
- data/closure-library/closure/goog/dom/range.js +220 -0
- data/closure-library/closure/goog/dom/range_test.html +702 -0
- data/closure-library/closure/goog/dom/rangeendpoint.js +32 -0
- data/closure-library/closure/goog/dom/savedcaretrange.js +203 -0
- data/closure-library/closure/goog/dom/savedcaretrange_test.html +235 -0
- data/closure-library/closure/goog/dom/savedrange.js +74 -0
- data/closure-library/closure/goog/dom/savedrange_test.html +61 -0
- data/closure-library/closure/goog/dom/selection.js +470 -0
- data/closure-library/closure/goog/dom/selection_test.html +329 -0
- data/closure-library/closure/goog/dom/tagiterator.js +365 -0
- data/closure-library/closure/goog/dom/tagiterator_test.html +589 -0
- data/closure-library/closure/goog/dom/tagname.js +121 -0
- data/closure-library/closure/goog/dom/tagname_test.html +37 -0
- data/closure-library/closure/goog/dom/textrange.js +611 -0
- data/closure-library/closure/goog/dom/textrange_test.html +127 -0
- data/closure-library/closure/goog/dom/textrangeiterator.js +246 -0
- data/closure-library/closure/goog/dom/textrangeiterator_test.html +142 -0
- data/closure-library/closure/goog/dom/viewportsizemonitor.js +220 -0
- data/closure-library/closure/goog/dom/viewportsizemonitor_test.html +166 -0
- data/closure-library/closure/goog/dom/xml.js +187 -0
- data/closure-library/closure/goog/dom/xml_test.html +77 -0
- data/closure-library/closure/goog/editor/browserfeature.js +251 -0
- data/closure-library/closure/goog/editor/browserfeature_test.html +124 -0
- data/closure-library/closure/goog/editor/clicktoeditwrapper.js +438 -0
- data/closure-library/closure/goog/editor/clicktoeditwrapper_test.html +137 -0
- data/closure-library/closure/goog/editor/command.js +74 -0
- data/closure-library/closure/goog/editor/defines.js +34 -0
- data/closure-library/closure/goog/editor/field.js +2594 -0
- data/closure-library/closure/goog/editor/field_test.html +1000 -0
- data/closure-library/closure/goog/editor/focus.js +32 -0
- data/closure-library/closure/goog/editor/focus_test.html +66 -0
- data/closure-library/closure/goog/editor/icontent.js +296 -0
- data/closure-library/closure/goog/editor/icontent_test.html +209 -0
- data/closure-library/closure/goog/editor/link.js +279 -0
- data/closure-library/closure/goog/editor/link_test.html +234 -0
- data/closure-library/closure/goog/editor/node.js +435 -0
- data/closure-library/closure/goog/editor/node_test.html +590 -0
- data/closure-library/closure/goog/editor/plugin.js +444 -0
- data/closure-library/closure/goog/editor/plugin_test.html +187 -0
- data/closure-library/closure/goog/editor/plugins/abstractbubbleplugin.js +535 -0
- data/closure-library/closure/goog/editor/plugins/abstractbubbleplugin_test.html +227 -0
- data/closure-library/closure/goog/editor/plugins/abstractdialogplugin.js +336 -0
- data/closure-library/closure/goog/editor/plugins/abstractdialogplugin_test.html +399 -0
- data/closure-library/closure/goog/editor/plugins/abstracttabhandler.js +78 -0
- data/closure-library/closure/goog/editor/plugins/abstracttabhandler_test.html +91 -0
- data/closure-library/closure/goog/editor/plugins/basictextformatter.js +1740 -0
- data/closure-library/closure/goog/editor/plugins/basictextformatter_test.html +1171 -0
- data/closure-library/closure/goog/editor/plugins/blockquote.js +422 -0
- data/closure-library/closure/goog/editor/plugins/blockquote_test.html +149 -0
- data/closure-library/closure/goog/editor/plugins/emoticons.js +83 -0
- data/closure-library/closure/goog/editor/plugins/emoticons_test.html +67 -0
- data/closure-library/closure/goog/editor/plugins/enterhandler.js +730 -0
- data/closure-library/closure/goog/editor/plugins/enterhandler_test.html +739 -0
- data/closure-library/closure/goog/editor/plugins/headerformatter.js +95 -0
- data/closure-library/closure/goog/editor/plugins/headerformatter_test.html +100 -0
- data/closure-library/closure/goog/editor/plugins/linkbubble.js +458 -0
- data/closure-library/closure/goog/editor/plugins/linkbubble_test.html +309 -0
- data/closure-library/closure/goog/editor/plugins/linkdialogplugin.js +222 -0
- data/closure-library/closure/goog/editor/plugins/linkdialogplugin_test.html +370 -0
- data/closure-library/closure/goog/editor/plugins/listtabhandler.js +66 -0
- data/closure-library/closure/goog/editor/plugins/listtabhandler_test.html +177 -0
- data/closure-library/closure/goog/editor/plugins/loremipsum.js +186 -0
- data/closure-library/closure/goog/editor/plugins/loremipsum_test.html +169 -0
- data/closure-library/closure/goog/editor/plugins/removeformatting.js +772 -0
- data/closure-library/closure/goog/editor/plugins/removeformatting_test.html +920 -0
- data/closure-library/closure/goog/editor/plugins/spacestabhandler.js +93 -0
- data/closure-library/closure/goog/editor/plugins/spacestabhandler_test.html +186 -0
- data/closure-library/closure/goog/editor/plugins/tableeditor.js +496 -0
- data/closure-library/closure/goog/editor/plugins/tableeditor_test.html +299 -0
- data/closure-library/closure/goog/editor/plugins/tagonenterhandler.js +741 -0
- data/closure-library/closure/goog/editor/plugins/tagonenterhandler_test.html +481 -0
- data/closure-library/closure/goog/editor/plugins/undoredo.js +1014 -0
- data/closure-library/closure/goog/editor/plugins/undoredo_test.html +525 -0
- data/closure-library/closure/goog/editor/plugins/undoredomanager.js +337 -0
- data/closure-library/closure/goog/editor/plugins/undoredomanager_test.html +394 -0
- data/closure-library/closure/goog/editor/plugins/undoredostate.js +84 -0
- data/closure-library/closure/goog/editor/plugins/undoredostate_test.html +44 -0
- data/closure-library/closure/goog/editor/range.js +602 -0
- data/closure-library/closure/goog/editor/range_test.html +880 -0
- data/closure-library/closure/goog/editor/seamlessfield.js +720 -0
- data/closure-library/closure/goog/editor/seamlessfield_quirks_test.html +30 -0
- data/closure-library/closure/goog/editor/seamlessfield_test.html +33 -0
- data/closure-library/closure/goog/editor/seamlessfield_test.js +392 -0
- data/closure-library/closure/goog/editor/style.js +222 -0
- data/closure-library/closure/goog/editor/style_test.html +177 -0
- data/closure-library/closure/goog/editor/table.js +566 -0
- data/closure-library/closure/goog/editor/table_test.html +522 -0
- data/closure-library/closure/goog/events/actioneventwrapper.js +131 -0
- data/closure-library/closure/goog/events/actioneventwrapper_test.html +176 -0
- data/closure-library/closure/goog/events/actionhandler.js +189 -0
- data/closure-library/closure/goog/events/actionhandler_test.html +82 -0
- data/closure-library/closure/goog/events/browserevent.js +412 -0
- data/closure-library/closure/goog/events/browserevent_test.html +145 -0
- data/closure-library/closure/goog/events/browserfeature.js +43 -0
- data/closure-library/closure/goog/events/event.js +123 -0
- data/closure-library/closure/goog/events/event_test.html +70 -0
- data/closure-library/closure/goog/events/eventhandler.js +348 -0
- data/closure-library/closure/goog/events/eventhandler_test.html +230 -0
- data/closure-library/closure/goog/events/events.js +1101 -0
- data/closure-library/closure/goog/events/events_test.html +362 -0
- data/closure-library/closure/goog/events/eventtarget.js +197 -0
- data/closure-library/closure/goog/events/eventtarget_test.html +423 -0
- data/closure-library/closure/goog/events/eventtype.js +107 -0
- data/closure-library/closure/goog/events/eventwrapper.js +67 -0
- data/closure-library/closure/goog/events/filedrophandler.js +224 -0
- data/closure-library/closure/goog/events/filedrophandler_test.html +258 -0
- data/closure-library/closure/goog/events/focushandler.js +111 -0
- data/closure-library/closure/goog/events/imehandler.js +365 -0
- data/closure-library/closure/goog/events/imehandler_test.html +271 -0
- data/closure-library/closure/goog/events/inputhandler.js +218 -0
- data/closure-library/closure/goog/events/keycodes.js +314 -0
- data/closure-library/closure/goog/events/keycodes_test.html +72 -0
- data/closure-library/closure/goog/events/keyhandler.js +522 -0
- data/closure-library/closure/goog/events/keyhandler_test.html +621 -0
- data/closure-library/closure/goog/events/keynames.js +124 -0
- data/closure-library/closure/goog/events/listener.js +160 -0
- data/closure-library/closure/goog/events/mousewheelhandler.js +280 -0
- data/closure-library/closure/goog/events/mousewheelhandler_test.html +331 -0
- data/closure-library/closure/goog/events/onlinehandler.js +176 -0
- data/closure-library/closure/goog/events/onlinelistener_test.html +214 -0
- data/closure-library/closure/goog/events/pastehandler.js +444 -0
- data/closure-library/closure/goog/events/pastehandler_test.html +354 -0
- data/closure-library/closure/goog/events/pools.js +342 -0
- data/closure-library/closure/goog/format/emailaddress.js +329 -0
- data/closure-library/closure/goog/format/emailaddress_test.html +179 -0
- data/closure-library/closure/goog/format/format.js +451 -0
- data/closure-library/closure/goog/format/format_test.html +257 -0
- data/closure-library/closure/goog/format/htmlprettyprinter.js +406 -0
- data/closure-library/closure/goog/format/htmlprettyprinter_test.html +205 -0
- data/closure-library/closure/goog/format/jsonprettyprinter.js +405 -0
- data/closure-library/closure/goog/format/jsonprettyprinter_test.html +111 -0
- data/closure-library/closure/goog/fs/entry.js +406 -0
- data/closure-library/closure/goog/fs/error.js +103 -0
- data/closure-library/closure/goog/fs/filesaver.js +214 -0
- data/closure-library/closure/goog/fs/filesystem.js +59 -0
- data/closure-library/closure/goog/fs/filewriter.js +106 -0
- data/closure-library/closure/goog/fs/fs.js +183 -0
- data/closure-library/closure/goog/fs/fs_test.html +270 -0
- data/closure-library/closure/goog/functions/functions.js +219 -0
- data/closure-library/closure/goog/functions/functions_test.html +198 -0
- data/closure-library/closure/goog/fx/abstractdragdrop.js +1451 -0
- data/closure-library/closure/goog/fx/abstractdragdrop_test.html +430 -0
- data/closure-library/closure/goog/fx/animation.js +621 -0
- data/closure-library/closure/goog/fx/animationqueue.js +348 -0
- data/closure-library/closure/goog/fx/cssspriteanimation.js +112 -0
- data/closure-library/closure/goog/fx/cssspriteanimation_test.html +125 -0
- data/closure-library/closure/goog/fx/dom.js +610 -0
- data/closure-library/closure/goog/fx/dragdrop.js +49 -0
- data/closure-library/closure/goog/fx/dragdropgroup.js +107 -0
- data/closure-library/closure/goog/fx/dragdropgroup_test.html +234 -0
- data/closure-library/closure/goog/fx/dragger.js +731 -0
- data/closure-library/closure/goog/fx/dragger_test.html +415 -0
- data/closure-library/closure/goog/fx/draglistgroup.js +1159 -0
- data/closure-library/closure/goog/fx/draglistgroup_test.html +231 -0
- data/closure-library/closure/goog/fx/dragscrollsupport.js +274 -0
- data/closure-library/closure/goog/fx/dragscrollsupport_test.html +253 -0
- data/closure-library/closure/goog/fx/easing.js +50 -0
- data/closure-library/closure/goog/fx/fx.js +30 -0
- data/closure-library/closure/goog/fx/fx_test.html +157 -0
- data/closure-library/closure/goog/gears/basestore.js +523 -0
- data/closure-library/closure/goog/gears/basestore_test.html +247 -0
- data/closure-library/closure/goog/gears/database.js +935 -0
- data/closure-library/closure/goog/gears/database_test.html +699 -0
- data/closure-library/closure/goog/gears/fakeworkerpool.js +252 -0
- data/closure-library/closure/goog/gears/fakeworkerpool_test.html +188 -0
- data/closure-library/closure/goog/gears/gears.js +228 -0
- data/closure-library/closure/goog/gears/gears_test.html +78 -0
- data/closure-library/closure/goog/gears/httprequest.js +77 -0
- data/closure-library/closure/goog/gears/loggerclient.js +131 -0
- data/closure-library/closure/goog/gears/loggerclient_test.html +171 -0
- data/closure-library/closure/goog/gears/loggerserver.js +158 -0
- data/closure-library/closure/goog/gears/loggerserver_test.html +118 -0
- data/closure-library/closure/goog/gears/logstore.js +479 -0
- data/closure-library/closure/goog/gears/logstore_test.html +600 -0
- data/closure-library/closure/goog/gears/managedresourcestore.js +553 -0
- data/closure-library/closure/goog/gears/managedresourcestore_test.html +453 -0
- data/closure-library/closure/goog/gears/multipartformdata.js +203 -0
- data/closure-library/closure/goog/gears/multipartformdata_test.html +220 -0
- data/closure-library/closure/goog/gears/statustype.js +37 -0
- data/closure-library/closure/goog/gears/urlcapture.js +370 -0
- data/closure-library/closure/goog/gears/urlcapture_test.html +392 -0
- data/closure-library/closure/goog/gears/worker.js +201 -0
- data/closure-library/closure/goog/gears/workerchannel.js +205 -0
- data/closure-library/closure/goog/gears/workerchannel_test.html +207 -0
- data/closure-library/closure/goog/gears/workerpool.js +241 -0
- data/closure-library/closure/goog/gears/workerpool_test.html +203 -0
- data/closure-library/closure/goog/graphics/abstractgraphics.js +439 -0
- data/closure-library/closure/goog/graphics/affinetransform.js +497 -0
- data/closure-library/closure/goog/graphics/affinetransform_test.html +316 -0
- data/closure-library/closure/goog/graphics/canvaselement.js +776 -0
- data/closure-library/closure/goog/graphics/canvasgraphics.js +632 -0
- data/closure-library/closure/goog/graphics/element.js +145 -0
- data/closure-library/closure/goog/graphics/ellipseelement.js +59 -0
- data/closure-library/closure/goog/graphics/ext/coordinates.js +158 -0
- data/closure-library/closure/goog/graphics/ext/coordinates_test.html +74 -0
- data/closure-library/closure/goog/graphics/ext/element.js +970 -0
- data/closure-library/closure/goog/graphics/ext/element_test.html +144 -0
- data/closure-library/closure/goog/graphics/ext/ellipse.js +58 -0
- data/closure-library/closure/goog/graphics/ext/ext.js +29 -0
- data/closure-library/closure/goog/graphics/ext/graphics.js +209 -0
- data/closure-library/closure/goog/graphics/ext/group.js +213 -0
- data/closure-library/closure/goog/graphics/ext/image.js +62 -0
- data/closure-library/closure/goog/graphics/ext/path.js +140 -0
- data/closure-library/closure/goog/graphics/ext/path_test.html +46 -0
- data/closure-library/closure/goog/graphics/ext/rectangle.js +53 -0
- data/closure-library/closure/goog/graphics/ext/shape.js +144 -0
- data/closure-library/closure/goog/graphics/ext/strokeandfillelement.js +69 -0
- data/closure-library/closure/goog/graphics/fill.js +29 -0
- data/closure-library/closure/goog/graphics/font.js +59 -0
- data/closure-library/closure/goog/graphics/graphics.js +124 -0
- data/closure-library/closure/goog/graphics/groupelement.js +54 -0
- data/closure-library/closure/goog/graphics/imageelement.js +67 -0
- data/closure-library/closure/goog/graphics/lineargradient.js +131 -0
- data/closure-library/closure/goog/graphics/path.js +508 -0
- data/closure-library/closure/goog/graphics/path_test.html +359 -0
- data/closure-library/closure/goog/graphics/pathelement.js +50 -0
- data/closure-library/closure/goog/graphics/paths.js +86 -0
- data/closure-library/closure/goog/graphics/paths_test.html +97 -0
- data/closure-library/closure/goog/graphics/rectelement.js +59 -0
- data/closure-library/closure/goog/graphics/solidfill.js +70 -0
- data/closure-library/closure/goog/graphics/stroke.js +63 -0
- data/closure-library/closure/goog/graphics/strokeandfillelement.js +110 -0
- data/closure-library/closure/goog/graphics/svgelement.js +262 -0
- data/closure-library/closure/goog/graphics/svggraphics.js +813 -0
- data/closure-library/closure/goog/graphics/textelement.js +51 -0
- data/closure-library/closure/goog/graphics/vmlelement.js +380 -0
- data/closure-library/closure/goog/graphics/vmlgraphics.js +863 -0
- data/closure-library/closure/goog/history/event.js +54 -0
- data/closure-library/closure/goog/history/eventtype.js +30 -0
- data/closure-library/closure/goog/history/history.js +979 -0
- data/closure-library/closure/goog/history/html5history.js +303 -0
- data/closure-library/closure/goog/history/html5history_test.html +163 -0
- data/closure-library/closure/goog/i18n/bidi.js +772 -0
- data/closure-library/closure/goog/i18n/bidi_test.html +414 -0
- data/closure-library/closure/goog/i18n/bidiformatter.js +488 -0
- data/closure-library/closure/goog/i18n/bidiformatter_test.html +343 -0
- data/closure-library/closure/goog/i18n/charlistdecompressor.js +157 -0
- data/closure-library/closure/goog/i18n/charlistdecompressor_test.html +65 -0
- data/closure-library/closure/goog/i18n/charpickerdata.js +3185 -0
- data/closure-library/closure/goog/i18n/currency.js +385 -0
- data/closure-library/closure/goog/i18n/currency_test.html +202 -0
- data/closure-library/closure/goog/i18n/currencycodemap.js +210 -0
- data/closure-library/closure/goog/i18n/datetimeformat.js +636 -0
- data/closure-library/closure/goog/i18n/datetimeformat_test.html +436 -0
- data/closure-library/closure/goog/i18n/datetimeparse.js +1111 -0
- data/closure-library/closure/goog/i18n/datetimeparse_test.html +796 -0
- data/closure-library/closure/goog/i18n/datetimepatterns.js +1586 -0
- data/closure-library/closure/goog/i18n/datetimepatternsext.js +7386 -0
- data/closure-library/closure/goog/i18n/datetimesymbols.js +3350 -0
- data/closure-library/closure/goog/i18n/datetimesymbolsext.js +12938 -0
- data/closure-library/closure/goog/i18n/graphemebreak.js +181 -0
- data/closure-library/closure/goog/i18n/graphemebreak_test.html +72 -0
- data/closure-library/closure/goog/i18n/messageformat.js +553 -0
- data/closure-library/closure/goog/i18n/messageformat_test.html +323 -0
- data/closure-library/closure/goog/i18n/mime.js +100 -0
- data/closure-library/closure/goog/i18n/mime_test.html +51 -0
- data/closure-library/closure/goog/i18n/numberformat.js +763 -0
- data/closure-library/closure/goog/i18n/numberformat_test.html +605 -0
- data/closure-library/closure/goog/i18n/numberformatsymbols.js +10358 -0
- data/closure-library/closure/goog/i18n/pluralrules.js +695 -0
- data/closure-library/closure/goog/i18n/timezone.js +341 -0
- data/closure-library/closure/goog/i18n/timezone_test.html +163 -0
- data/closure-library/closure/goog/i18n/uchar.js +1160 -0
- data/closure-library/closure/goog/i18n/uchar_test.html +72 -0
- data/closure-library/closure/goog/images/blank.gif +0 -0
- data/closure-library/closure/goog/images/bubble_close.jpg +0 -0
- data/closure-library/closure/goog/images/bubble_left.gif +0 -0
- data/closure-library/closure/goog/images/bubble_right.gif +0 -0
- data/closure-library/closure/goog/images/button-bg.gif +0 -0
- data/closure-library/closure/goog/images/check-outline.gif +0 -0
- data/closure-library/closure/goog/images/check-sprite.gif +0 -0
- data/closure-library/closure/goog/images/check.gif +0 -0
- data/closure-library/closure/goog/images/close_box.gif +0 -0
- data/closure-library/closure/goog/images/color-swatch-tick.gif +0 -0
- data/closure-library/closure/goog/images/dialog_close_box.gif +0 -0
- data/closure-library/closure/goog/images/dimension-highlighted.png +0 -0
- data/closure-library/closure/goog/images/dimension-unhighlighted.png +0 -0
- data/closure-library/closure/goog/images/dropdn.gif +0 -0
- data/closure-library/closure/goog/images/dropdn_disabled.gif +0 -0
- data/closure-library/closure/goog/images/dropdown.gif +0 -0
- data/closure-library/closure/goog/images/gears_bluedot.gif +0 -0
- data/closure-library/closure/goog/images/gears_offline.gif +0 -0
- data/closure-library/closure/goog/images/gears_online.gif +0 -0
- data/closure-library/closure/goog/images/gears_paused.gif +0 -0
- data/closure-library/closure/goog/images/gears_syncing.gif +0 -0
- data/closure-library/closure/goog/images/hsv-sprite-sm.gif +0 -0
- data/closure-library/closure/goog/images/hsv-sprite-sm.png +0 -0
- data/closure-library/closure/goog/images/hsv-sprite.gif +0 -0
- data/closure-library/closure/goog/images/hsv-sprite.png +0 -0
- data/closure-library/closure/goog/images/hsva-sprite-sm.gif +0 -0
- data/closure-library/closure/goog/images/hsva-sprite-sm.png +0 -0
- data/closure-library/closure/goog/images/hsva-sprite.gif +0 -0
- data/closure-library/closure/goog/images/hsva-sprite.png +0 -0
- data/closure-library/closure/goog/images/left_anchor_bubble_bot.gif +0 -0
- data/closure-library/closure/goog/images/left_anchor_bubble_top.gif +0 -0
- data/closure-library/closure/goog/images/menu-arrows.gif +0 -0
- data/closure-library/closure/goog/images/minus.png +0 -0
- data/closure-library/closure/goog/images/no_anchor_bubble_bot.gif +0 -0
- data/closure-library/closure/goog/images/no_anchor_bubble_top.gif +0 -0
- data/closure-library/closure/goog/images/offlineicons.png +0 -0
- data/closure-library/closure/goog/images/plus.png +0 -0
- data/closure-library/closure/goog/images/ratingstars.gif +0 -0
- data/closure-library/closure/goog/images/right_anchor_bubble_bot.gif +0 -0
- data/closure-library/closure/goog/images/right_anchor_bubble_top.gif +0 -0
- data/closure-library/closure/goog/images/toolbar-bg.png +0 -0
- data/closure-library/closure/goog/images/toolbar-separator.gif +0 -0
- data/closure-library/closure/goog/images/toolbar_icons.gif +0 -0
- data/closure-library/closure/goog/images/tree/I.png +0 -0
- data/closure-library/closure/goog/images/tree/cleardot.gif +0 -0
- data/closure-library/closure/goog/images/tree/tree.gif +0 -0
- data/closure-library/closure/goog/images/tree/tree.png +0 -0
- data/closure-library/closure/goog/images/ui_controls.jpg +0 -0
- data/closure-library/closure/goog/iter/iter.js +627 -0
- data/closure-library/closure/goog/iter/iter_test.html +443 -0
- data/closure-library/closure/goog/json/json.js +302 -0
- data/closure-library/closure/goog/json/json_test.html +501 -0
- data/closure-library/closure/goog/locale/countries.js +288 -0
- data/closure-library/closure/goog/locale/countrylanguagenames_test.html +233 -0
- data/closure-library/closure/goog/locale/defaultlocalenameconstants.js +847 -0
- data/closure-library/closure/goog/locale/genericfontnames.js +73 -0
- data/closure-library/closure/goog/locale/genericfontnames_test.html +97 -0
- data/closure-library/closure/goog/locale/genericfontnamesdata.js +328 -0
- data/closure-library/closure/goog/locale/locale.js +397 -0
- data/closure-library/closure/goog/locale/nativenameconstants.js +1354 -0
- data/closure-library/closure/goog/locale/scriptToLanguages.js +482 -0
- data/closure-library/closure/goog/locale/timezonedetection.js +117 -0
- data/closure-library/closure/goog/locale/timezonedetection_test.html +130 -0
- data/closure-library/closure/goog/locale/timezonefingerprint.js +250 -0
- data/closure-library/closure/goog/locale/timezonelist.js +129 -0
- data/closure-library/closure/goog/locale/timezonelist_test.html +165 -0
- data/closure-library/closure/goog/math/bezier.js +244 -0
- data/closure-library/closure/goog/math/bezier_test.html +70 -0
- data/closure-library/closure/goog/math/box.js +236 -0
- data/closure-library/closure/goog/math/box_test.html +139 -0
- data/closure-library/closure/goog/math/coordinate.js +136 -0
- data/closure-library/closure/goog/math/coordinate3.js +168 -0
- data/closure-library/closure/goog/math/coordinate3_test.html +208 -0
- data/closure-library/closure/goog/math/coordinate_test.html +92 -0
- data/closure-library/closure/goog/math/integer.js +736 -0
- data/closure-library/closure/goog/math/integer_test.html +1653 -0
- data/closure-library/closure/goog/math/line.js +177 -0
- data/closure-library/closure/goog/math/line_test.html +62 -0
- data/closure-library/closure/goog/math/long.js +801 -0
- data/closure-library/closure/goog/math/long_test.html +1571 -0
- data/closure-library/closure/goog/math/math.js +355 -0
- data/closure-library/closure/goog/math/math_test.html +254 -0
- data/closure-library/closure/goog/math/matrix.js +669 -0
- data/closure-library/closure/goog/math/matrix_test.html +427 -0
- data/closure-library/closure/goog/math/range.js +146 -0
- data/closure-library/closure/goog/math/range_test.html +103 -0
- data/closure-library/closure/goog/math/rangeset.js +368 -0
- data/closure-library/closure/goog/math/rangeset_test.html +619 -0
- data/closure-library/closure/goog/math/rect.js +340 -0
- data/closure-library/closure/goog/math/rect_test.html +315 -0
- data/closure-library/closure/goog/math/size.js +201 -0
- data/closure-library/closure/goog/math/size_test.html +174 -0
- data/closure-library/closure/goog/math/vec2.js +255 -0
- data/closure-library/closure/goog/math/vec2_test.html +203 -0
- data/closure-library/closure/goog/math/vec3.js +327 -0
- data/closure-library/closure/goog/math/vec3_test.html +231 -0
- data/closure-library/closure/goog/memoize/memoize.js +98 -0
- data/closure-library/closure/goog/memoize/memoize_test.html +157 -0
- data/closure-library/closure/goog/messaging/abstractchannel.js +209 -0
- data/closure-library/closure/goog/messaging/abstractchannel_test.html +90 -0
- data/closure-library/closure/goog/messaging/bufferedchannel.js +277 -0
- data/closure-library/closure/goog/messaging/bufferedchannel_test.html +205 -0
- data/closure-library/closure/goog/messaging/deferredchannel.js +79 -0
- data/closure-library/closure/goog/messaging/deferredchannel_test.html +107 -0
- data/closure-library/closure/goog/messaging/loggerclient.js +131 -0
- data/closure-library/closure/goog/messaging/loggerclient_test.html +102 -0
- data/closure-library/closure/goog/messaging/loggerserver.js +94 -0
- data/closure-library/closure/goog/messaging/loggerserver_test.html +101 -0
- data/closure-library/closure/goog/messaging/messagechannel.js +115 -0
- data/closure-library/closure/goog/messaging/messaging.js +34 -0
- data/closure-library/closure/goog/messaging/messaging_test.html +42 -0
- data/closure-library/closure/goog/messaging/multichannel.js +303 -0
- data/closure-library/closure/goog/messaging/multichannel_test.html +122 -0
- data/closure-library/closure/goog/messaging/portchannel.js +341 -0
- data/closure-library/closure/goog/messaging/portchannel_test.html +359 -0
- data/closure-library/closure/goog/messaging/testdata/portchannel_worker.js +37 -0
- data/closure-library/closure/goog/module/abstractmoduleloader.js +46 -0
- data/closure-library/closure/goog/module/basemodule.js +45 -0
- data/closure-library/closure/goog/module/basemoduleloader.js +210 -0
- data/closure-library/closure/goog/module/loader.js +269 -0
- data/closure-library/closure/goog/module/module.js +166 -0
- data/closure-library/closure/goog/module/moduleinfo.js +336 -0
- data/closure-library/closure/goog/module/moduleinfo_test.html +109 -0
- data/closure-library/closure/goog/module/moduleloadcallback.js +84 -0
- data/closure-library/closure/goog/module/moduleloadcallback_test.html +57 -0
- data/closure-library/closure/goog/module/moduleloader.js +250 -0
- data/closure-library/closure/goog/module/moduleloader_test.html +244 -0
- data/closure-library/closure/goog/module/modulemanager.js +1008 -0
- data/closure-library/closure/goog/module/modulemanager_test.html +1240 -0
- data/closure-library/closure/goog/module/testdata/modA_1.js +22 -0
- data/closure-library/closure/goog/module/testdata/modA_2.js +24 -0
- data/closure-library/closure/goog/module/testdata/modB_1.js +24 -0
- data/closure-library/closure/goog/net/browserchannel.js +2441 -0
- data/closure-library/closure/goog/net/browserchannel_test.html +1176 -0
- data/closure-library/closure/goog/net/browsertestchannel.js +552 -0
- data/closure-library/closure/goog/net/bulkloader.js +174 -0
- data/closure-library/closure/goog/net/bulkloader_test.html +232 -0
- data/closure-library/closure/goog/net/bulkloaderhelper.js +129 -0
- data/closure-library/closure/goog/net/channeldebug.js +288 -0
- data/closure-library/closure/goog/net/channelrequest.js +1125 -0
- data/closure-library/closure/goog/net/channelrequest_test.html +158 -0
- data/closure-library/closure/goog/net/cookies.js +401 -0
- data/closure-library/closure/goog/net/cookies_test.html +255 -0
- data/closure-library/closure/goog/net/crossdomainrpc.js +848 -0
- data/closure-library/closure/goog/net/crossdomainrpc_test.gif +0 -0
- data/closure-library/closure/goog/net/crossdomainrpc_test.html +120 -0
- data/closure-library/closure/goog/net/crossdomainrpc_test_response.html +59 -0
- data/closure-library/closure/goog/net/errorcode.js +130 -0
- data/closure-library/closure/goog/net/eventtype.js +37 -0
- data/closure-library/closure/goog/net/iframe_xhr_test.html +142 -0
- data/closure-library/closure/goog/net/iframe_xhr_test_response.html +17 -0
- data/closure-library/closure/goog/net/iframeio.js +1342 -0
- data/closure-library/closure/goog/net/iframeio_different_base_test.data +2 -0
- data/closure-library/closure/goog/net/iframeio_different_base_test.html +42 -0
- data/closure-library/closure/goog/net/iframeio_test.html +368 -0
- data/closure-library/closure/goog/net/iframeloadmonitor.js +199 -0
- data/closure-library/closure/goog/net/iframeloadmonitor_test.html +113 -0
- data/closure-library/closure/goog/net/iframeloadmonitor_test_frame.html +12 -0
- data/closure-library/closure/goog/net/iframeloadmonitor_test_frame2.html +12 -0
- data/closure-library/closure/goog/net/iframeloadmonitor_test_frame3.html +12 -0
- data/closure-library/closure/goog/net/imageloader.js +237 -0
- data/closure-library/closure/goog/net/imageloader_test.html +200 -0
- data/closure-library/closure/goog/net/imageloader_testimg1.gif +0 -0
- data/closure-library/closure/goog/net/imageloader_testimg2.gif +0 -0
- data/closure-library/closure/goog/net/imageloader_testimg3.gif +0 -0
- data/closure-library/closure/goog/net/jsonp.js +379 -0
- data/closure-library/closure/goog/net/jsonp_test.html +328 -0
- data/closure-library/closure/goog/net/mockiframeio.js +318 -0
- data/closure-library/closure/goog/net/mockxhrlite.js +34 -0
- data/closure-library/closure/goog/net/mockxhrlite_test.html +109 -0
- data/closure-library/closure/goog/net/multiiframeloadmonitor.js +116 -0
- data/closure-library/closure/goog/net/multiiframeloadmonitor_test.html +172 -0
- data/closure-library/closure/goog/net/networktester.js +383 -0
- data/closure-library/closure/goog/net/networktester_test.html +227 -0
- data/closure-library/closure/goog/net/tmpnetwork.js +168 -0
- data/closure-library/closure/goog/net/wrapperxmlhttpfactory.js +68 -0
- data/closure-library/closure/goog/net/xhrio.js +1093 -0
- data/closure-library/closure/goog/net/xhrio_test.html +603 -0
- data/closure-library/closure/goog/net/xhriopool.js +87 -0
- data/closure-library/closure/goog/net/xhrlite.js +119 -0
- data/closure-library/closure/goog/net/xhrlite_test.html +156 -0
- data/closure-library/closure/goog/net/xhrlitepool.js +37 -0
- data/closure-library/closure/goog/net/xhrmanager.js +763 -0
- data/closure-library/closure/goog/net/xhrmonitor.js +254 -0
- data/closure-library/closure/goog/net/xhrmonitor_test.html +199 -0
- data/closure-library/closure/goog/net/xmlhttp.js +215 -0
- data/closure-library/closure/goog/net/xmlhttpfactory.js +64 -0
- data/closure-library/closure/goog/net/xpc/crosspagechannel.js +624 -0
- data/closure-library/closure/goog/net/xpc/crosspagechannel_test.html +422 -0
- data/closure-library/closure/goog/net/xpc/frameelementmethodtransport.js +251 -0
- data/closure-library/closure/goog/net/xpc/iframepollingtransport.js +822 -0
- data/closure-library/closure/goog/net/xpc/iframerelaytransport.js +288 -0
- data/closure-library/closure/goog/net/xpc/nativemessagingtransport.js +280 -0
- data/closure-library/closure/goog/net/xpc/nativemessagingtransport_test.html +164 -0
- data/closure-library/closure/goog/net/xpc/nixtransport.js +454 -0
- data/closure-library/closure/goog/net/xpc/relay.js +72 -0
- data/closure-library/closure/goog/net/xpc/testdata/inner_peer.html +106 -0
- data/closure-library/closure/goog/net/xpc/transport.js +104 -0
- data/closure-library/closure/goog/net/xpc/xpc.js +238 -0
- data/closure-library/closure/goog/object/object.js +553 -0
- data/closure-library/closure/goog/object/object_test.html +376 -0
- data/closure-library/closure/goog/positioning/absoluteposition.js +73 -0
- data/closure-library/closure/goog/positioning/abstractposition.js +47 -0
- data/closure-library/closure/goog/positioning/anchoredposition.js +78 -0
- data/closure-library/closure/goog/positioning/anchoredviewportposition.js +126 -0
- data/closure-library/closure/goog/positioning/anchoredviewportposition_test.html +117 -0
- data/closure-library/closure/goog/positioning/anchoredviewportposition_test_iframe.html +35 -0
- data/closure-library/closure/goog/positioning/clientposition.js +75 -0
- data/closure-library/closure/goog/positioning/menuanchoredposition.js +97 -0
- data/closure-library/closure/goog/positioning/positioning.js +476 -0
- data/closure-library/closure/goog/positioning/positioning_test.html +877 -0
- data/closure-library/closure/goog/positioning/positioning_test_iframe1.html +16 -0
- data/closure-library/closure/goog/positioning/positioning_test_iframe2.html +13 -0
- data/closure-library/closure/goog/positioning/positioning_test_quirk.html +9 -0
- data/closure-library/closure/goog/positioning/positioning_test_standard.html +13 -0
- data/closure-library/closure/goog/positioning/viewportclientposition.js +102 -0
- data/closure-library/closure/goog/positioning/viewportclientposition_test.html +172 -0
- data/closure-library/closure/goog/positioning/viewportposition.js +63 -0
- data/closure-library/closure/goog/proto/proto.js +43 -0
- data/closure-library/closure/goog/proto/serializer.js +68 -0
- data/closure-library/closure/goog/proto/serializer_test.html +43 -0
- data/closure-library/closure/goog/proto2/descriptor.js +198 -0
- data/closure-library/closure/goog/proto2/descriptor_test.html +60 -0
- data/closure-library/closure/goog/proto2/fielddescriptor.js +288 -0
- data/closure-library/closure/goog/proto2/fielddescriptor_test.html +124 -0
- data/closure-library/closure/goog/proto2/lazydeserializer.js +69 -0
- data/closure-library/closure/goog/proto2/message.js +726 -0
- data/closure-library/closure/goog/proto2/message_test.html +356 -0
- data/closure-library/closure/goog/proto2/objectserializer.js +159 -0
- data/closure-library/closure/goog/proto2/objectserializer_test.html +423 -0
- data/closure-library/closure/goog/proto2/package_test.pb.js +164 -0
- data/closure-library/closure/goog/proto2/pbliteserializer.js +150 -0
- data/closure-library/closure/goog/proto2/pbliteserializer_test.html +267 -0
- data/closure-library/closure/goog/proto2/proto_test.html +693 -0
- data/closure-library/closure/goog/proto2/serializer.js +148 -0
- data/closure-library/closure/goog/proto2/test.pb.js +2820 -0
- data/closure-library/closure/goog/proto2/util.js +54 -0
- data/closure-library/closure/goog/pubsub/pubsub.js +326 -0
- data/closure-library/closure/goog/pubsub/pubsub_test.html +635 -0
- data/closure-library/closure/goog/reflect/reflect.js +50 -0
- data/closure-library/closure/goog/spell/spellcheck.js +474 -0
- data/closure-library/closure/goog/spell/spellcheck_test.html +112 -0
- data/closure-library/closure/goog/string/path.js +100 -0
- data/closure-library/closure/goog/string/path_test.html +59 -0
- data/closure-library/closure/goog/string/string.js +1207 -0
- data/closure-library/closure/goog/string/string_test.html +877 -0
- data/closure-library/closure/goog/string/stringbuffer.js +167 -0
- data/closure-library/closure/goog/string/stringbuffer_test.html +101 -0
- data/closure-library/closure/goog/string/stringformat.js +247 -0
- data/closure-library/closure/goog/string/stringformat_test.html +211 -0
- data/closure-library/closure/goog/structs/avltree.js +769 -0
- data/closure-library/closure/goog/structs/avltree_test.html +241 -0
- data/closure-library/closure/goog/structs/circularbuffer.js +219 -0
- data/closure-library/closure/goog/structs/circularbuffer_test.html +105 -0
- data/closure-library/closure/goog/structs/heap.js +332 -0
- data/closure-library/closure/goog/structs/heap_test.html +220 -0
- data/closure-library/closure/goog/structs/inversionmap.js +159 -0
- data/closure-library/closure/goog/structs/inversionmap_test.html +157 -0
- data/closure-library/closure/goog/structs/linkedmap.js +472 -0
- data/closure-library/closure/goog/structs/linkedmap_test.html +300 -0
- data/closure-library/closure/goog/structs/map.js +446 -0
- data/closure-library/closure/goog/structs/map_test.html +430 -0
- data/closure-library/closure/goog/structs/node.js +74 -0
- data/closure-library/closure/goog/structs/pool.js +344 -0
- data/closure-library/closure/goog/structs/pool_test.html +265 -0
- data/closure-library/closure/goog/structs/prioritypool.js +147 -0
- data/closure-library/closure/goog/structs/prioritypool_test.html +478 -0
- data/closure-library/closure/goog/structs/priorityqueue.js +64 -0
- data/closure-library/closure/goog/structs/priorityqueue_test.html +179 -0
- data/closure-library/closure/goog/structs/quadtree.js +571 -0
- data/closure-library/closure/goog/structs/quadtree_test.html +179 -0
- data/closure-library/closure/goog/structs/queue.js +157 -0
- data/closure-library/closure/goog/structs/queue_test.html +140 -0
- data/closure-library/closure/goog/structs/set.js +251 -0
- data/closure-library/closure/goog/structs/set_test.html +551 -0
- data/closure-library/closure/goog/structs/simplepool.js +203 -0
- data/closure-library/closure/goog/structs/stringset.js +404 -0
- data/closure-library/closure/goog/structs/stringset_test.html +251 -0
- data/closure-library/closure/goog/structs/structs.js +341 -0
- data/closure-library/closure/goog/structs/structs_test.html +1050 -0
- data/closure-library/closure/goog/structs/treenode.js +312 -0
- data/closure-library/closure/goog/structs/treenode_test.html +285 -0
- data/closure-library/closure/goog/structs/trie.js +368 -0
- data/closure-library/closure/goog/structs/trie_test.html +378 -0
- data/closure-library/closure/goog/style/cursor.js +125 -0
- data/closure-library/closure/goog/style/cursor_test.html +131 -0
- data/closure-library/closure/goog/style/style.js +1804 -0
- data/closure-library/closure/goog/style/style_quirks_test.html +1928 -0
- data/closure-library/closure/goog/style/style_test.html +2073 -0
- data/closure-library/closure/goog/style/style_test_iframe_quirk.html +29 -0
- data/closure-library/closure/goog/style/style_test_iframe_standard.html +30 -0
- data/closure-library/closure/goog/style/style_test_quirk.html +9 -0
- data/closure-library/closure/goog/style/style_test_standard.html +11 -0
- data/closure-library/closure/goog/testing/asserts.js +970 -0
- data/closure-library/closure/goog/testing/asserts_test.html +966 -0
- data/closure-library/closure/goog/testing/async/mockcontrol.js +174 -0
- data/closure-library/closure/goog/testing/async/mockcontrol_test.html +224 -0
- data/closure-library/closure/goog/testing/asynctestcase.js +812 -0
- data/closure-library/closure/goog/testing/asynctestcase_async_test.html +102 -0
- data/closure-library/closure/goog/testing/asynctestcase_noasync_test.html +98 -0
- data/closure-library/closure/goog/testing/benchmark.js +87 -0
- data/closure-library/closure/goog/testing/benchmarks/jsbinarysizebutton.js +64 -0
- data/closure-library/closure/goog/testing/benchmarks/jsbinarysizebutton_test.html +58 -0
- data/closure-library/closure/goog/testing/benchmarks/jsbinarysizetoolbar.js +66 -0
- data/closure-library/closure/goog/testing/benchmarks/jsbinarysizetoolbar_test.html +49 -0
- data/closure-library/closure/goog/testing/continuationtestcase.js +682 -0
- data/closure-library/closure/goog/testing/continuationtestcase_test.html +349 -0
- data/closure-library/closure/goog/testing/deferredtestcase.js +157 -0
- data/closure-library/closure/goog/testing/deferredtestcase_test.html +152 -0
- data/closure-library/closure/goog/testing/dom.js +596 -0
- data/closure-library/closure/goog/testing/dom_test.html +438 -0
- data/closure-library/closure/goog/testing/editor/dom.js +293 -0
- data/closure-library/closure/goog/testing/editor/dom_test.html +295 -0
- data/closure-library/closure/goog/testing/editor/fieldmock.js +90 -0
- data/closure-library/closure/goog/testing/editor/testhelper.js +168 -0
- data/closure-library/closure/goog/testing/editor/testhelper_test.html +176 -0
- data/closure-library/closure/goog/testing/events/eventobserver.js +85 -0
- data/closure-library/closure/goog/testing/events/eventobserver_test.html +70 -0
- data/closure-library/closure/goog/testing/events/events.js +540 -0
- data/closure-library/closure/goog/testing/events/events_test.html +434 -0
- data/closure-library/closure/goog/testing/events/matchers.js +41 -0
- data/closure-library/closure/goog/testing/events/matchers_test.html +40 -0
- data/closure-library/closure/goog/testing/expectedfailures.js +236 -0
- data/closure-library/closure/goog/testing/expectedfailures_test.html +122 -0
- data/closure-library/closure/goog/testing/fs/blob.js +74 -0
- data/closure-library/closure/goog/testing/fs/blob_test.html +53 -0
- data/closure-library/closure/goog/testing/fs/directoryentry_test.html +185 -0
- data/closure-library/closure/goog/testing/fs/entry.js +511 -0
- data/closure-library/closure/goog/testing/fs/entry_test.html +153 -0
- data/closure-library/closure/goog/testing/fs/file.js +51 -0
- data/closure-library/closure/goog/testing/fs/fileentry_test.html +54 -0
- data/closure-library/closure/goog/testing/fs/filesystem.js +64 -0
- data/closure-library/closure/goog/testing/fs/filewriter.js +314 -0
- data/closure-library/closure/goog/testing/fs/filewriter_test.html +248 -0
- data/closure-library/closure/goog/testing/fs/fs.js +146 -0
- data/closure-library/closure/goog/testing/fs/fs_test.html +54 -0
- data/closure-library/closure/goog/testing/fs/integration_test.html +219 -0
- data/closure-library/closure/goog/testing/functionmock.js +157 -0
- data/closure-library/closure/goog/testing/functionmock_test.html +357 -0
- data/closure-library/closure/goog/testing/graphics.js +64 -0
- data/closure-library/closure/goog/testing/jsunit.js +144 -0
- data/closure-library/closure/goog/testing/loosemock.js +240 -0
- data/closure-library/closure/goog/testing/loosemock_test.html +343 -0
- data/closure-library/closure/goog/testing/messaging/mockmessagechannel.js +77 -0
- data/closure-library/closure/goog/testing/messaging/mockmessageevent.js +100 -0
- data/closure-library/closure/goog/testing/mock.js +556 -0
- data/closure-library/closure/goog/testing/mock_test.html +208 -0
- data/closure-library/closure/goog/testing/mockclassfactory.js +580 -0
- data/closure-library/closure/goog/testing/mockclassfactory_test.html +241 -0
- data/closure-library/closure/goog/testing/mockclock.js +395 -0
- data/closure-library/closure/goog/testing/mockclock_test.html +413 -0
- data/closure-library/closure/goog/testing/mockcontrol.js +210 -0
- data/closure-library/closure/goog/testing/mockcontrol_test.html +127 -0
- data/closure-library/closure/goog/testing/mockinterface.js +45 -0
- data/closure-library/closure/goog/testing/mockmatchers.js +395 -0
- data/closure-library/closure/goog/testing/mockmatchers_test.html +388 -0
- data/closure-library/closure/goog/testing/mockrandom.js +128 -0
- data/closure-library/closure/goog/testing/mockrandom_test.html +56 -0
- data/closure-library/closure/goog/testing/mockrange.js +65 -0
- data/closure-library/closure/goog/testing/mockrange_test.html +41 -0
- data/closure-library/closure/goog/testing/mockuseragent.js +143 -0
- data/closure-library/closure/goog/testing/mockuseragent_test.html +59 -0
- data/closure-library/closure/goog/testing/multitestrunner.js +1442 -0
- data/closure-library/closure/goog/testing/net/xhrio.js +595 -0
- data/closure-library/closure/goog/testing/net/xhrio_test.html +321 -0
- data/closure-library/closure/goog/testing/objectpropertystring.js +67 -0
- data/closure-library/closure/goog/testing/performancetable.css +46 -0
- data/closure-library/closure/goog/testing/performancetable.js +162 -0
- data/closure-library/closure/goog/testing/performancetimer.js +166 -0
- data/closure-library/closure/goog/testing/performancetimer_test.html +107 -0
- data/closure-library/closure/goog/testing/propertyreplacer.js +243 -0
- data/closure-library/closure/goog/testing/propertyreplacer_test.html +368 -0
- data/closure-library/closure/goog/testing/pseudorandom.js +162 -0
- data/closure-library/closure/goog/testing/pseudorandom_test.html +98 -0
- data/closure-library/closure/goog/testing/recordfunction.js +194 -0
- data/closure-library/closure/goog/testing/recordfunction_test.html +147 -0
- data/closure-library/closure/goog/testing/singleton.js +82 -0
- data/closure-library/closure/goog/testing/singleton_test.html +39 -0
- data/closure-library/closure/goog/testing/stacktrace.js +470 -0
- data/closure-library/closure/goog/testing/stacktrace_test.html +229 -0
- data/closure-library/closure/goog/testing/strictmock.js +124 -0
- data/closure-library/closure/goog/testing/strictmock_test.html +368 -0
- data/closure-library/closure/goog/testing/style/layoutasserts.js +368 -0
- data/closure-library/closure/goog/testing/style/layoutasserts_test.html +269 -0
- data/closure-library/closure/goog/testing/testcase.js +1053 -0
- data/closure-library/closure/goog/testing/testqueue.js +66 -0
- data/closure-library/closure/goog/testing/testrunner.js +391 -0
- data/closure-library/closure/goog/testing/ui/rendererasserts.js +50 -0
- data/closure-library/closure/goog/testing/ui/rendererasserts_test.html +51 -0
- data/closure-library/closure/goog/testing/ui/rendererharness.js +175 -0
- data/closure-library/closure/goog/testing/ui/style.js +137 -0
- data/closure-library/closure/goog/testing/ui/style_reference.html +27 -0
- data/closure-library/closure/goog/testing/ui/style_test.html +130 -0
- data/closure-library/closure/goog/timer/timer.js +285 -0
- data/closure-library/closure/goog/timer/timer_test.html +118 -0
- data/closure-library/closure/goog/tweak/entries.js +990 -0
- data/closure-library/closure/goog/tweak/entries_test.html +94 -0
- data/closure-library/closure/goog/tweak/registry.js +310 -0
- data/closure-library/closure/goog/tweak/registry_test.html +144 -0
- data/closure-library/closure/goog/tweak/testhelpers.js +111 -0
- data/closure-library/closure/goog/tweak/tweak.js +318 -0
- data/closure-library/closure/goog/tweak/tweakui.js +817 -0
- data/closure-library/closure/goog/tweak/tweakui_test.html +280 -0
- data/closure-library/closure/goog/ui/abstractspellchecker.js +1069 -0
- data/closure-library/closure/goog/ui/activitymonitor.js +286 -0
- data/closure-library/closure/goog/ui/activitymonitor_test.html +44 -0
- data/closure-library/closure/goog/ui/advancedtooltip.js +369 -0
- data/closure-library/closure/goog/ui/advancedtooltip_test.html +274 -0
- data/closure-library/closure/goog/ui/animatedzippy.js +190 -0
- data/closure-library/closure/goog/ui/attachablemenu.js +464 -0
- data/closure-library/closure/goog/ui/autocomplete/arraymatcher.js +156 -0
- data/closure-library/closure/goog/ui/autocomplete/arraymatcher_test.html +130 -0
- data/closure-library/closure/goog/ui/autocomplete/autocomplete.js +627 -0
- data/closure-library/closure/goog/ui/autocomplete/autocomplete_test.html +537 -0
- data/closure-library/closure/goog/ui/autocomplete/basic.js +53 -0
- data/closure-library/closure/goog/ui/autocomplete/basic_test.html +204 -0
- data/closure-library/closure/goog/ui/autocomplete/inputhandler.js +1209 -0
- data/closure-library/closure/goog/ui/autocomplete/inputhandler_test.html +555 -0
- data/closure-library/closure/goog/ui/autocomplete/remote.js +117 -0
- data/closure-library/closure/goog/ui/autocomplete/remotearraymatcher.js +273 -0
- data/closure-library/closure/goog/ui/autocomplete/remotearraymatcher_test.html +73 -0
- data/closure-library/closure/goog/ui/autocomplete/renderer.js +852 -0
- data/closure-library/closure/goog/ui/autocomplete/renderer_test.html +386 -0
- data/closure-library/closure/goog/ui/autocomplete/richinputhandler.js +59 -0
- data/closure-library/closure/goog/ui/autocomplete/richremote.js +108 -0
- data/closure-library/closure/goog/ui/autocomplete/richremotearraymatcher.js +126 -0
- data/closure-library/closure/goog/ui/basicmenu.js +930 -0
- data/closure-library/closure/goog/ui/bidiinput.js +164 -0
- data/closure-library/closure/goog/ui/bubble.js +475 -0
- data/closure-library/closure/goog/ui/button.js +208 -0
- data/closure-library/closure/goog/ui/button_test.html +257 -0
- data/closure-library/closure/goog/ui/buttonrenderer.js +205 -0
- data/closure-library/closure/goog/ui/buttonrenderer_test.html +190 -0
- data/closure-library/closure/goog/ui/buttonside.js +40 -0
- data/closure-library/closure/goog/ui/cccbutton.js +281 -0
- data/closure-library/closure/goog/ui/charcounter.js +200 -0
- data/closure-library/closure/goog/ui/charpicker.js +807 -0
- data/closure-library/closure/goog/ui/checkbox.js +303 -0
- data/closure-library/closure/goog/ui/checkbox_test.html +224 -0
- data/closure-library/closure/goog/ui/checkboxmenuitem.js +53 -0
- data/closure-library/closure/goog/ui/colorbutton.js +58 -0
- data/closure-library/closure/goog/ui/colorbutton_test.html +70 -0
- data/closure-library/closure/goog/ui/colorbuttonrenderer.js +72 -0
- data/closure-library/closure/goog/ui/colormenubutton.js +213 -0
- data/closure-library/closure/goog/ui/colormenubuttonrenderer.js +144 -0
- data/closure-library/closure/goog/ui/colormenubuttonrenderer_test.html +88 -0
- data/closure-library/closure/goog/ui/colorpalette.js +162 -0
- data/closure-library/closure/goog/ui/colorpalette_test.html +169 -0
- data/closure-library/closure/goog/ui/colorpicker.js +344 -0
- data/closure-library/closure/goog/ui/colorsplitbehavior.js +61 -0
- data/closure-library/closure/goog/ui/combobox.js +894 -0
- data/closure-library/closure/goog/ui/combobox_test.html +208 -0
- data/closure-library/closure/goog/ui/component.js +1187 -0
- data/closure-library/closure/goog/ui/component_test.html +723 -0
- data/closure-library/closure/goog/ui/container.js +1296 -0
- data/closure-library/closure/goog/ui/container_test.html +450 -0
- data/closure-library/closure/goog/ui/containerrenderer.js +370 -0
- data/closure-library/closure/goog/ui/containerrenderer_test.html +227 -0
- data/closure-library/closure/goog/ui/containerscroller.js +221 -0
- data/closure-library/closure/goog/ui/containerscroller_test.html +213 -0
- data/closure-library/closure/goog/ui/control.js +1348 -0
- data/closure-library/closure/goog/ui/control_test.html +2128 -0
- data/closure-library/closure/goog/ui/controlcontent.js +28 -0
- data/closure-library/closure/goog/ui/controlrenderer.js +808 -0
- data/closure-library/closure/goog/ui/controlrenderer_test.html +840 -0
- data/closure-library/closure/goog/ui/cookieeditor.js +182 -0
- data/closure-library/closure/goog/ui/cookieeditor_test.html +102 -0
- data/closure-library/closure/goog/ui/css3buttonrenderer.js +147 -0
- data/closure-library/closure/goog/ui/css3menubuttonrenderer.js +144 -0
- data/closure-library/closure/goog/ui/cssnames.js +28 -0
- data/closure-library/closure/goog/ui/custombutton.js +58 -0
- data/closure-library/closure/goog/ui/custombuttonrenderer.js +254 -0
- data/closure-library/closure/goog/ui/customcolorpalette.js +137 -0
- data/closure-library/closure/goog/ui/customcolorpalette_test.html +60 -0
- data/closure-library/closure/goog/ui/datepicker.js +1339 -0
- data/closure-library/closure/goog/ui/datepicker_test.html +190 -0
- data/closure-library/closure/goog/ui/decorate.js +37 -0
- data/closure-library/closure/goog/ui/decorate_test.html +113 -0
- data/closure-library/closure/goog/ui/deprecatedbutton.js +381 -0
- data/closure-library/closure/goog/ui/dialog.js +1776 -0
- data/closure-library/closure/goog/ui/dialog_test.html +493 -0
- data/closure-library/closure/goog/ui/dimensionpicker.js +289 -0
- data/closure-library/closure/goog/ui/dimensionpicker_test.html +128 -0
- data/closure-library/closure/goog/ui/dimensionpickerrenderer.js +387 -0
- data/closure-library/closure/goog/ui/dragdropdetector.js +642 -0
- data/closure-library/closure/goog/ui/drilldownrow.js +494 -0
- data/closure-library/closure/goog/ui/editor/abstractdialog.js +443 -0
- data/closure-library/closure/goog/ui/editor/abstractdialog_test.html +467 -0
- data/closure-library/closure/goog/ui/editor/bubble.js +520 -0
- data/closure-library/closure/goog/ui/editor/bubble_test.html +264 -0
- data/closure-library/closure/goog/ui/editor/defaulttoolbar.js +1062 -0
- data/closure-library/closure/goog/ui/editor/linkdialog.js +833 -0
- data/closure-library/closure/goog/ui/editor/linkdialog_test.html +449 -0
- data/closure-library/closure/goog/ui/editor/messages.js +115 -0
- data/closure-library/closure/goog/ui/editor/tabpane.js +183 -0
- data/closure-library/closure/goog/ui/editor/toolbarcontroller.js +293 -0
- data/closure-library/closure/goog/ui/editor/toolbarfactory.js +437 -0
- data/closure-library/closure/goog/ui/editor/toolbarfactory_test.html +73 -0
- data/closure-library/closure/goog/ui/emoji/emoji.js +72 -0
- data/closure-library/closure/goog/ui/emoji/emojipalette.js +298 -0
- data/closure-library/closure/goog/ui/emoji/emojipaletterenderer.js +206 -0
- data/closure-library/closure/goog/ui/emoji/emojipicker.js +797 -0
- data/closure-library/closure/goog/ui/emoji/emojipicker_test.html +840 -0
- data/closure-library/closure/goog/ui/emoji/fast_nonprogressive_emojipicker_test.html +256 -0
- data/closure-library/closure/goog/ui/emoji/fast_progressive_emojipicker_test.html +256 -0
- data/closure-library/closure/goog/ui/emoji/popupemojipicker.js +410 -0
- data/closure-library/closure/goog/ui/emoji/popupemojipicker_test.html +80 -0
- data/closure-library/closure/goog/ui/emoji/progressiveemojipaletterenderer.js +97 -0
- data/closure-library/closure/goog/ui/emoji/spriteinfo.js +212 -0
- data/closure-library/closure/goog/ui/emoji/spriteinfo_test.html +51 -0
- data/closure-library/closure/goog/ui/filteredmenu.js +562 -0
- data/closure-library/closure/goog/ui/filteredmenu_test.html +299 -0
- data/closure-library/closure/goog/ui/filterobservingmenuitem.js +97 -0
- data/closure-library/closure/goog/ui/filterobservingmenuitemrenderer.js +60 -0
- data/closure-library/closure/goog/ui/flatbuttonrenderer.js +138 -0
- data/closure-library/closure/goog/ui/flatmenubuttonrenderer.js +199 -0
- data/closure-library/closure/goog/ui/formpost.js +109 -0
- data/closure-library/closure/goog/ui/formpost_test.html +109 -0
- data/closure-library/closure/goog/ui/gauge.js +999 -0
- data/closure-library/closure/goog/ui/gaugetheme.js +169 -0
- data/closure-library/closure/goog/ui/hovercard.js +447 -0
- data/closure-library/closure/goog/ui/hovercard_test.html +343 -0
- data/closure-library/closure/goog/ui/hsvapalette.js +311 -0
- data/closure-library/closure/goog/ui/hsvapalette_test.html +152 -0
- data/closure-library/closure/goog/ui/hsvpalette.js +470 -0
- data/closure-library/closure/goog/ui/hsvpalette_test.html +202 -0
- data/closure-library/closure/goog/ui/idgenerator.js +57 -0
- data/closure-library/closure/goog/ui/idletimer.js +299 -0
- data/closure-library/closure/goog/ui/idletimer_test.html +100 -0
- data/closure-library/closure/goog/ui/iframemask.js +256 -0
- data/closure-library/closure/goog/ui/iframemask_test.html +230 -0
- data/closure-library/closure/goog/ui/imagelessbuttonrenderer.js +204 -0
- data/closure-library/closure/goog/ui/imagelessmenubuttonrenderer.js +202 -0
- data/closure-library/closure/goog/ui/imagelessroundedcorner.js +971 -0
- data/closure-library/closure/goog/ui/inputdatepicker.js +306 -0
- data/closure-library/closure/goog/ui/inputdatepicker_test.html +109 -0
- data/closure-library/closure/goog/ui/itemevent.js +50 -0
- data/closure-library/closure/goog/ui/keyboardshortcuthandler.js +981 -0
- data/closure-library/closure/goog/ui/keyboardshortcuthandler_test.html +671 -0
- data/closure-library/closure/goog/ui/labelinput.js +439 -0
- data/closure-library/closure/goog/ui/linkbuttonrenderer.js +67 -0
- data/closure-library/closure/goog/ui/media/flashobject.js +629 -0
- data/closure-library/closure/goog/ui/media/flashobject_test.html +236 -0
- data/closure-library/closure/goog/ui/media/flickr.js +309 -0
- data/closure-library/closure/goog/ui/media/flickr_test.html +90 -0
- data/closure-library/closure/goog/ui/media/media.js +284 -0
- data/closure-library/closure/goog/ui/media/media_test.html +161 -0
- data/closure-library/closure/goog/ui/media/mediamodel.js +840 -0
- data/closure-library/closure/goog/ui/media/mp3.js +225 -0
- data/closure-library/closure/goog/ui/media/mp3_test.html +78 -0
- data/closure-library/closure/goog/ui/media/photo.js +139 -0
- data/closure-library/closure/goog/ui/media/photo_test.html +62 -0
- data/closure-library/closure/goog/ui/media/picasa.js +317 -0
- data/closure-library/closure/goog/ui/media/picasa_test.html +131 -0
- data/closure-library/closure/goog/ui/media/vimeo.js +264 -0
- data/closure-library/closure/goog/ui/media/vimeo_test.html +79 -0
- data/closure-library/closure/goog/ui/media/youtube.js +328 -0
- data/closure-library/closure/goog/ui/media/youtube_test.html +185 -0
- data/closure-library/closure/goog/ui/menu.js +435 -0
- data/closure-library/closure/goog/ui/menu_test.html +129 -0
- data/closure-library/closure/goog/ui/menubase.js +191 -0
- data/closure-library/closure/goog/ui/menubutton.js +809 -0
- data/closure-library/closure/goog/ui/menubutton_test.html +440 -0
- data/closure-library/closure/goog/ui/menubutton_test_frame.html +41 -0
- data/closure-library/closure/goog/ui/menubuttonrenderer.js +226 -0
- data/closure-library/closure/goog/ui/menubuttonrenderer_test.html +161 -0
- data/closure-library/closure/goog/ui/menuheader.js +62 -0
- data/closure-library/closure/goog/ui/menuheaderrenderer.js +55 -0
- data/closure-library/closure/goog/ui/menuitem.js +154 -0
- data/closure-library/closure/goog/ui/menuitem_test.html +506 -0
- data/closure-library/closure/goog/ui/menuitemrenderer.js +353 -0
- data/closure-library/closure/goog/ui/menuitemrenderer_test.html +190 -0
- data/closure-library/closure/goog/ui/menurenderer.js +118 -0
- data/closure-library/closure/goog/ui/menuseparator.js +51 -0
- data/closure-library/closure/goog/ui/menuseparatorrenderer.js +102 -0
- data/closure-library/closure/goog/ui/mockactivitymonitor.js +54 -0
- data/closure-library/closure/goog/ui/nativebuttonrenderer.js +205 -0
- data/closure-library/closure/goog/ui/nativebuttonrenderer_test.html +213 -0
- data/closure-library/closure/goog/ui/offlineinstalldialog.js +1086 -0
- data/closure-library/closure/goog/ui/offlinestatuscard.js +580 -0
- data/closure-library/closure/goog/ui/offlinestatuscomponent.js +545 -0
- data/closure-library/closure/goog/ui/option.js +67 -0
- data/closure-library/closure/goog/ui/palette.js +528 -0
- data/closure-library/closure/goog/ui/paletterenderer.js +318 -0
- data/closure-library/closure/goog/ui/plaintextspellchecker.js +668 -0
- data/closure-library/closure/goog/ui/plaintextspellchecker_test.html +240 -0
- data/closure-library/closure/goog/ui/popup.js +410 -0
- data/closure-library/closure/goog/ui/popup_test.html +137 -0
- data/closure-library/closure/goog/ui/popupbase.js +721 -0
- data/closure-library/closure/goog/ui/popupbase_test.html +186 -0
- data/closure-library/closure/goog/ui/popupcolorpicker.js +441 -0
- data/closure-library/closure/goog/ui/popupcolorpicker_test.html +71 -0
- data/closure-library/closure/goog/ui/popupdatepicker.js +273 -0
- data/closure-library/closure/goog/ui/popupmenu.js +539 -0
- data/closure-library/closure/goog/ui/popupmenu_test.html +197 -0
- data/closure-library/closure/goog/ui/progressbar.js +390 -0
- data/closure-library/closure/goog/ui/prompt.js +307 -0
- data/closure-library/closure/goog/ui/prompt_test.html +65 -0
- data/closure-library/closure/goog/ui/rangemodel.js +301 -0
- data/closure-library/closure/goog/ui/rangemodel_test.html +270 -0
- data/closure-library/closure/goog/ui/ratings.js +441 -0
- data/closure-library/closure/goog/ui/registry.js +166 -0
- data/closure-library/closure/goog/ui/registry_test.html +236 -0
- data/closure-library/closure/goog/ui/richtextspellchecker.js +600 -0
- data/closure-library/closure/goog/ui/richtextspellchecker_test.html +224 -0
- data/closure-library/closure/goog/ui/roundedcorners.js +694 -0
- data/closure-library/closure/goog/ui/roundedpanel.js +609 -0
- data/closure-library/closure/goog/ui/roundedpanel_test.html +57 -0
- data/closure-library/closure/goog/ui/roundedtabrenderer.js +196 -0
- data/closure-library/closure/goog/ui/scrollfloater.js +394 -0
- data/closure-library/closure/goog/ui/scrollfloater_test.html +46 -0
- data/closure-library/closure/goog/ui/select.js +397 -0
- data/closure-library/closure/goog/ui/select_test.html +152 -0
- data/closure-library/closure/goog/ui/selectionmenubutton.js +277 -0
- data/closure-library/closure/goog/ui/selectionmenubutton_test.html +237 -0
- data/closure-library/closure/goog/ui/selectionmodel.js +291 -0
- data/closure-library/closure/goog/ui/separator.js +74 -0
- data/closure-library/closure/goog/ui/serverchart.js +1791 -0
- data/closure-library/closure/goog/ui/serverchart_test.html +598 -0
- data/closure-library/closure/goog/ui/slider.js +125 -0
- data/closure-library/closure/goog/ui/sliderbase.js +1087 -0
- data/closure-library/closure/goog/ui/sliderbase_test.html +198 -0
- data/closure-library/closure/goog/ui/splitbehavior.js +348 -0
- data/closure-library/closure/goog/ui/splitbehavior_test.html +161 -0
- data/closure-library/closure/goog/ui/splitpane.js +844 -0
- data/closure-library/closure/goog/ui/splitpane_test.html +143 -0
- data/closure-library/closure/goog/ui/style/app/buttonrenderer.js +204 -0
- data/closure-library/closure/goog/ui/style/app/buttonrenderer_test.html +155 -0
- data/closure-library/closure/goog/ui/style/app/menubuttonrenderer.js +227 -0
- data/closure-library/closure/goog/ui/style/app/menubuttonrenderer_test.html +167 -0
- data/closure-library/closure/goog/ui/style/app/primaryactionbuttonrenderer.js +88 -0
- data/closure-library/closure/goog/ui/style/app/primaryactionbuttonrenderer_test.html +76 -0
- data/closure-library/closure/goog/ui/submenu.js +660 -0
- data/closure-library/closure/goog/ui/submenu_test.html +446 -0
- data/closure-library/closure/goog/ui/submenurenderer.js +188 -0
- data/closure-library/closure/goog/ui/tab.js +102 -0
- data/closure-library/closure/goog/ui/tab_test.html +61 -0
- data/closure-library/closure/goog/ui/tabbar.js +393 -0
- data/closure-library/closure/goog/ui/tabbar_test.html +611 -0
- data/closure-library/closure/goog/ui/tabbarrenderer.js +173 -0
- data/closure-library/closure/goog/ui/tabbarrenderer_test.html +137 -0
- data/closure-library/closure/goog/ui/tablesorter.js +304 -0
- data/closure-library/closure/goog/ui/tablesorter_test.html +127 -0
- data/closure-library/closure/goog/ui/tabpane.js +674 -0
- data/closure-library/closure/goog/ui/tabpane_test.html +107 -0
- data/closure-library/closure/goog/ui/tabrenderer.js +152 -0
- data/closure-library/closure/goog/ui/tabrenderer_test.html +132 -0
- data/closure-library/closure/goog/ui/textarea.js +573 -0
- data/closure-library/closure/goog/ui/textarea_test.html +305 -0
- data/closure-library/closure/goog/ui/textarearenderer.js +167 -0
- data/closure-library/closure/goog/ui/togglebutton.js +58 -0
- data/closure-library/closure/goog/ui/toolbar.js +45 -0
- data/closure-library/closure/goog/ui/toolbarbutton.js +54 -0
- data/closure-library/closure/goog/ui/toolbarbuttonrenderer.js +55 -0
- data/closure-library/closure/goog/ui/toolbarcolormenubutton.js +57 -0
- data/closure-library/closure/goog/ui/toolbarcolormenubuttonrenderer.js +95 -0
- data/closure-library/closure/goog/ui/toolbarcolormenubuttonrenderer_test.html +66 -0
- data/closure-library/closure/goog/ui/toolbarmenubutton.js +56 -0
- data/closure-library/closure/goog/ui/toolbarmenubuttonrenderer.js +55 -0
- data/closure-library/closure/goog/ui/toolbarrenderer.js +95 -0
- data/closure-library/closure/goog/ui/toolbarselect.js +55 -0
- data/closure-library/closure/goog/ui/toolbarseparator.js +51 -0
- data/closure-library/closure/goog/ui/toolbarseparatorrenderer.js +87 -0
- data/closure-library/closure/goog/ui/toolbartogglebutton.js +53 -0
- data/closure-library/closure/goog/ui/tooltip.js +975 -0
- data/closure-library/closure/goog/ui/tooltip_test.html +351 -0
- data/closure-library/closure/goog/ui/tree/basenode.js +1457 -0
- data/closure-library/closure/goog/ui/tree/basenode_test.html +218 -0
- data/closure-library/closure/goog/ui/tree/treecontrol.js +656 -0
- data/closure-library/closure/goog/ui/tree/treecontrol_test.html +113 -0
- data/closure-library/closure/goog/ui/tree/treenode.js +102 -0
- data/closure-library/closure/goog/ui/tree/typeahead.js +332 -0
- data/closure-library/closure/goog/ui/tree/typeahead_test.html +133 -0
- data/closure-library/closure/goog/ui/tristatemenuitem.js +185 -0
- data/closure-library/closure/goog/ui/tristatemenuitemrenderer.js +86 -0
- data/closure-library/closure/goog/ui/twothumbslider.js +134 -0
- data/closure-library/closure/goog/ui/zippy.js +277 -0
- data/closure-library/closure/goog/ui/zippy_test.html +223 -0
- data/closure-library/closure/goog/uri/uri.js +1595 -0
- data/closure-library/closure/goog/uri/uri_test.html +837 -0
- data/closure-library/closure/goog/uri/utils.js +972 -0
- data/closure-library/closure/goog/uri/utils_test.html +521 -0
- data/closure-library/closure/goog/useragent/adobereader.js +90 -0
- data/closure-library/closure/goog/useragent/adobereader_test.html +34 -0
- data/closure-library/closure/goog/useragent/flash.js +113 -0
- data/closure-library/closure/goog/useragent/flash_test.html +34 -0
- data/closure-library/closure/goog/useragent/iphoto.js +86 -0
- data/closure-library/closure/goog/useragent/jscript.js +94 -0
- data/closure-library/closure/goog/useragent/jscript_test.html +65 -0
- data/closure-library/closure/goog/useragent/picasa.js +111 -0
- data/closure-library/closure/goog/useragent/platform.js +70 -0
- data/closure-library/closure/goog/useragent/platform_test.html +108 -0
- data/closure-library/closure/goog/useragent/product.js +253 -0
- data/closure-library/closure/goog/useragent/product_isversion.js +99 -0
- data/closure-library/closure/goog/useragent/product_test.html +322 -0
- data/closure-library/closure/goog/useragent/useragent.js +464 -0
- data/closure-library/closure/goog/useragent/useragent_test.html +290 -0
- data/closure-library/closure/goog/window/window.js +206 -0
- data/closure-library/closure/goog/window/window_test.html +185 -0
- data/closure-library/third_party/closure/goog/base.js +2 -0
- data/closure-library/third_party/closure/goog/caja/string/html/htmlparser.js +611 -0
- data/closure-library/third_party/closure/goog/caja/string/html/htmlsanitizer.js +605 -0
- data/closure-library/third_party/closure/goog/deps.js +26 -0
- data/closure-library/third_party/closure/goog/dojo/dom/query.js +1532 -0
- data/closure-library/third_party/closure/goog/dojo/dom/query_test.html +63 -0
- data/closure-library/third_party/closure/goog/dojo/dom/query_test.js +160 -0
- data/closure-library/third_party/closure/goog/jpeg_encoder/jpeg_encoder_basic.js +751 -0
- data/closure-library/third_party/closure/goog/loremipsum/text/loremipsum.js +712 -0
- data/closure-library/third_party/closure/goog/loremipsum/text/loremipsum_test.html +61 -0
- data/closure-library/third_party/closure/goog/mochikit/async/deferred.js +530 -0
- data/closure-library/third_party/closure/goog/mochikit/async/deferred_test.html +627 -0
- data/closure-library/third_party/closure/goog/mochikit/async/deferredlist.js +199 -0
- data/closure-library/third_party/closure/goog/mochikit/async/deferredlist_test.html +426 -0
- data/closure-library/third_party/closure/goog/osapi/osapi.js +91 -0
- data/closure-library/third_party/closure/goog/silverlight/AppManifest.xml +6 -0
- data/closure-library/third_party/closure/goog/silverlight/AssemblyInfo.cs +35 -0
- data/closure-library/third_party/closure/goog/silverlight/ClipboardButton.xaml +9 -0
- data/closure-library/third_party/closure/goog/silverlight/ClipboardButton.xaml.cs +74 -0
- data/closure-library/third_party/closure/goog/silverlight/ClipboardButtonApp.xaml +8 -0
- data/closure-library/third_party/closure/goog/silverlight/ClipboardButtonApp.xaml.cs +75 -0
- data/closure-library/third_party/closure/goog/silverlight/ClosureClipboardButton.csproj +108 -0
- data/closure-library/third_party/closure/goog/silverlight/ClosureClipboardButton.csproj.user +29 -0
- data/closure-library/third_party/closure/goog/silverlight/clipboardbutton.js +279 -0
- data/closure-library/third_party/closure/goog/silverlight/silverlight.js +758 -0
- data/closure-library/third_party/closure/goog/silverlight/supporteduseragent.js +138 -0
- data/closure-library/third_party/closure/goog/silverlight/xap_files +0 -0
- data/closure-templates/COPYING +202 -0
- data/closure-templates/README +47 -0
- data/closure-templates/SoyToJsSrcCompiler.jar +0 -0
- data/closure-templates/soyutils.js +880 -0
- data/closure-templates/soyutils_usegoog.js +308 -0
- data/closure.gemspec +20 -0
- data/config.ru +40 -0
- data/java_src/ClosureScript.java +89 -0
- data/java_src/make.rb +19 -0
- data/lib/closure/beanshell.rb +80 -0
- data/lib/closure/compiler.rb +184 -0
- data/lib/closure/file_response.rb +90 -0
- data/lib/closure/goog.rb +143 -0
- data/lib/closure/middleware.rb +43 -0
- data/lib/closure/sass.rb +56 -0
- data/lib/closure/script.rb +139 -0
- data/lib/closure/server.rb +83 -0
- data/lib/closure/sources.rb +310 -0
- data/lib/closure/templates.rb +156 -0
- data/lib/closure/version.rb +20 -0
- data/lib/closure.jar +0 -0
- data/lib/closure.rb +134 -0
- data/scripts/demos/compile.js.erb +8 -0
- data/scripts/demos/compile.out +1 -0
- data/scripts/demos/compiler.haml +17 -0
- data/scripts/demos/compiler.js +12 -0
- data/scripts/demos/deps.js.erb +1 -0
- data/scripts/demos/externs.haml +16 -0
- data/scripts/demos/externs.js.erb +8 -0
- data/scripts/demos/externs.out +1 -0
- data/scripts/demos/externs_jquery.externs +849 -0
- data/scripts/demos/externs_jquery.js +167 -0
- data/scripts/demos/externs_jquerytest.js +11 -0
- data/scripts/demos/helloworld.haml +15 -0
- data/scripts/demos/helloworld.js +58 -0
- data/scripts/demos/helloworld.soy +45 -0
- data/scripts/demos/index.haml +21 -0
- data/scripts/demos/rails_ujs.haml +24 -0
- data/scripts/examples/rails/ujs.js +136 -0
- data/scripts/favicon.ico +0 -0
- data/scripts/fixtures/_partial.haml +2 -0
- data/scripts/fixtures/erb.html.erb +8 -0
- data/scripts/fixtures/haml.haml +6 -0
- data/scripts/fixtures/html.html +9 -0
- data/scripts/fixtures/route_js.js.erb +1 -0
- data/scripts/index.haml +14 -0
- data/test/beanshell_test.rb +22 -0
- data/test/server_test.rb +67 -0
- data/test/sources_test.rb +41 -0
- data/test/test_helper.rb +12 -0
- metadata +1577 -0
@@ -0,0 +1,1087 @@
|
|
1
|
+
// Copyright 2007 The Closure Library Authors. All Rights Reserved.
|
2
|
+
//
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
// you may not use this file except in compliance with the License.
|
5
|
+
// You may obtain a copy of the License at
|
6
|
+
//
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
//
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
10
|
+
// distributed under the License is distributed on an "AS-IS" BASIS,
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
// See the License for the specific language governing permissions and
|
13
|
+
// limitations under the License.
|
14
|
+
|
15
|
+
/**
|
16
|
+
* @fileoverview Implementation of a basic slider control.
|
17
|
+
*
|
18
|
+
* Models a control that allows to select a sub-range within a given
|
19
|
+
* range of values using two thumbs. The underlying range is modeled
|
20
|
+
* as a range model, where the min thumb points to value of the
|
21
|
+
* rangemodel, and the max thumb points to value + extent of the range
|
22
|
+
* model.
|
23
|
+
*
|
24
|
+
* The currently selected range is exposed through methods
|
25
|
+
* getValue() and getExtent().
|
26
|
+
*
|
27
|
+
* The reason for modelling the basic slider state as value + extent is
|
28
|
+
* to be able to capture both, a two-thumb slider to select a range, and
|
29
|
+
* a single-thumb slider to just select a value (in the latter case, extent
|
30
|
+
* is always zero). We provide subclasses (twothumbslider.js and slider.js)
|
31
|
+
* that model those special cases of this control.
|
32
|
+
*
|
33
|
+
* All rendering logic is left out, so that the subclasses can define
|
34
|
+
* their own rendering. To do so, the subclasses overwrite:
|
35
|
+
* - createDom
|
36
|
+
* - decorateInternal
|
37
|
+
* - getCssClass
|
38
|
+
*
|
39
|
+
*/
|
40
|
+
|
41
|
+
goog.provide('goog.ui.SliderBase');
|
42
|
+
goog.provide('goog.ui.SliderBase.Orientation');
|
43
|
+
|
44
|
+
goog.require('goog.Timer');
|
45
|
+
goog.require('goog.dom');
|
46
|
+
goog.require('goog.dom.a11y');
|
47
|
+
goog.require('goog.dom.a11y.Role');
|
48
|
+
goog.require('goog.dom.a11y.State');
|
49
|
+
goog.require('goog.dom.classes');
|
50
|
+
goog.require('goog.events');
|
51
|
+
goog.require('goog.events.EventType');
|
52
|
+
goog.require('goog.events.KeyCodes');
|
53
|
+
goog.require('goog.events.KeyHandler');
|
54
|
+
goog.require('goog.events.KeyHandler.EventType');
|
55
|
+
goog.require('goog.events.MouseWheelHandler');
|
56
|
+
goog.require('goog.events.MouseWheelHandler.EventType');
|
57
|
+
goog.require('goog.fx.Animation.EventType');
|
58
|
+
goog.require('goog.fx.Dragger');
|
59
|
+
goog.require('goog.fx.Dragger.EventType');
|
60
|
+
goog.require('goog.fx.dom.SlideFrom');
|
61
|
+
goog.require('goog.math');
|
62
|
+
goog.require('goog.math.Coordinate');
|
63
|
+
goog.require('goog.style');
|
64
|
+
goog.require('goog.ui.Component');
|
65
|
+
goog.require('goog.ui.Component.EventType');
|
66
|
+
goog.require('goog.ui.RangeModel');
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
/**
|
71
|
+
* This creates a SliderBase object.
|
72
|
+
* @param {goog.dom.DomHelper=} opt_domHelper Optional DOM helper.
|
73
|
+
* @constructor
|
74
|
+
* @extends {goog.ui.Component}
|
75
|
+
*/
|
76
|
+
goog.ui.SliderBase = function(opt_domHelper) {
|
77
|
+
goog.ui.Component.call(this, opt_domHelper);
|
78
|
+
this.rangeModel = new goog.ui.RangeModel;
|
79
|
+
// Don't use getHandler because it gets cleared in exitDocument.
|
80
|
+
goog.events.listen(this.rangeModel, goog.ui.Component.EventType.CHANGE,
|
81
|
+
this.handleRangeModelChange, false, this);
|
82
|
+
};
|
83
|
+
goog.inherits(goog.ui.SliderBase, goog.ui.Component);
|
84
|
+
|
85
|
+
|
86
|
+
/**
|
87
|
+
* Enum for representing the orientation of the slider.
|
88
|
+
*
|
89
|
+
* @enum {string}
|
90
|
+
*/
|
91
|
+
goog.ui.SliderBase.Orientation = {
|
92
|
+
VERTICAL: 'vertical',
|
93
|
+
HORIZONTAL: 'horizontal'
|
94
|
+
};
|
95
|
+
|
96
|
+
|
97
|
+
/**
|
98
|
+
* Orientation of the slider.
|
99
|
+
* @type {goog.ui.SliderBase.Orientation}
|
100
|
+
* @private
|
101
|
+
*/
|
102
|
+
goog.ui.SliderBase.prototype.orientation_ =
|
103
|
+
goog.ui.SliderBase.Orientation.HORIZONTAL;
|
104
|
+
|
105
|
+
|
106
|
+
/**
|
107
|
+
* When the user holds down the mouse on the slider background, the closest
|
108
|
+
* thumb will move in "lock-step" towards the mouse. This number indicates how
|
109
|
+
* long each step should take (in milliseconds).
|
110
|
+
* @type {number}
|
111
|
+
* @private
|
112
|
+
*/
|
113
|
+
goog.ui.SliderBase.MOUSE_DOWN_INCREMENT_INTERVAL_ = 200;
|
114
|
+
|
115
|
+
|
116
|
+
/**
|
117
|
+
* How long the animations should take (in milliseconds).
|
118
|
+
* @type {number}
|
119
|
+
* @private
|
120
|
+
*/
|
121
|
+
goog.ui.SliderBase.ANIMATION_INTERVAL_ = 100;
|
122
|
+
|
123
|
+
|
124
|
+
/**
|
125
|
+
* The underlying range model
|
126
|
+
* @type {goog.ui.RangeModel}
|
127
|
+
* @protected
|
128
|
+
*/
|
129
|
+
goog.ui.SliderBase.prototype.rangeModel;
|
130
|
+
|
131
|
+
|
132
|
+
/**
|
133
|
+
* The minThumb dom-element, pointing to the start of the selected range.
|
134
|
+
* @type {HTMLDivElement}
|
135
|
+
* @protected
|
136
|
+
*/
|
137
|
+
goog.ui.SliderBase.prototype.valueThumb;
|
138
|
+
|
139
|
+
|
140
|
+
/**
|
141
|
+
* The maxThumb dom-element, pointing to the end of the selected range.
|
142
|
+
* @type {HTMLDivElement}
|
143
|
+
* @protected
|
144
|
+
*/
|
145
|
+
goog.ui.SliderBase.prototype.extentThumb;
|
146
|
+
|
147
|
+
|
148
|
+
/**
|
149
|
+
* The thumb that we should be moving (only relevant when timed move is active).
|
150
|
+
* @type {HTMLDivElement}
|
151
|
+
* @private
|
152
|
+
*/
|
153
|
+
goog.ui.SliderBase.prototype.thumbToMove_;
|
154
|
+
|
155
|
+
|
156
|
+
/**
|
157
|
+
* The object handling keyboard events.
|
158
|
+
* @type {goog.events.KeyHandler}
|
159
|
+
* @private
|
160
|
+
*/
|
161
|
+
goog.ui.SliderBase.prototype.keyHandler_;
|
162
|
+
|
163
|
+
|
164
|
+
/**
|
165
|
+
* The object handling mouse wheel events.
|
166
|
+
* @type {goog.events.MouseWheelHandler}
|
167
|
+
* @private
|
168
|
+
*/
|
169
|
+
goog.ui.SliderBase.prototype.mouseWheelHandler_;
|
170
|
+
|
171
|
+
|
172
|
+
/**
|
173
|
+
* The Dragger for dragging the valueThumb.
|
174
|
+
* @type {goog.fx.Dragger}
|
175
|
+
* @private
|
176
|
+
*/
|
177
|
+
goog.ui.SliderBase.prototype.valueDragger_;
|
178
|
+
|
179
|
+
|
180
|
+
/**
|
181
|
+
* The Dragger for dragging the extentThumb.
|
182
|
+
* @type {goog.fx.Dragger}
|
183
|
+
* @private
|
184
|
+
*/
|
185
|
+
goog.ui.SliderBase.prototype.extentDragger_;
|
186
|
+
|
187
|
+
|
188
|
+
/**
|
189
|
+
* If we are currently animating the thumb.
|
190
|
+
* @private
|
191
|
+
* @type {boolean}
|
192
|
+
*/
|
193
|
+
goog.ui.SliderBase.prototype.isAnimating_ = false;
|
194
|
+
|
195
|
+
|
196
|
+
/**
|
197
|
+
* Whether clicking on the backgtround should move directly to that point.
|
198
|
+
* @private
|
199
|
+
* @type {boolean}
|
200
|
+
*/
|
201
|
+
goog.ui.SliderBase.prototype.moveToPointEnabled_ = false;
|
202
|
+
|
203
|
+
|
204
|
+
/**
|
205
|
+
* The amount to increment/decrement for page up/down as well as when holding
|
206
|
+
* down the mouse button on the background.
|
207
|
+
* @private
|
208
|
+
* @type {number}
|
209
|
+
*/
|
210
|
+
goog.ui.SliderBase.prototype.blockIncrement_ = 10;
|
211
|
+
|
212
|
+
|
213
|
+
/**
|
214
|
+
* The minimal extent. The class will ensure that the extent cannot shrink
|
215
|
+
* to a value smaller than minExtent.
|
216
|
+
* @private
|
217
|
+
* @type {number}
|
218
|
+
*/
|
219
|
+
goog.ui.SliderBase.prototype.minExtent_ = 0;
|
220
|
+
|
221
|
+
|
222
|
+
/**
|
223
|
+
* Returns the CSS class applied to the slider element for the given
|
224
|
+
* orientation. Subclasses must override this method.
|
225
|
+
* @param {goog.ui.SliderBase.Orientation} orient The orientation.
|
226
|
+
* @return {string} The CSS class applied to slider elements.
|
227
|
+
* @protected
|
228
|
+
*/
|
229
|
+
goog.ui.SliderBase.prototype.getCssClass = goog.abstractMethod;
|
230
|
+
|
231
|
+
|
232
|
+
/** @inheritDoc */
|
233
|
+
goog.ui.SliderBase.prototype.createDom = function() {
|
234
|
+
goog.ui.SliderBase.superClass_.createDom.call(this);
|
235
|
+
var element =
|
236
|
+
this.getDomHelper().createDom('div', this.getCssClass(this.orientation_));
|
237
|
+
this.decorateInternal(element);
|
238
|
+
};
|
239
|
+
|
240
|
+
|
241
|
+
/**
|
242
|
+
* Subclasses must implement this method and set the valueThumb and
|
243
|
+
* extentThumb to non-null values.
|
244
|
+
* @type {function() : void}
|
245
|
+
* @protected
|
246
|
+
*/
|
247
|
+
goog.ui.SliderBase.prototype.createThumbs = goog.abstractMethod;
|
248
|
+
|
249
|
+
|
250
|
+
/** @inheritDoc */
|
251
|
+
goog.ui.SliderBase.prototype.decorateInternal = function(element) {
|
252
|
+
goog.ui.SliderBase.superClass_.decorateInternal.call(this, element);
|
253
|
+
goog.dom.classes.add(element, this.getCssClass(this.orientation_));
|
254
|
+
this.createThumbs();
|
255
|
+
this.setAriaRoles();
|
256
|
+
};
|
257
|
+
|
258
|
+
|
259
|
+
/**
|
260
|
+
* Called when the DOM for the component is for sure in the document.
|
261
|
+
* Subclasses should override this method to set this element's role.
|
262
|
+
*/
|
263
|
+
goog.ui.SliderBase.prototype.enterDocument = function() {
|
264
|
+
goog.ui.SliderBase.superClass_.enterDocument.call(this);
|
265
|
+
|
266
|
+
// Attach the events
|
267
|
+
this.valueDragger_ = new goog.fx.Dragger(this.valueThumb);
|
268
|
+
this.extentDragger_ = new goog.fx.Dragger(this.extentThumb);
|
269
|
+
// The slider is handling the positioning so make the defaultActions empty.
|
270
|
+
this.valueDragger_.defaultAction = this.extentDragger_.defaultAction =
|
271
|
+
goog.nullFunction;
|
272
|
+
this.keyHandler_ = new goog.events.KeyHandler(this.getElement());
|
273
|
+
this.mouseWheelHandler_ = new goog.events.MouseWheelHandler(
|
274
|
+
this.getElement());
|
275
|
+
this.getHandler().
|
276
|
+
listen(this.valueDragger_, goog.fx.Dragger.EventType.BEFOREDRAG,
|
277
|
+
this.handleBeforeDrag_).
|
278
|
+
listen(this.extentDragger_, goog.fx.Dragger.EventType.BEFOREDRAG,
|
279
|
+
this.handleBeforeDrag_).
|
280
|
+
listen(this.keyHandler_, goog.events.KeyHandler.EventType.KEY,
|
281
|
+
this.handleKeyDown_).
|
282
|
+
listen(this.getElement(), goog.events.EventType.MOUSEDOWN,
|
283
|
+
this.handleMouseDown_).
|
284
|
+
listen(this.mouseWheelHandler_,
|
285
|
+
goog.events.MouseWheelHandler.EventType.MOUSEWHEEL,
|
286
|
+
this.handleMouseWheel_);
|
287
|
+
|
288
|
+
this.getElement().tabIndex = 0;
|
289
|
+
this.updateUi_();
|
290
|
+
};
|
291
|
+
|
292
|
+
|
293
|
+
/**
|
294
|
+
* Handler for the before drag event. We use the event properties to determine
|
295
|
+
* the new value.
|
296
|
+
* @param {goog.fx.DragEvent} e The drag event used to drag the thumb.
|
297
|
+
* @private
|
298
|
+
*/
|
299
|
+
goog.ui.SliderBase.prototype.handleBeforeDrag_ = function(e) {
|
300
|
+
var thumbToDrag = e.dragger == this.valueDragger_ ?
|
301
|
+
this.valueThumb : this.extentThumb;
|
302
|
+
var value;
|
303
|
+
if (this.orientation_ == goog.ui.SliderBase.Orientation.VERTICAL) {
|
304
|
+
var availHeight = this.getElement().clientHeight - thumbToDrag.offsetHeight;
|
305
|
+
value = (availHeight - e.top) / availHeight *
|
306
|
+
(this.getMaximum() - this.getMinimum()) + this.getMinimum();
|
307
|
+
} else {
|
308
|
+
var availWidth = this.getElement().clientWidth - thumbToDrag.offsetWidth;
|
309
|
+
value = (e.left / availWidth) * (this.getMaximum() - this.getMinimum()) +
|
310
|
+
this.getMinimum();
|
311
|
+
}
|
312
|
+
// Bind the value within valid range before calling setThumbPosition_.
|
313
|
+
// This is necessary because setThumbPosition_ is a no-op for values outside
|
314
|
+
// of the legal range. For drag operations, we want the handle to snap to the
|
315
|
+
// last valid value instead of remaining at the previous position.
|
316
|
+
if (e.dragger == this.valueDragger_) {
|
317
|
+
value = Math.min(Math.max(value, this.getMinimum()),
|
318
|
+
this.getValue() + this.getExtent());
|
319
|
+
} else {
|
320
|
+
value = Math.min(Math.max(value, this.getValue()), this.getMaximum());
|
321
|
+
}
|
322
|
+
this.setThumbPosition_(thumbToDrag, value);
|
323
|
+
};
|
324
|
+
|
325
|
+
|
326
|
+
/**
|
327
|
+
* Event handler for the key down event. This is used to update the value
|
328
|
+
* based on the key pressed.
|
329
|
+
* @param {goog.events.KeyEvent} e The keyboard event object.
|
330
|
+
* @private
|
331
|
+
*/
|
332
|
+
goog.ui.SliderBase.prototype.handleKeyDown_ = function(e) {
|
333
|
+
var handled = true;
|
334
|
+
switch (e.keyCode) {
|
335
|
+
case goog.events.KeyCodes.HOME:
|
336
|
+
this.animatedSetValue_(this.getMinimum());
|
337
|
+
break;
|
338
|
+
case goog.events.KeyCodes.END:
|
339
|
+
this.animatedSetValue_(this.getMaximum());
|
340
|
+
break;
|
341
|
+
case goog.events.KeyCodes.PAGE_UP:
|
342
|
+
this.moveThumbs(this.getBlockIncrement());
|
343
|
+
break;
|
344
|
+
case goog.events.KeyCodes.PAGE_DOWN:
|
345
|
+
this.moveThumbs(-this.getBlockIncrement());
|
346
|
+
break;
|
347
|
+
case goog.events.KeyCodes.LEFT:
|
348
|
+
case goog.events.KeyCodes.DOWN:
|
349
|
+
this.moveThumbs(e.shiftKey ?
|
350
|
+
-this.getBlockIncrement() : -this.getUnitIncrement());
|
351
|
+
break;
|
352
|
+
case goog.events.KeyCodes.RIGHT:
|
353
|
+
case goog.events.KeyCodes.UP:
|
354
|
+
this.moveThumbs(e.shiftKey ?
|
355
|
+
this.getBlockIncrement() : this.getUnitIncrement());
|
356
|
+
break;
|
357
|
+
|
358
|
+
default:
|
359
|
+
handled = false;
|
360
|
+
}
|
361
|
+
|
362
|
+
if (handled) {
|
363
|
+
e.preventDefault();
|
364
|
+
}
|
365
|
+
};
|
366
|
+
|
367
|
+
|
368
|
+
/**
|
369
|
+
* Handler for the mouse down event.
|
370
|
+
* @param {goog.events.Event} e The mouse event object.
|
371
|
+
* @private
|
372
|
+
*/
|
373
|
+
goog.ui.SliderBase.prototype.handleMouseDown_ = function(e) {
|
374
|
+
if (this.getElement().focus) {
|
375
|
+
this.getElement().focus();
|
376
|
+
}
|
377
|
+
|
378
|
+
// Known Element.
|
379
|
+
var target = /** @type {Element} */ (e.target);
|
380
|
+
|
381
|
+
if (!goog.dom.contains(this.valueThumb, target) &&
|
382
|
+
!goog.dom.contains(this.extentThumb, target)) {
|
383
|
+
if (this.moveToPointEnabled_) {
|
384
|
+
// just set the value directly based on the position of the click
|
385
|
+
this.animatedSetValue_(this.getValueFromMousePosition_(e));
|
386
|
+
} else {
|
387
|
+
// start a timer that incrementally moves the handle
|
388
|
+
this.startBlockIncrementing_(e);
|
389
|
+
}
|
390
|
+
}
|
391
|
+
};
|
392
|
+
|
393
|
+
|
394
|
+
/**
|
395
|
+
* Handler for the mouse wheel event.
|
396
|
+
* @param {goog.events.MouseWheelEvent} e The mouse wheel event object.
|
397
|
+
* @private
|
398
|
+
*/
|
399
|
+
goog.ui.SliderBase.prototype.handleMouseWheel_ = function(e) {
|
400
|
+
// Just move one unit increment per mouse wheel event
|
401
|
+
var direction = e.detail > 0 ? -1 : 1;
|
402
|
+
this.moveThumbs(direction * this.getUnitIncrement());
|
403
|
+
e.preventDefault();
|
404
|
+
};
|
405
|
+
|
406
|
+
|
407
|
+
/**
|
408
|
+
* Starts the animation that causes the thumb to increment/decrement by the
|
409
|
+
* block increment when the user presses down on the background.
|
410
|
+
* @param {goog.events.Event} e The mouse event object.
|
411
|
+
* @private
|
412
|
+
*/
|
413
|
+
goog.ui.SliderBase.prototype.startBlockIncrementing_ = function(e) {
|
414
|
+
this.storeMousePos_(e);
|
415
|
+
this.thumbToMove_ = this.getClosestThumb_(this.getValueFromMousePosition_(e));
|
416
|
+
if (this.orientation_ == goog.ui.SliderBase.Orientation.VERTICAL) {
|
417
|
+
this.incrementing_ = this.lastMousePosition_ < this.thumbToMove_.offsetTop;
|
418
|
+
} else {
|
419
|
+
this.incrementing_ = this.lastMousePosition_ >
|
420
|
+
this.thumbToMove_.offsetLeft +
|
421
|
+
this.thumbToMove_.offsetWidth;
|
422
|
+
}
|
423
|
+
|
424
|
+
var doc = goog.dom.getOwnerDocument(this.getElement());
|
425
|
+
this.getHandler().
|
426
|
+
listen(doc, goog.events.EventType.MOUSEUP, this.handleMouseUp_, true).
|
427
|
+
listen(this.getElement(), goog.events.EventType.MOUSEMOVE,
|
428
|
+
this.storeMousePos_);
|
429
|
+
|
430
|
+
if (!this.incTimer_) {
|
431
|
+
this.incTimer_ = new goog.Timer(
|
432
|
+
goog.ui.SliderBase.MOUSE_DOWN_INCREMENT_INTERVAL_);
|
433
|
+
this.getHandler().listen(this.incTimer_, goog.Timer.TICK,
|
434
|
+
this.handleTimerTick_);
|
435
|
+
}
|
436
|
+
this.handleTimerTick_();
|
437
|
+
this.incTimer_.start();
|
438
|
+
};
|
439
|
+
|
440
|
+
|
441
|
+
/**
|
442
|
+
* Handler for the tick event dispatched by the timer used to update the value
|
443
|
+
* in a block increment. This is also called directly from
|
444
|
+
* startBlockIncrementing_.
|
445
|
+
* @private
|
446
|
+
*/
|
447
|
+
goog.ui.SliderBase.prototype.handleTimerTick_ = function() {
|
448
|
+
var value;
|
449
|
+
if (this.orientation_ == goog.ui.SliderBase.Orientation.VERTICAL) {
|
450
|
+
var mouseY = this.lastMousePosition_;
|
451
|
+
var thumbY = this.thumbToMove_.offsetTop;
|
452
|
+
if (this.incrementing_) {
|
453
|
+
if (mouseY < thumbY) {
|
454
|
+
value = this.getThumbPosition_(this.thumbToMove_) +
|
455
|
+
this.getBlockIncrement();
|
456
|
+
}
|
457
|
+
} else {
|
458
|
+
var thumbH = this.thumbToMove_.offsetHeight;
|
459
|
+
if (mouseY > thumbY + thumbH) {
|
460
|
+
value = this.getThumbPosition_(this.thumbToMove_) -
|
461
|
+
this.getBlockIncrement();
|
462
|
+
}
|
463
|
+
}
|
464
|
+
} else {
|
465
|
+
var mouseX = this.lastMousePosition_;
|
466
|
+
var thumbX = this.thumbToMove_.offsetLeft;
|
467
|
+
if (this.incrementing_) {
|
468
|
+
var thumbW = this.thumbToMove_.offsetWidth;
|
469
|
+
if (mouseX > thumbX + thumbW) {
|
470
|
+
value = this.getThumbPosition_(this.thumbToMove_) +
|
471
|
+
this.getBlockIncrement();
|
472
|
+
}
|
473
|
+
} else {
|
474
|
+
if (mouseX < thumbX) {
|
475
|
+
value = this.getThumbPosition_(this.thumbToMove_) -
|
476
|
+
this.getBlockIncrement();
|
477
|
+
}
|
478
|
+
}
|
479
|
+
}
|
480
|
+
|
481
|
+
if (goog.isDef(value)) { // not all code paths sets the value variable
|
482
|
+
this.setThumbPosition_(this.thumbToMove_, value);
|
483
|
+
}
|
484
|
+
};
|
485
|
+
|
486
|
+
|
487
|
+
/**
|
488
|
+
* Handler for the mouse up event.
|
489
|
+
* @param {goog.events.Event} e The event object.
|
490
|
+
* @private
|
491
|
+
*/
|
492
|
+
goog.ui.SliderBase.prototype.handleMouseUp_ = function(e) {
|
493
|
+
if (this.incTimer_) {
|
494
|
+
this.incTimer_.stop();
|
495
|
+
}
|
496
|
+
|
497
|
+
var doc = goog.dom.getOwnerDocument(this.getElement());
|
498
|
+
this.getHandler().
|
499
|
+
unlisten(doc, goog.events.EventType.MOUSEUP, this.handleMouseUp_, true).
|
500
|
+
unlisten(this.getElement(), goog.events.EventType.MOUSEMOVE,
|
501
|
+
this.storeMousePos_);
|
502
|
+
};
|
503
|
+
|
504
|
+
|
505
|
+
/**
|
506
|
+
* Returns the relative mouse position to the slider.
|
507
|
+
* @param {goog.events.Event} e The mouse event object.
|
508
|
+
* @return {number} The relative mouse position to the slider.
|
509
|
+
* @private
|
510
|
+
*/
|
511
|
+
goog.ui.SliderBase.prototype.getRelativeMousePos_ = function(e) {
|
512
|
+
var coord = goog.style.getRelativePosition(e, this.getElement());
|
513
|
+
if (this.orientation_ == goog.ui.SliderBase.Orientation.VERTICAL) {
|
514
|
+
return coord.y;
|
515
|
+
} else {
|
516
|
+
return coord.x;
|
517
|
+
}
|
518
|
+
};
|
519
|
+
|
520
|
+
|
521
|
+
/**
|
522
|
+
* Stores the current mouse position so that it can be used in the timer.
|
523
|
+
* @param {goog.events.Event} e The mouse event object.
|
524
|
+
* @private
|
525
|
+
*/
|
526
|
+
goog.ui.SliderBase.prototype.storeMousePos_ = function(e) {
|
527
|
+
this.lastMousePosition_ = this.getRelativeMousePos_(e);
|
528
|
+
};
|
529
|
+
|
530
|
+
|
531
|
+
/**
|
532
|
+
* Returns the value to use for the current mouse position
|
533
|
+
* @param {goog.events.Event} e The mouse event object.
|
534
|
+
* @return {number} The value that this mouse position represents.
|
535
|
+
* @private
|
536
|
+
*/
|
537
|
+
goog.ui.SliderBase.prototype.getValueFromMousePosition_ = function(e) {
|
538
|
+
var min = this.getMinimum();
|
539
|
+
var max = this.getMaximum();
|
540
|
+
if (this.orientation_ == goog.ui.SliderBase.Orientation.VERTICAL) {
|
541
|
+
var thumbH = this.valueThumb.offsetHeight;
|
542
|
+
var availH = this.getElement().clientHeight - thumbH;
|
543
|
+
var y = this.getRelativeMousePos_(e) - thumbH / 2;
|
544
|
+
return (max - min) * (availH - y) / availH + min;
|
545
|
+
} else {
|
546
|
+
var thumbW = this.valueThumb.offsetWidth;
|
547
|
+
var availW = this.getElement().clientWidth - thumbW;
|
548
|
+
var x = this.getRelativeMousePos_(e) - thumbW / 2;
|
549
|
+
return (max - min) * x / availW + min;
|
550
|
+
}
|
551
|
+
};
|
552
|
+
|
553
|
+
|
554
|
+
/**
|
555
|
+
* @param {HTMLDivElement} thumb The thumb object.
|
556
|
+
* @return {number} The position of the specified thumb.
|
557
|
+
* @private
|
558
|
+
*/
|
559
|
+
goog.ui.SliderBase.prototype.getThumbPosition_ = function(thumb) {
|
560
|
+
if (thumb == this.valueThumb) {
|
561
|
+
return this.rangeModel.getValue();
|
562
|
+
} else if (thumb == this.extentThumb) {
|
563
|
+
return this.rangeModel.getValue() + this.rangeModel.getExtent();
|
564
|
+
} else {
|
565
|
+
throw Error('Illegal thumb element. Neither minThumb nor maxThumb');
|
566
|
+
}
|
567
|
+
};
|
568
|
+
|
569
|
+
|
570
|
+
/**
|
571
|
+
* Moves the thumbs by the specified delta as follows
|
572
|
+
* - as long as both thumbs stay within [min,max], both thumbs are moved
|
573
|
+
* - once a thumb reaches or exceeds min (or max, respectively), it stays
|
574
|
+
* - at min (or max, respectively).
|
575
|
+
* In case both thumbs have reached min (or max), no change event will fire.
|
576
|
+
* @param {number} delta The delta by which to move the selected range.
|
577
|
+
*/
|
578
|
+
goog.ui.SliderBase.prototype.moveThumbs = function(delta) {
|
579
|
+
var newMinPos = this.getThumbPosition_(this.valueThumb) + delta;
|
580
|
+
var newMaxPos = this.getThumbPosition_(this.extentThumb) + delta;
|
581
|
+
// correct min / max positions to be within bounds
|
582
|
+
newMinPos = goog.math.clamp(
|
583
|
+
newMinPos, this.getMinimum(), this.getMaximum() - this.minExtent_);
|
584
|
+
newMaxPos = goog.math.clamp(
|
585
|
+
newMaxPos, this.getMinimum() + this.minExtent_, this.getMaximum());
|
586
|
+
// Set value and extent atomically
|
587
|
+
this.setValueAndExtent(newMinPos, newMaxPos - newMinPos);
|
588
|
+
};
|
589
|
+
|
590
|
+
|
591
|
+
/**
|
592
|
+
* Sets the position of the given thumb. The set is ignored and no CHANGE event
|
593
|
+
* fires if it violates the constraint minimum <= value (valueThumb position) <=
|
594
|
+
* value + extent (extentThumb position) <= maximum.
|
595
|
+
*
|
596
|
+
* Note: To keep things simple, the setThumbPosition_ function does not have the
|
597
|
+
* side-effect of "correcting" value or extent to fit the above constraint as it
|
598
|
+
* is the case in the underlying range model. Instead, we simply ignore the
|
599
|
+
* call. Callers must make these adjustements explicitly if they wish.
|
600
|
+
* @param {Element} thumb The thumb whose position to set.
|
601
|
+
* @param {number} position The position to move the thumb to.
|
602
|
+
* @private
|
603
|
+
*/
|
604
|
+
goog.ui.SliderBase.prototype.setThumbPosition_ = function(thumb, position) {
|
605
|
+
var intermediateExtent = null;
|
606
|
+
// Make sure the maxThumb stays within minThumb <= maxThumb <= maximum
|
607
|
+
if (thumb == this.extentThumb &&
|
608
|
+
position <= this.rangeModel.getMaximum() &&
|
609
|
+
position >= this.rangeModel.getValue() + this.minExtent_) {
|
610
|
+
// For the case where there is only one thumb, we don't want to set the
|
611
|
+
// extent twice, causing two change events, so delay setting until we know
|
612
|
+
// if there will be a subsequent change.
|
613
|
+
intermediateExtent = position - this.rangeModel.getValue();
|
614
|
+
}
|
615
|
+
|
616
|
+
// Make sure the minThumb stays within minimum <= minThumb <= maxThumb
|
617
|
+
var currentExtent = intermediateExtent || this.rangeModel.getExtent();
|
618
|
+
if (thumb == this.valueThumb &&
|
619
|
+
position >= this.getMinimum() &&
|
620
|
+
position <= this.rangeModel.getValue() +
|
621
|
+
currentExtent - this.minExtent_) {
|
622
|
+
var newExtent = currentExtent -
|
623
|
+
(position - this.rangeModel.getValue());
|
624
|
+
// The range model will round the value and extent. Since we're setting
|
625
|
+
// both, extent and value at the same time, it can happen that the
|
626
|
+
// rounded sum of position and extent is not equal to the sum of the
|
627
|
+
// position and extent rounded individually. If this happens, we simply
|
628
|
+
// ignore the update to prevent inconsistent moves of the extent thumb.
|
629
|
+
if (this.rangeModel.roundToStepWithMin(position) +
|
630
|
+
this.rangeModel.roundToStepWithMin(newExtent) ==
|
631
|
+
this.rangeModel.roundToStepWithMin(position + newExtent)) {
|
632
|
+
// Atomically update the position and extent.
|
633
|
+
this.setValueAndExtent(position, newExtent);
|
634
|
+
intermediateExtent = null;
|
635
|
+
}
|
636
|
+
}
|
637
|
+
|
638
|
+
// Need to be able to set extent to 0.
|
639
|
+
if (intermediateExtent != null) {
|
640
|
+
this.rangeModel.setExtent(intermediateExtent);
|
641
|
+
}
|
642
|
+
};
|
643
|
+
|
644
|
+
|
645
|
+
/**
|
646
|
+
* Sets the value and extent of the underlying range model. We enforce that
|
647
|
+
* getMinimum() <= value <= getMaximum() - extent and
|
648
|
+
* getMinExtent <= extent <= getMaximum() - getValue()
|
649
|
+
* If this is not satisifed for the given extent, the call is ignored and no
|
650
|
+
* CHANGE event fires. This is a utility method to allow setting the thumbs
|
651
|
+
* simultaneously and ensuring that only one event fires.
|
652
|
+
* @param {number} value The value to which to set the value.
|
653
|
+
* @param {number} extent The value to which to set the extent.
|
654
|
+
*/
|
655
|
+
goog.ui.SliderBase.prototype.setValueAndExtent = function(value, extent) {
|
656
|
+
if (this.getMinimum() <= value &&
|
657
|
+
value <= this.getMaximum() - extent &&
|
658
|
+
this.minExtent_ <= extent &&
|
659
|
+
extent <= this.getMaximum() - value) {
|
660
|
+
|
661
|
+
if (value == this.getValue() && extent == this.getExtent()) {
|
662
|
+
return;
|
663
|
+
}
|
664
|
+
// because the underlying range model applies adjustements of value
|
665
|
+
// and extent to fit within bounds, we need to reset the extent
|
666
|
+
// first so these adjustements don't kick in.
|
667
|
+
this.rangeModel.setMute(true);
|
668
|
+
this.rangeModel.setExtent(0);
|
669
|
+
this.rangeModel.setValue(value);
|
670
|
+
this.rangeModel.setExtent(extent);
|
671
|
+
this.rangeModel.setMute(false);
|
672
|
+
this.updateUi_();
|
673
|
+
this.dispatchEvent(goog.ui.Component.EventType.CHANGE);
|
674
|
+
}
|
675
|
+
};
|
676
|
+
|
677
|
+
|
678
|
+
/**
|
679
|
+
* @return {number} The minimum value.
|
680
|
+
*/
|
681
|
+
goog.ui.SliderBase.prototype.getMinimum = function() {
|
682
|
+
return this.rangeModel.getMinimum();
|
683
|
+
};
|
684
|
+
|
685
|
+
|
686
|
+
/**
|
687
|
+
* Sets the minimum number.
|
688
|
+
* @param {number} min The minimum value.
|
689
|
+
*/
|
690
|
+
goog.ui.SliderBase.prototype.setMinimum = function(min) {
|
691
|
+
this.rangeModel.setMinimum(min);
|
692
|
+
};
|
693
|
+
|
694
|
+
|
695
|
+
/**
|
696
|
+
* @return {number} The maximum value.
|
697
|
+
*/
|
698
|
+
goog.ui.SliderBase.prototype.getMaximum = function() {
|
699
|
+
return this.rangeModel.getMaximum();
|
700
|
+
};
|
701
|
+
|
702
|
+
|
703
|
+
/**
|
704
|
+
* Sets the maximum number.
|
705
|
+
* @param {number} max The maximum value.
|
706
|
+
*/
|
707
|
+
goog.ui.SliderBase.prototype.setMaximum = function(max) {
|
708
|
+
this.rangeModel.setMaximum(max);
|
709
|
+
};
|
710
|
+
|
711
|
+
|
712
|
+
/**
|
713
|
+
* @return {HTMLDivElement} The value thumb element.
|
714
|
+
*/
|
715
|
+
goog.ui.SliderBase.prototype.getValueThumb = function() {
|
716
|
+
return this.valueThumb;
|
717
|
+
};
|
718
|
+
|
719
|
+
|
720
|
+
/**
|
721
|
+
* @return {HTMLDivElement} The extent thumb element.
|
722
|
+
*/
|
723
|
+
goog.ui.SliderBase.prototype.getExtentThumb = function() {
|
724
|
+
return this.extentThumb;
|
725
|
+
};
|
726
|
+
|
727
|
+
|
728
|
+
/**
|
729
|
+
* @param {number} position The position to get the closest thumb to.
|
730
|
+
* @return {HTMLDivElement} The thumb that is closest to the given position.
|
731
|
+
* @private
|
732
|
+
*/
|
733
|
+
goog.ui.SliderBase.prototype.getClosestThumb_ = function(position) {
|
734
|
+
if (position <= (this.rangeModel.getValue() +
|
735
|
+
this.rangeModel.getExtent() / 2)) {
|
736
|
+
return this.valueThumb;
|
737
|
+
} else {
|
738
|
+
return this.extentThumb;
|
739
|
+
}
|
740
|
+
};
|
741
|
+
|
742
|
+
|
743
|
+
/**
|
744
|
+
* Call back when the internal range model changes. Sub-classes may override
|
745
|
+
* and re-enter this method to update a11y state. Consider protected.
|
746
|
+
* @param {goog.events.Event} e The event object.
|
747
|
+
* @protected
|
748
|
+
*/
|
749
|
+
goog.ui.SliderBase.prototype.handleRangeModelChange = function(e) {
|
750
|
+
this.updateUi_();
|
751
|
+
this.updateAriaStates();
|
752
|
+
this.dispatchEvent(goog.ui.Component.EventType.CHANGE);
|
753
|
+
};
|
754
|
+
|
755
|
+
|
756
|
+
/**
|
757
|
+
* This is called when we need to update the size of the thumb. This happens
|
758
|
+
* when first created as well as when the value and the orientation changes.
|
759
|
+
* @private
|
760
|
+
*/
|
761
|
+
goog.ui.SliderBase.prototype.updateUi_ = function() {
|
762
|
+
if (this.valueThumb && !this.isAnimating_) {
|
763
|
+
var minCoord = this.getThumbCoordinateForValue_(
|
764
|
+
this.getThumbPosition_(this.valueThumb));
|
765
|
+
var maxCoord = this.getThumbCoordinateForValue_(
|
766
|
+
this.getThumbPosition_(this.extentThumb));
|
767
|
+
|
768
|
+
if (this.orientation_ == goog.ui.SliderBase.Orientation.VERTICAL) {
|
769
|
+
this.valueThumb.style.top = minCoord.y + 'px';
|
770
|
+
this.extentThumb.style.top = maxCoord.y + 'px';
|
771
|
+
} else {
|
772
|
+
this.valueThumb.style.left = minCoord.x + 'px';
|
773
|
+
this.extentThumb.style.left = maxCoord.x + 'px';
|
774
|
+
}
|
775
|
+
}
|
776
|
+
};
|
777
|
+
|
778
|
+
|
779
|
+
/**
|
780
|
+
* Returns the position to move the handle to for a given value
|
781
|
+
* @param {number} val The value to get the coordinate for.
|
782
|
+
* @return {goog.math.Coordinate} Coordinate with either x or y set.
|
783
|
+
* @private
|
784
|
+
*/
|
785
|
+
goog.ui.SliderBase.prototype.getThumbCoordinateForValue_ = function(val) {
|
786
|
+
var coord = new goog.math.Coordinate;
|
787
|
+
if (this.valueThumb) {
|
788
|
+
var min = this.getMinimum();
|
789
|
+
var max = this.getMaximum();
|
790
|
+
|
791
|
+
// This check ensures the ratio never take NaN value, which is possible when
|
792
|
+
// the slider min & max are same numbers (i.e. 1).
|
793
|
+
var ratio = (val == min && min == max) ? 0 : (val - min) / (max - min);
|
794
|
+
|
795
|
+
if (this.orientation_ == goog.ui.SliderBase.Orientation.VERTICAL) {
|
796
|
+
var thumbHeight = this.valueThumb.offsetHeight;
|
797
|
+
var h = this.getElement().clientHeight - thumbHeight;
|
798
|
+
var bottom = Math.round(ratio * h);
|
799
|
+
coord.y = h - bottom;
|
800
|
+
} else {
|
801
|
+
var w = this.getElement().clientWidth - this.valueThumb.offsetWidth;
|
802
|
+
var left = Math.round(ratio * w);
|
803
|
+
coord.x = left;
|
804
|
+
}
|
805
|
+
}
|
806
|
+
return coord;
|
807
|
+
};
|
808
|
+
|
809
|
+
|
810
|
+
/**
|
811
|
+
* Sets the value and starts animating the handle towards that position.
|
812
|
+
* @param {number} v Value to set and animate to.
|
813
|
+
* @private
|
814
|
+
*/
|
815
|
+
goog.ui.SliderBase.prototype.animatedSetValue_ = function(v) {
|
816
|
+
// the value might be out of bounds
|
817
|
+
v = Math.min(this.getMaximum(), Math.max(v, this.getMinimum()));
|
818
|
+
|
819
|
+
if (this.currentAnimation_) {
|
820
|
+
this.currentAnimation_.stop(true);
|
821
|
+
}
|
822
|
+
|
823
|
+
var end;
|
824
|
+
var thumb = this.getClosestThumb_(v);
|
825
|
+
var coord = this.getThumbCoordinateForValue_(v);
|
826
|
+
if (this.orientation_ == goog.ui.SliderBase.Orientation.VERTICAL) {
|
827
|
+
end = [thumb.offsetLeft, coord.y];
|
828
|
+
} else {
|
829
|
+
end = [coord.x, thumb.offsetTop];
|
830
|
+
}
|
831
|
+
var animation = new goog.fx.dom.SlideFrom(thumb, end,
|
832
|
+
goog.ui.SliderBase.ANIMATION_INTERVAL_);
|
833
|
+
this.currentAnimation_ = animation;
|
834
|
+
this.getHandler().listen(animation, goog.fx.Animation.EventType.END,
|
835
|
+
this.endAnimation_);
|
836
|
+
|
837
|
+
this.isAnimating_ = true;
|
838
|
+
this.setThumbPosition_(thumb, v);
|
839
|
+
animation.play(false);
|
840
|
+
};
|
841
|
+
|
842
|
+
|
843
|
+
/**
|
844
|
+
* Sets the isAnimating_ field to false once the animation is done.
|
845
|
+
* @param {goog.fx.AnimationEvent} e Event object passed by the animation
|
846
|
+
* object.
|
847
|
+
* @private
|
848
|
+
*/
|
849
|
+
goog.ui.SliderBase.prototype.endAnimation_ = function(e) {
|
850
|
+
this.isAnimating_ = false;
|
851
|
+
};
|
852
|
+
|
853
|
+
|
854
|
+
/**
|
855
|
+
* Changes the orientation.
|
856
|
+
* @param {goog.ui.SliderBase.Orientation} orient The orientation.
|
857
|
+
*/
|
858
|
+
goog.ui.SliderBase.prototype.setOrientation = function(orient) {
|
859
|
+
if (this.orientation_ != orient) {
|
860
|
+
var oldCss = this.getCssClass(this.orientation_);
|
861
|
+
var newCss = this.getCssClass(orient);
|
862
|
+
this.orientation_ = orient;
|
863
|
+
|
864
|
+
// Update the DOM
|
865
|
+
if (this.getElement()) {
|
866
|
+
goog.dom.classes.swap(this.getElement(), oldCss, newCss);
|
867
|
+
// we need to reset the left and top
|
868
|
+
this.valueThumb.style.left = this.valueThumb.style.top = '';
|
869
|
+
this.extentThumb.style.left = this.extentThumb.style.top = '';
|
870
|
+
this.updateUi_();
|
871
|
+
}
|
872
|
+
}
|
873
|
+
};
|
874
|
+
|
875
|
+
|
876
|
+
/**
|
877
|
+
* @return {goog.ui.SliderBase.Orientation} the orientation of the slider.
|
878
|
+
*/
|
879
|
+
goog.ui.SliderBase.prototype.getOrientation = function() {
|
880
|
+
return this.orientation_;
|
881
|
+
};
|
882
|
+
|
883
|
+
|
884
|
+
/** @inheritDoc */
|
885
|
+
goog.ui.SliderBase.prototype.disposeInternal = function() {
|
886
|
+
goog.ui.SliderBase.superClass_.disposeInternal.call(this);
|
887
|
+
if (this.incTimer_) {
|
888
|
+
this.incTimer_.dispose();
|
889
|
+
}
|
890
|
+
delete this.incTimer_;
|
891
|
+
if (this.currentAnimation_) {
|
892
|
+
this.currentAnimation_.dispose();
|
893
|
+
}
|
894
|
+
delete this.currentAnimation_;
|
895
|
+
delete this.valueThumb;
|
896
|
+
delete this.extentThumb;
|
897
|
+
this.rangeModel.dispose();
|
898
|
+
delete this.rangeModel;
|
899
|
+
if (this.keyHandler_) {
|
900
|
+
this.keyHandler_.dispose();
|
901
|
+
delete this.keyHandler_;
|
902
|
+
}
|
903
|
+
if (this.mouseWheelHandler_) {
|
904
|
+
this.mouseWheelHandler_.dispose();
|
905
|
+
delete this.mouseWheelHandler_;
|
906
|
+
}
|
907
|
+
};
|
908
|
+
|
909
|
+
|
910
|
+
/**
|
911
|
+
* @return {number} The amount to increment/decrement for page up/down as well
|
912
|
+
* as when holding down the mouse button on the background.
|
913
|
+
*/
|
914
|
+
goog.ui.SliderBase.prototype.getBlockIncrement = function() {
|
915
|
+
return this.blockIncrement_;
|
916
|
+
};
|
917
|
+
|
918
|
+
|
919
|
+
/**
|
920
|
+
* Sets the amount to increment/decrement for page up/down as well as when
|
921
|
+
* holding down the mouse button on the background.
|
922
|
+
*
|
923
|
+
* @param {number} value The value to set the block increment to.
|
924
|
+
*/
|
925
|
+
goog.ui.SliderBase.prototype.setBlockIncrement = function(value) {
|
926
|
+
this.blockIncrement_ = value;
|
927
|
+
};
|
928
|
+
|
929
|
+
|
930
|
+
/**
|
931
|
+
* Sets the minimal value that the extent may have.
|
932
|
+
*
|
933
|
+
* @param {number} value The minimal value for the extent.
|
934
|
+
*/
|
935
|
+
goog.ui.SliderBase.prototype.setMinExtent = function(value) {
|
936
|
+
this.minExtent_ = value;
|
937
|
+
};
|
938
|
+
|
939
|
+
|
940
|
+
/**
|
941
|
+
* The amount to increment/decrement for up, down, left and right arrow keys.
|
942
|
+
* @private
|
943
|
+
* @type {number}
|
944
|
+
*/
|
945
|
+
goog.ui.SliderBase.prototype.unitIncrement_ = 1;
|
946
|
+
|
947
|
+
|
948
|
+
/**
|
949
|
+
* @return {number} The amount to increment/decrement for up, down, left and
|
950
|
+
* right arrow keys.
|
951
|
+
*/
|
952
|
+
goog.ui.SliderBase.prototype.getUnitIncrement = function() {
|
953
|
+
return this.unitIncrement_;
|
954
|
+
};
|
955
|
+
|
956
|
+
|
957
|
+
/**
|
958
|
+
* Sets the amount to increment/decrement for up, down, left and right arrow
|
959
|
+
* keys.
|
960
|
+
* @param {number} value The value to set the unit increment to.
|
961
|
+
*/
|
962
|
+
goog.ui.SliderBase.prototype.setUnitIncrement = function(value) {
|
963
|
+
this.unitIncrement_ = value;
|
964
|
+
};
|
965
|
+
|
966
|
+
|
967
|
+
/**
|
968
|
+
* @return {?number} The step value used to determine how to round the value.
|
969
|
+
*/
|
970
|
+
goog.ui.SliderBase.prototype.getStep = function() {
|
971
|
+
return this.rangeModel.getStep();
|
972
|
+
};
|
973
|
+
|
974
|
+
|
975
|
+
/**
|
976
|
+
* Sets the step value. The step value is used to determine how to round the
|
977
|
+
* value.
|
978
|
+
* @param {?number} step The step size.
|
979
|
+
*/
|
980
|
+
goog.ui.SliderBase.prototype.setStep = function(step) {
|
981
|
+
this.rangeModel.setStep(step);
|
982
|
+
};
|
983
|
+
|
984
|
+
|
985
|
+
/**
|
986
|
+
* @return {boolean} Whether clicking on the backgtround should move directly to
|
987
|
+
* that point.
|
988
|
+
*/
|
989
|
+
goog.ui.SliderBase.prototype.getMoveToPointEnabled = function() {
|
990
|
+
return this.moveToPointEnabled_;
|
991
|
+
};
|
992
|
+
|
993
|
+
|
994
|
+
/**
|
995
|
+
* Sets whether clicking on the background should move directly to that point.
|
996
|
+
* @param {boolean} val Whether clicking on the background should move directly
|
997
|
+
* to that point.
|
998
|
+
*/
|
999
|
+
goog.ui.SliderBase.prototype.setMoveToPointEnabled = function(val) {
|
1000
|
+
this.moveToPointEnabled_ = val;
|
1001
|
+
};
|
1002
|
+
|
1003
|
+
|
1004
|
+
/**
|
1005
|
+
* @return {number} The value of the underlying range model.
|
1006
|
+
*/
|
1007
|
+
goog.ui.SliderBase.prototype.getValue = function() {
|
1008
|
+
return this.rangeModel.getValue();
|
1009
|
+
};
|
1010
|
+
|
1011
|
+
|
1012
|
+
/**
|
1013
|
+
* Sets the value of the underlying range model. We enforce that
|
1014
|
+
* getMinimum() <= value <= getMaximum() - getExtent()
|
1015
|
+
* If this is not satisifed for the given value, the call is ignored and no
|
1016
|
+
* CHANGE event fires.
|
1017
|
+
* @param {number} value The value.
|
1018
|
+
*/
|
1019
|
+
goog.ui.SliderBase.prototype.setValue = function(value) {
|
1020
|
+
// Set the position through the thumb method to enforce constraints.
|
1021
|
+
this.setThumbPosition_(this.valueThumb, value);
|
1022
|
+
};
|
1023
|
+
|
1024
|
+
|
1025
|
+
/**
|
1026
|
+
* @return {number} The value of the extent of the underlying range model.
|
1027
|
+
*/
|
1028
|
+
goog.ui.SliderBase.prototype.getExtent = function() {
|
1029
|
+
return this.rangeModel.getExtent();
|
1030
|
+
};
|
1031
|
+
|
1032
|
+
|
1033
|
+
/**
|
1034
|
+
* Sets the extent of the underlying range model. We enforce that
|
1035
|
+
* getMinExtent() <= extent <= getMaximum() - getValue()
|
1036
|
+
* If this is not satisifed for the given extent, the call is ignored and no
|
1037
|
+
* CHANGE event fires.
|
1038
|
+
* @param {number} extent The value to which to set the extent.
|
1039
|
+
*/
|
1040
|
+
goog.ui.SliderBase.prototype.setExtent = function(extent) {
|
1041
|
+
// Set the position through the thumb method to enforce constraints.
|
1042
|
+
this.setThumbPosition_(this.extentThumb, (this.rangeModel.getValue() +
|
1043
|
+
extent));
|
1044
|
+
};
|
1045
|
+
|
1046
|
+
|
1047
|
+
/**
|
1048
|
+
* Change the visibility of the slider.
|
1049
|
+
* You must call this if you had set the slider's value when it was invisible.
|
1050
|
+
* @param {boolean} visible Whether to show the slider.
|
1051
|
+
*/
|
1052
|
+
goog.ui.SliderBase.prototype.setVisible = function(visible) {
|
1053
|
+
goog.style.showElement(this.getElement(), visible);
|
1054
|
+
if (visible) {
|
1055
|
+
this.updateUi_();
|
1056
|
+
}
|
1057
|
+
};
|
1058
|
+
|
1059
|
+
|
1060
|
+
/**
|
1061
|
+
* Set a11y roles and state.
|
1062
|
+
* @protected
|
1063
|
+
*/
|
1064
|
+
goog.ui.SliderBase.prototype.setAriaRoles = function() {
|
1065
|
+
goog.dom.a11y.setRole(this.getElement(), goog.dom.a11y.Role.SLIDER);
|
1066
|
+
this.updateAriaStates();
|
1067
|
+
};
|
1068
|
+
|
1069
|
+
|
1070
|
+
/**
|
1071
|
+
* Set a11y roles and state when values change.
|
1072
|
+
* @protected
|
1073
|
+
*/
|
1074
|
+
goog.ui.SliderBase.prototype.updateAriaStates = function() {
|
1075
|
+
var element = this.getElement();
|
1076
|
+
if (element) {
|
1077
|
+
goog.dom.a11y.setState(element,
|
1078
|
+
goog.dom.a11y.State.VALUEMIN,
|
1079
|
+
this.getMinimum());
|
1080
|
+
goog.dom.a11y.setState(element,
|
1081
|
+
goog.dom.a11y.State.VALUEMAX,
|
1082
|
+
this.getMaximum());
|
1083
|
+
goog.dom.a11y.setState(element,
|
1084
|
+
goog.dom.a11y.State.VALUENOW,
|
1085
|
+
this.getValue());
|
1086
|
+
}
|
1087
|
+
};
|