├── .gitignore ├── .gitmodules ├── .npmignore ├── README.md ├── definition-generator ├── index │ ├── doctrine.d.ts │ ├── escodegen.d.ts │ ├── esprima.d.ts │ ├── findclosure.sh │ ├── jasmine.d.ts │ ├── mkdirp.d.ts │ └── references.ts ├── src │ ├── .gitignore │ ├── cli.js │ ├── combine.ts │ ├── finder.ts │ ├── generate.ts │ ├── main.ts │ ├── options.ts │ ├── page.ts │ ├── parser.ts │ └── pretty_print.ts └── test │ └── generate_spec.ts ├── externs-generator ├── index │ └── typescript-services.d.ts ├── src │ ├── .gitignore │ ├── cli.js │ ├── main.ts │ └── typescript_services.js └── test │ └── example.ts ├── index.html ├── index └── closure-library │ ├── _references.ts │ ├── alltests.d.ts │ ├── closure │ └── goog │ │ ├── a11y │ │ └── aria │ │ │ ├── announcer.d.ts │ │ │ ├── aria.d.ts │ │ │ ├── attributes.d.ts │ │ │ ├── datatables.d.ts │ │ │ └── roles.d.ts │ │ ├── array │ │ └── array.d.ts │ │ ├── asserts │ │ └── asserts.d.ts │ │ ├── async │ │ ├── animationdelay.d.ts │ │ ├── conditionaldelay.d.ts │ │ ├── delay.d.ts │ │ ├── nexttick.d.ts │ │ ├── run.d.ts │ │ └── throttle.d.ts │ │ ├── base.d.ts │ │ ├── bootstrap │ │ ├── nodejs.d.ts │ │ └── webworkers.d.ts │ │ ├── color │ │ ├── alpha.d.ts │ │ ├── color.d.ts │ │ └── names.d.ts │ │ ├── crypt │ │ ├── aes.d.ts │ │ ├── arc4.d.ts │ │ ├── base64.d.ts │ │ ├── basen.d.ts │ │ ├── blobhasher.d.ts │ │ ├── blockcipher.d.ts │ │ ├── cbc.d.ts │ │ ├── crypt.d.ts │ │ ├── hash.d.ts │ │ ├── hash32.d.ts │ │ ├── hashtester.d.ts │ │ ├── hmac.d.ts │ │ ├── md5.d.ts │ │ ├── pbkdf2.d.ts │ │ ├── sha1.d.ts │ │ ├── sha2.d.ts │ │ ├── sha224.d.ts │ │ ├── sha256.d.ts │ │ ├── sha2_64bit.d.ts │ │ ├── sha384.d.ts │ │ ├── sha512.d.ts │ │ └── sha512_256.d.ts │ │ ├── cssom │ │ ├── cssom.d.ts │ │ └── iframe │ │ │ └── style.d.ts │ │ ├── datasource │ │ ├── datamanager.d.ts │ │ ├── datasource.d.ts │ │ ├── expr.d.ts │ │ ├── fastdatanode.d.ts │ │ ├── jsdatasource.d.ts │ │ ├── jsondatasource.d.ts │ │ ├── jsxmlhttpdatasource.d.ts │ │ └── xmldatasource.d.ts │ │ ├── date │ │ ├── date.d.ts │ │ ├── datelike.d.ts │ │ ├── daterange.d.ts │ │ ├── duration.d.ts │ │ ├── relative.d.ts │ │ ├── relativewithplurals.d.ts │ │ └── utcdatetime.d.ts │ │ ├── db │ │ ├── cursor.d.ts │ │ ├── db.d.ts │ │ ├── error.d.ts │ │ ├── index.d.ts │ │ ├── indexeddb.d.ts │ │ ├── keyrange.d.ts │ │ ├── objectstore.d.ts │ │ └── transaction.d.ts │ │ ├── debug │ │ ├── console.d.ts │ │ ├── debug.d.ts │ │ ├── debugwindow.d.ts │ │ ├── devcss │ │ │ ├── devcss.d.ts │ │ │ └── devcssrunner.d.ts │ │ ├── divconsole.d.ts │ │ ├── entrypointregistry.d.ts │ │ ├── error.d.ts │ │ ├── errorhandler.d.ts │ │ ├── errorhandlerweakdep.d.ts │ │ ├── errorreporter.d.ts │ │ ├── fancywindow.d.ts │ │ ├── formatter.d.ts │ │ ├── fpsdisplay.d.ts │ │ ├── gcdiagnostics.d.ts │ │ ├── logbuffer.d.ts │ │ ├── logger.d.ts │ │ ├── logrecord.d.ts │ │ ├── logrecordserializer.d.ts │ │ ├── reflect.d.ts │ │ ├── relativetimeprovider.d.ts │ │ └── tracer.d.ts │ │ ├── demos │ │ ├── autocompleteremotedata.d.ts │ │ ├── autocompleterichremotedata.d.ts │ │ ├── editor │ │ │ ├── deps.d.ts │ │ │ ├── equationeditor.d.ts │ │ │ ├── helloworld.d.ts │ │ │ ├── helloworlddialog.d.ts │ │ │ └── helloworlddialogplugin.d.ts │ │ ├── graphics │ │ │ └── tigerdata.d.ts │ │ ├── samplecomponent.d.ts │ │ └── xpc │ │ │ └── xpcdemo.d.ts │ │ ├── deps.d.ts │ │ ├── disposable │ │ ├── disposable.d.ts │ │ └── idisposable.d.ts │ │ ├── dom │ │ ├── abstractmultirange.d.ts │ │ ├── abstractrange.d.ts │ │ ├── animationframe │ │ │ ├── animationframe.d.ts │ │ │ └── polyfill.d.ts │ │ ├── annotate.d.ts │ │ ├── browserfeature.d.ts │ │ ├── browserrange │ │ │ ├── abstractrange.d.ts │ │ │ ├── browserrange.d.ts │ │ │ ├── geckorange.d.ts │ │ │ ├── ierange.d.ts │ │ │ ├── operarange.d.ts │ │ │ ├── w3crange.d.ts │ │ │ └── webkitrange.d.ts │ │ ├── bufferedviewportsizemonitor.d.ts │ │ ├── classes.d.ts │ │ ├── classlist.d.ts │ │ ├── controlrange.d.ts │ │ ├── dataset.d.ts │ │ ├── dom.d.ts │ │ ├── fontsizemonitor.d.ts │ │ ├── forms.d.ts │ │ ├── fullscreen.d.ts │ │ ├── iframe.d.ts │ │ ├── iter.d.ts │ │ ├── multirange.d.ts │ │ ├── nodeiterator.d.ts │ │ ├── nodeoffset.d.ts │ │ ├── nodetype.d.ts │ │ ├── pattern │ │ │ ├── abstractpattern.d.ts │ │ │ ├── allchildren.d.ts │ │ │ ├── callback │ │ │ │ ├── callback.d.ts │ │ │ │ ├── counter.d.ts │ │ │ │ └── test.d.ts │ │ │ ├── childmatches.d.ts │ │ │ ├── endtag.d.ts │ │ │ ├── fulltag.d.ts │ │ │ ├── matcher.d.ts │ │ │ ├── nodetype.d.ts │ │ │ ├── pattern.d.ts │ │ │ ├── repeat.d.ts │ │ │ ├── sequence.d.ts │ │ │ ├── starttag.d.ts │ │ │ ├── tag.d.ts │ │ │ └── text.d.ts │ │ ├── range.d.ts │ │ ├── rangeendpoint.d.ts │ │ ├── safe.d.ts │ │ ├── savedcaretrange.d.ts │ │ ├── savedrange.d.ts │ │ ├── selection.d.ts │ │ ├── tagiterator.d.ts │ │ ├── tagname.d.ts │ │ ├── tags.d.ts │ │ ├── textrange.d.ts │ │ ├── textrangeiterator.d.ts │ │ ├── vendor.d.ts │ │ ├── viewportsizemonitor.d.ts │ │ └── xml.d.ts │ │ ├── editor │ │ ├── browserfeature.d.ts │ │ ├── clicktoeditwrapper.d.ts │ │ ├── command.d.ts │ │ ├── contenteditablefield.d.ts │ │ ├── defines.d.ts │ │ ├── field.d.ts │ │ ├── focus.d.ts │ │ ├── icontent.d.ts │ │ ├── link.d.ts │ │ ├── node.d.ts │ │ ├── plugin.d.ts │ │ ├── plugins │ │ │ ├── abstractbubbleplugin.d.ts │ │ │ ├── abstractdialogplugin.d.ts │ │ │ ├── abstracttabhandler.d.ts │ │ │ ├── basictextformatter.d.ts │ │ │ ├── blockquote.d.ts │ │ │ ├── emoticons.d.ts │ │ │ ├── enterhandler.d.ts │ │ │ ├── equationeditorbubble.d.ts │ │ │ ├── equationeditorplugin.d.ts │ │ │ ├── firststrong.d.ts │ │ │ ├── headerformatter.d.ts │ │ │ ├── linkbubble.d.ts │ │ │ ├── linkdialogplugin.d.ts │ │ │ ├── linkshortcutplugin.d.ts │ │ │ ├── listtabhandler.d.ts │ │ │ ├── loremipsum.d.ts │ │ │ ├── removeformatting.d.ts │ │ │ ├── spacestabhandler.d.ts │ │ │ ├── tableeditor.d.ts │ │ │ ├── tagonenterhandler.d.ts │ │ │ ├── undoredo.d.ts │ │ │ ├── undoredomanager.d.ts │ │ │ └── undoredostate.d.ts │ │ ├── range.d.ts │ │ ├── seamlessfield.d.ts │ │ ├── style.d.ts │ │ └── table.d.ts │ │ ├── events │ │ ├── actioneventwrapper.d.ts │ │ ├── actionhandler.d.ts │ │ ├── browserevent.d.ts │ │ ├── browserfeature.d.ts │ │ ├── event.d.ts │ │ ├── eventhandler.d.ts │ │ ├── eventid.d.ts │ │ ├── events.d.ts │ │ ├── eventtarget.d.ts │ │ ├── eventtargettester.d.ts │ │ ├── eventtype.d.ts │ │ ├── eventwrapper.d.ts │ │ ├── filedrophandler.d.ts │ │ ├── focushandler.d.ts │ │ ├── imehandler.d.ts │ │ ├── inputhandler.d.ts │ │ ├── keycodes.d.ts │ │ ├── keyhandler.d.ts │ │ ├── keynames.d.ts │ │ ├── listenable.d.ts │ │ ├── listener.d.ts │ │ ├── listenermap.d.ts │ │ ├── mousewheelhandler.d.ts │ │ ├── onlinehandler.d.ts │ │ └── pastehandler.d.ts │ │ ├── format │ │ ├── emailaddress.d.ts │ │ ├── format.d.ts │ │ ├── htmlprettyprinter.d.ts │ │ └── jsonprettyprinter.d.ts │ │ ├── fs │ │ ├── entry.d.ts │ │ ├── entryimpl.d.ts │ │ ├── error.d.ts │ │ ├── filereader.d.ts │ │ ├── filesaver.d.ts │ │ ├── filesystem.d.ts │ │ ├── filesystemimpl.d.ts │ │ ├── filewriter.d.ts │ │ ├── fs.d.ts │ │ └── progressevent.d.ts │ │ ├── functions │ │ └── functions.d.ts │ │ ├── fx │ │ ├── abstractdragdrop.d.ts │ │ ├── anim │ │ │ └── anim.d.ts │ │ ├── animation.d.ts │ │ ├── animationqueue.d.ts │ │ ├── css3 │ │ │ ├── fx.d.ts │ │ │ └── transition.d.ts │ │ ├── cssspriteanimation.d.ts │ │ ├── dom.d.ts │ │ ├── dragdrop.d.ts │ │ ├── dragdropgroup.d.ts │ │ ├── dragger.d.ts │ │ ├── draglistgroup.d.ts │ │ ├── dragscrollsupport.d.ts │ │ ├── easing.d.ts │ │ ├── fx.d.ts │ │ ├── transition.d.ts │ │ └── transitionbase.d.ts │ │ ├── graphics │ │ ├── abstractgraphics.d.ts │ │ ├── affinetransform.d.ts │ │ ├── canvaselement.d.ts │ │ ├── canvasgraphics.d.ts │ │ ├── element.d.ts │ │ ├── ellipseelement.d.ts │ │ ├── ext │ │ │ ├── coordinates.d.ts │ │ │ ├── element.d.ts │ │ │ ├── ellipse.d.ts │ │ │ ├── ext.d.ts │ │ │ ├── graphics.d.ts │ │ │ ├── group.d.ts │ │ │ ├── image.d.ts │ │ │ ├── path.d.ts │ │ │ ├── rectangle.d.ts │ │ │ ├── shape.d.ts │ │ │ └── strokeandfillelement.d.ts │ │ ├── fill.d.ts │ │ ├── font.d.ts │ │ ├── graphics.d.ts │ │ ├── groupelement.d.ts │ │ ├── imageelement.d.ts │ │ ├── lineargradient.d.ts │ │ ├── path.d.ts │ │ ├── pathelement.d.ts │ │ ├── paths.d.ts │ │ ├── rectelement.d.ts │ │ ├── solidfill.d.ts │ │ ├── stroke.d.ts │ │ ├── strokeandfillelement.d.ts │ │ ├── svgelement.d.ts │ │ ├── svggraphics.d.ts │ │ ├── textelement.d.ts │ │ ├── vmlelement.d.ts │ │ └── vmlgraphics.d.ts │ │ ├── history │ │ ├── event.d.ts │ │ ├── eventtype.d.ts │ │ ├── history.d.ts │ │ └── html5history.d.ts │ │ ├── html │ │ ├── legacyconversions.d.ts │ │ ├── safehtml.d.ts │ │ ├── safestyle.d.ts │ │ ├── safeurl.d.ts │ │ ├── testing.d.ts │ │ ├── trustedresourceurl.d.ts │ │ ├── uncheckedconversions.d.ts │ │ └── utils.d.ts │ │ ├── i18n │ │ ├── bidi.d.ts │ │ ├── bidiformatter.d.ts │ │ ├── charlistdecompressor.d.ts │ │ ├── charpickerdata.d.ts │ │ ├── collation.d.ts │ │ ├── compactnumberformatsymbols.d.ts │ │ ├── compactnumberformatsymbols_ext.d.ts │ │ ├── currency.d.ts │ │ ├── currencycodemap.d.ts │ │ ├── datetimeformat.d.ts │ │ ├── datetimeparse.d.ts │ │ ├── datetimepatterns.d.ts │ │ ├── datetimepatternsext.d.ts │ │ ├── datetimesymbols.d.ts │ │ ├── datetimesymbolsext.d.ts │ │ ├── graphemebreak.d.ts │ │ ├── messageformat.d.ts │ │ ├── mime.d.ts │ │ ├── numberformat.d.ts │ │ ├── numberformatsymbols.d.ts │ │ ├── numberformatsymbolsext.d.ts │ │ ├── ordinalrules.d.ts │ │ ├── pluralrules.d.ts │ │ ├── timezone.d.ts │ │ ├── uchar.d.ts │ │ └── uchar │ │ │ ├── localnamefetcher.d.ts │ │ │ ├── namefetcher.d.ts │ │ │ └── remotenamefetcher.d.ts │ │ ├── iter │ │ └── iter.d.ts │ │ ├── json │ │ ├── evaljsonprocessor.d.ts │ │ ├── hybrid.d.ts │ │ ├── hybridjsonprocessor.d.ts │ │ ├── json.d.ts │ │ ├── nativejsonprocessor.d.ts │ │ └── processor.d.ts │ │ ├── labs │ │ ├── classdef │ │ │ └── classdef.d.ts │ │ ├── dom │ │ │ └── pagevisibilitymonitor.d.ts │ │ ├── events │ │ │ ├── nondisposableeventtarget.d.ts │ │ │ └── touch.d.ts │ │ ├── format │ │ │ └── csv.d.ts │ │ ├── html │ │ │ ├── attribute_rewriter.d.ts │ │ │ ├── sanitizer.d.ts │ │ │ └── scrubber.d.ts │ │ ├── i18n │ │ │ ├── listformat.d.ts │ │ │ ├── listsymbols.d.ts │ │ │ └── listsymbolsext.d.ts │ │ ├── mock │ │ │ └── mock.d.ts │ │ ├── net │ │ │ ├── image.d.ts │ │ │ ├── webchannel.d.ts │ │ │ ├── webchannel │ │ │ │ ├── basetestchannel.d.ts │ │ │ │ ├── channel.d.ts │ │ │ │ ├── channelrequest.d.ts │ │ │ │ ├── connectionstate.d.ts │ │ │ │ ├── forwardchannelrequestpool.d.ts │ │ │ │ ├── netutils.d.ts │ │ │ │ ├── requeststats.d.ts │ │ │ │ ├── webchannelbase.d.ts │ │ │ │ ├── webchannelbasetransport.d.ts │ │ │ │ ├── webchanneldebug.d.ts │ │ │ │ ├── wire.d.ts │ │ │ │ └── wirev8.d.ts │ │ │ ├── webchanneltransport.d.ts │ │ │ ├── webchanneltransportfactory.d.ts │ │ │ └── xhr.d.ts │ │ ├── object │ │ │ └── object.d.ts │ │ ├── promise │ │ │ └── promise.d.ts │ │ ├── storage │ │ │ └── boundedcollectablestorage.d.ts │ │ ├── structs │ │ │ ├── map.d.ts │ │ │ └── multimap.d.ts │ │ ├── style │ │ │ └── pixeldensitymonitor.d.ts │ │ ├── testing │ │ │ ├── assertthat.d.ts │ │ │ ├── decoratormatcher.d.ts │ │ │ ├── dictionarymatcher.d.ts │ │ │ ├── logicmatcher.d.ts │ │ │ ├── matcher.d.ts │ │ │ ├── numbermatcher.d.ts │ │ │ ├── objectmatcher.d.ts │ │ │ └── stringmatcher.d.ts │ │ └── useragent │ │ │ ├── browser.d.ts │ │ │ ├── device.d.ts │ │ │ ├── engine.d.ts │ │ │ ├── platform.d.ts │ │ │ ├── test_agents.d.ts │ │ │ └── util.d.ts │ │ ├── locale │ │ ├── countries.d.ts │ │ ├── defaultlocalenameconstants.d.ts │ │ ├── genericfontnames.d.ts │ │ ├── genericfontnamesdata.d.ts │ │ ├── locale.d.ts │ │ ├── nativenameconstants.d.ts │ │ ├── scriptToLanguages.d.ts │ │ ├── timezonedetection.d.ts │ │ ├── timezonefingerprint.d.ts │ │ └── timezonelist.d.ts │ │ ├── log │ │ └── log.d.ts │ │ ├── math │ │ ├── affinetransform.d.ts │ │ ├── bezier.d.ts │ │ ├── box.d.ts │ │ ├── coordinate.d.ts │ │ ├── coordinate3.d.ts │ │ ├── exponentialbackoff.d.ts │ │ ├── integer.d.ts │ │ ├── interpolator │ │ │ ├── interpolator1.d.ts │ │ │ ├── linear1.d.ts │ │ │ ├── pchip1.d.ts │ │ │ └── spline1.d.ts │ │ ├── line.d.ts │ │ ├── long.d.ts │ │ ├── math.d.ts │ │ ├── matrix.d.ts │ │ ├── path.d.ts │ │ ├── paths.d.ts │ │ ├── range.d.ts │ │ ├── rangeset.d.ts │ │ ├── rect.d.ts │ │ ├── size.d.ts │ │ ├── tdma.d.ts │ │ ├── vec2.d.ts │ │ └── vec3.d.ts │ │ ├── memoize │ │ └── memoize.d.ts │ │ ├── messaging │ │ ├── abstractchannel.d.ts │ │ ├── bufferedchannel.d.ts │ │ ├── deferredchannel.d.ts │ │ ├── loggerclient.d.ts │ │ ├── loggerserver.d.ts │ │ ├── messagechannel.d.ts │ │ ├── messaging.d.ts │ │ ├── multichannel.d.ts │ │ ├── portcaller.d.ts │ │ ├── portchannel.d.ts │ │ ├── portnetwork.d.ts │ │ ├── portoperator.d.ts │ │ └── respondingchannel.d.ts │ │ ├── module │ │ ├── abstractmoduleloader.d.ts │ │ ├── basemodule.d.ts │ │ ├── loader.d.ts │ │ ├── module.d.ts │ │ ├── moduleinfo.d.ts │ │ ├── moduleloadcallback.d.ts │ │ ├── moduleloader.d.ts │ │ └── modulemanager.d.ts │ │ ├── net │ │ ├── browserchannel.d.ts │ │ ├── browsertestchannel.d.ts │ │ ├── bulkloader.d.ts │ │ ├── bulkloaderhelper.d.ts │ │ ├── channeldebug.d.ts │ │ ├── channelrequest.d.ts │ │ ├── cookies.d.ts │ │ ├── corsxmlhttpfactory.d.ts │ │ ├── crossdomainrpc.d.ts │ │ ├── errorcode.d.ts │ │ ├── eventtype.d.ts │ │ ├── filedownloader.d.ts │ │ ├── httpstatus.d.ts │ │ ├── iframeio.d.ts │ │ ├── iframeloadmonitor.d.ts │ │ ├── imageloader.d.ts │ │ ├── ipaddress.d.ts │ │ ├── jsloader.d.ts │ │ ├── jsonp.d.ts │ │ ├── mockiframeio.d.ts │ │ ├── multiiframeloadmonitor.d.ts │ │ ├── networkstatusmonitor.d.ts │ │ ├── networktester.d.ts │ │ ├── tmpnetwork.d.ts │ │ ├── websocket.d.ts │ │ ├── wrapperxmlhttpfactory.d.ts │ │ ├── xhrio.d.ts │ │ ├── xhriopool.d.ts │ │ ├── xhrlike.d.ts │ │ ├── xhrmanager.d.ts │ │ ├── xmlhttp.d.ts │ │ ├── xmlhttpfactory.d.ts │ │ └── xpc │ │ │ ├── crosspagechannel.d.ts │ │ │ ├── crosspagechannelrole.d.ts │ │ │ ├── directtransport.d.ts │ │ │ ├── frameelementmethodtransport.d.ts │ │ │ ├── iframepollingtransport.d.ts │ │ │ ├── iframerelaytransport.d.ts │ │ │ ├── nativemessagingtransport.d.ts │ │ │ ├── nixtransport.d.ts │ │ │ ├── relay.d.ts │ │ │ ├── transport.d.ts │ │ │ └── xpc.d.ts │ │ ├── object │ │ └── object.d.ts │ │ ├── positioning │ │ ├── absoluteposition.d.ts │ │ ├── abstractposition.d.ts │ │ ├── anchoredposition.d.ts │ │ ├── anchoredviewportposition.d.ts │ │ ├── clientposition.d.ts │ │ ├── menuanchoredposition.d.ts │ │ ├── positioning.d.ts │ │ ├── viewportclientposition.d.ts │ │ └── viewportposition.d.ts │ │ ├── promise │ │ ├── promise.d.ts │ │ ├── resolver.d.ts │ │ ├── testsuiteadapter.d.ts │ │ └── thenable.d.ts │ │ ├── proto │ │ ├── proto.d.ts │ │ └── serializer.d.ts │ │ ├── proto2 │ │ ├── descriptor.d.ts │ │ ├── fielddescriptor.d.ts │ │ ├── lazydeserializer.d.ts │ │ ├── message.d.ts │ │ ├── objectserializer.d.ts │ │ ├── package_test.pb.d.ts │ │ ├── pbliteserializer.d.ts │ │ ├── serializer.d.ts │ │ ├── test.pb.d.ts │ │ ├── textformatserializer.d.ts │ │ └── util.d.ts │ │ ├── pubsub │ │ ├── pubsub.d.ts │ │ ├── topicid.d.ts │ │ └── typedpubsub.d.ts │ │ ├── reflect │ │ └── reflect.d.ts │ │ ├── result │ │ ├── deferredadaptor.d.ts │ │ ├── dependentresult.d.ts │ │ ├── result_interface.d.ts │ │ ├── resultutil.d.ts │ │ └── simpleresult.d.ts │ │ ├── soy │ │ ├── data.d.ts │ │ ├── renderer.d.ts │ │ ├── soy.d.ts │ │ └── soy_testhelper.d.ts │ │ ├── spell │ │ └── spellcheck.d.ts │ │ ├── stats │ │ └── basicstat.d.ts │ │ ├── storage │ │ ├── collectablestorage.d.ts │ │ ├── collectablestoragetester.d.ts │ │ ├── encryptedstorage.d.ts │ │ ├── errorcode.d.ts │ │ ├── expiringstorage.d.ts │ │ ├── mechanism │ │ │ ├── errorcode.d.ts │ │ │ ├── errorhandlingmechanism.d.ts │ │ │ ├── html5localstorage.d.ts │ │ │ ├── html5sessionstorage.d.ts │ │ │ ├── html5webstorage.d.ts │ │ │ ├── ieuserdata.d.ts │ │ │ ├── iterablemechanism.d.ts │ │ │ ├── iterablemechanismtester.d.ts │ │ │ ├── mechanism.d.ts │ │ │ ├── mechanismfactory.d.ts │ │ │ ├── mechanismseparationtester.d.ts │ │ │ ├── mechanismsharingtester.d.ts │ │ │ ├── mechanismtester.d.ts │ │ │ └── prefixedmechanism.d.ts │ │ ├── richstorage.d.ts │ │ └── storage.d.ts │ │ ├── string │ │ ├── const.d.ts │ │ ├── linkify.d.ts │ │ ├── newlines.d.ts │ │ ├── parser.d.ts │ │ ├── path.d.ts │ │ ├── string.d.ts │ │ ├── stringbuffer.d.ts │ │ ├── stringformat.d.ts │ │ ├── stringifier.d.ts │ │ └── typedstring.d.ts │ │ ├── structs │ │ ├── avltree.d.ts │ │ ├── circularbuffer.d.ts │ │ ├── collection.d.ts │ │ ├── heap.d.ts │ │ ├── inversionmap.d.ts │ │ ├── linkedmap.d.ts │ │ ├── map.d.ts │ │ ├── node.d.ts │ │ ├── pool.d.ts │ │ ├── prioritypool.d.ts │ │ ├── priorityqueue.d.ts │ │ ├── quadtree.d.ts │ │ ├── queue.d.ts │ │ ├── set.d.ts │ │ ├── simplepool.d.ts │ │ ├── stringset.d.ts │ │ ├── structs.d.ts │ │ ├── treenode.d.ts │ │ └── trie.d.ts │ │ ├── style │ │ ├── bidi.d.ts │ │ ├── cursor.d.ts │ │ ├── style.d.ts │ │ ├── stylescrollbartester.d.ts │ │ ├── transform.d.ts │ │ └── transition.d.ts │ │ ├── testing │ │ ├── asserts.d.ts │ │ ├── async │ │ │ └── mockcontrol.d.ts │ │ ├── asynctestcase.d.ts │ │ ├── benchmark.d.ts │ │ ├── continuationtestcase.d.ts │ │ ├── deferredtestcase.d.ts │ │ ├── dom.d.ts │ │ ├── editor │ │ │ ├── dom.d.ts │ │ │ ├── fieldmock.d.ts │ │ │ └── testhelper.d.ts │ │ ├── events │ │ │ ├── eventobserver.d.ts │ │ │ ├── events.d.ts │ │ │ ├── matchers.d.ts │ │ │ └── onlinehandler.d.ts │ │ ├── expectedfailures.d.ts │ │ ├── fs │ │ │ ├── blob.d.ts │ │ │ ├── entry.d.ts │ │ │ ├── file.d.ts │ │ │ ├── filereader.d.ts │ │ │ ├── filesystem.d.ts │ │ │ ├── filewriter.d.ts │ │ │ ├── fs.d.ts │ │ │ └── progressevent.d.ts │ │ ├── functionmock.d.ts │ │ ├── graphics.d.ts │ │ ├── i18n │ │ │ └── asserts.d.ts │ │ ├── jsunit.d.ts │ │ ├── loosemock.d.ts │ │ ├── messaging │ │ │ ├── mockmessagechannel.d.ts │ │ │ ├── mockmessageevent.d.ts │ │ │ ├── mockmessageport.d.ts │ │ │ └── mockportnetwork.d.ts │ │ ├── mock.d.ts │ │ ├── mockclassfactory.d.ts │ │ ├── mockclock.d.ts │ │ ├── mockcontrol.d.ts │ │ ├── mockinterface.d.ts │ │ ├── mockmatchers.d.ts │ │ ├── mockrandom.d.ts │ │ ├── mockrange.d.ts │ │ ├── mockstorage.d.ts │ │ ├── mockuseragent.d.ts │ │ ├── multitestrunner.d.ts │ │ ├── net │ │ │ ├── xhrio.d.ts │ │ │ └── xhriopool.d.ts │ │ ├── objectpropertystring.d.ts │ │ ├── performancetable.d.ts │ │ ├── performancetimer.d.ts │ │ ├── propertyreplacer.d.ts │ │ ├── proto2 │ │ │ └── proto2.d.ts │ │ ├── pseudorandom.d.ts │ │ ├── recordfunction.d.ts │ │ ├── shardingtestcase.d.ts │ │ ├── singleton.d.ts │ │ ├── stacktrace.d.ts │ │ ├── storage │ │ │ └── fakemechanism.d.ts │ │ ├── strictmock.d.ts │ │ ├── style │ │ │ ├── layoutasserts.d.ts │ │ │ └── style.d.ts │ │ ├── testcase.d.ts │ │ ├── testqueue.d.ts │ │ ├── testrunner.d.ts │ │ ├── ui │ │ │ ├── rendererasserts.d.ts │ │ │ ├── rendererharness.d.ts │ │ │ └── style.d.ts │ │ └── watchers.d.ts │ │ ├── timer │ │ └── timer.d.ts │ │ ├── tweak │ │ ├── entries.d.ts │ │ ├── registry.d.ts │ │ ├── testhelpers.d.ts │ │ ├── tweak.d.ts │ │ └── tweakui.d.ts │ │ ├── ui │ │ ├── abstractspellchecker.d.ts │ │ ├── ac │ │ │ ├── ac.d.ts │ │ │ ├── arraymatcher.d.ts │ │ │ ├── autocomplete.d.ts │ │ │ ├── cachingmatcher.d.ts │ │ │ ├── inputhandler.d.ts │ │ │ ├── remote.d.ts │ │ │ ├── remotearraymatcher.d.ts │ │ │ ├── renderer.d.ts │ │ │ ├── renderoptions.d.ts │ │ │ ├── richinputhandler.d.ts │ │ │ ├── richremote.d.ts │ │ │ └── richremotearraymatcher.d.ts │ │ ├── activitymonitor.d.ts │ │ ├── advancedtooltip.d.ts │ │ ├── animatedzippy.d.ts │ │ ├── attachablemenu.d.ts │ │ ├── bidiinput.d.ts │ │ ├── bubble.d.ts │ │ ├── button.d.ts │ │ ├── buttonrenderer.d.ts │ │ ├── buttonside.d.ts │ │ ├── charcounter.d.ts │ │ ├── charpicker.d.ts │ │ ├── checkbox.d.ts │ │ ├── checkboxmenuitem.d.ts │ │ ├── checkboxrenderer.d.ts │ │ ├── colorbutton.d.ts │ │ ├── colorbuttonrenderer.d.ts │ │ ├── colormenubutton.d.ts │ │ ├── colormenubuttonrenderer.d.ts │ │ ├── colorpalette.d.ts │ │ ├── colorpicker.d.ts │ │ ├── colorsplitbehavior.d.ts │ │ ├── combobox.d.ts │ │ ├── component.d.ts │ │ ├── container.d.ts │ │ ├── containerrenderer.d.ts │ │ ├── containerscroller.d.ts │ │ ├── control.d.ts │ │ ├── controlcontent.d.ts │ │ ├── controlrenderer.d.ts │ │ ├── cookieeditor.d.ts │ │ ├── css3buttonrenderer.d.ts │ │ ├── css3menubuttonrenderer.d.ts │ │ ├── cssnames.d.ts │ │ ├── custombutton.d.ts │ │ ├── custombuttonrenderer.d.ts │ │ ├── customcolorpalette.d.ts │ │ ├── datepicker.d.ts │ │ ├── datepickerrenderer.d.ts │ │ ├── decorate.d.ts │ │ ├── defaultdatepickerrenderer.d.ts │ │ ├── dialog.d.ts │ │ ├── dimensionpicker.d.ts │ │ ├── dimensionpickerrenderer.d.ts │ │ ├── dragdropdetector.d.ts │ │ ├── drilldownrow.d.ts │ │ ├── editor │ │ │ ├── abstractdialog.d.ts │ │ │ ├── bubble.d.ts │ │ │ ├── defaulttoolbar.d.ts │ │ │ ├── equationeditordialog.d.ts │ │ │ ├── equationeditorokevent.d.ts │ │ │ ├── linkdialog.d.ts │ │ │ ├── messages.d.ts │ │ │ ├── tabpane.d.ts │ │ │ ├── toolbarcontroller.d.ts │ │ │ └── toolbarfactory.d.ts │ │ ├── emoji │ │ │ ├── emoji.d.ts │ │ │ ├── emojipalette.d.ts │ │ │ ├── emojipaletterenderer.d.ts │ │ │ ├── emojipicker.d.ts │ │ │ ├── popupemojipicker.d.ts │ │ │ ├── progressiveemojipaletterenderer.d.ts │ │ │ └── spriteinfo.d.ts │ │ ├── equation │ │ │ ├── arrowpalette.d.ts │ │ │ ├── changeevent.d.ts │ │ │ ├── comparisonpalette.d.ts │ │ │ ├── editorpane.d.ts │ │ │ ├── equationeditor.d.ts │ │ │ ├── equationeditordialog.d.ts │ │ │ ├── greekpalette.d.ts │ │ │ ├── imagerenderer.d.ts │ │ │ ├── mathpalette.d.ts │ │ │ ├── menupalette.d.ts │ │ │ ├── palette.d.ts │ │ │ ├── palettemanager.d.ts │ │ │ ├── symbolpalette.d.ts │ │ │ ├── texeditor.d.ts │ │ │ └── texpane.d.ts │ │ ├── filteredmenu.d.ts │ │ ├── filterobservingmenuitem.d.ts │ │ ├── filterobservingmenuitemrenderer.d.ts │ │ ├── flatbuttonrenderer.d.ts │ │ ├── flatmenubuttonrenderer.d.ts │ │ ├── formpost.d.ts │ │ ├── gauge.d.ts │ │ ├── gaugetheme.d.ts │ │ ├── hovercard.d.ts │ │ ├── hsvapalette.d.ts │ │ ├── hsvpalette.d.ts │ │ ├── idgenerator.d.ts │ │ ├── idletimer.d.ts │ │ ├── iframemask.d.ts │ │ ├── imagelessbuttonrenderer.d.ts │ │ ├── imagelessmenubuttonrenderer.d.ts │ │ ├── inputdatepicker.d.ts │ │ ├── itemevent.d.ts │ │ ├── keyboardshortcuthandler.d.ts │ │ ├── labelinput.d.ts │ │ ├── linkbuttonrenderer.d.ts │ │ ├── media │ │ │ ├── flashobject.d.ts │ │ │ ├── flickr.d.ts │ │ │ ├── googlevideo.d.ts │ │ │ ├── media.d.ts │ │ │ ├── mediamodel.d.ts │ │ │ ├── mp3.d.ts │ │ │ ├── photo.d.ts │ │ │ ├── picasa.d.ts │ │ │ ├── vimeo.d.ts │ │ │ └── youtube.d.ts │ │ ├── menu.d.ts │ │ ├── menubar.d.ts │ │ ├── menubardecorator.d.ts │ │ ├── menubarrenderer.d.ts │ │ ├── menubase.d.ts │ │ ├── menubutton.d.ts │ │ ├── menubuttonrenderer.d.ts │ │ ├── menuheader.d.ts │ │ ├── menuheaderrenderer.d.ts │ │ ├── menuitem.d.ts │ │ ├── menuitemrenderer.d.ts │ │ ├── menurenderer.d.ts │ │ ├── menuseparator.d.ts │ │ ├── menuseparatorrenderer.d.ts │ │ ├── mockactivitymonitor.d.ts │ │ ├── modalpopup.d.ts │ │ ├── nativebuttonrenderer.d.ts │ │ ├── option.d.ts │ │ ├── palette.d.ts │ │ ├── paletterenderer.d.ts │ │ ├── plaintextspellchecker.d.ts │ │ ├── popup.d.ts │ │ ├── popupbase.d.ts │ │ ├── popupcolorpicker.d.ts │ │ ├── popupdatepicker.d.ts │ │ ├── popupmenu.d.ts │ │ ├── progressbar.d.ts │ │ ├── prompt.d.ts │ │ ├── rangemodel.d.ts │ │ ├── ratings.d.ts │ │ ├── registry.d.ts │ │ ├── richtextspellchecker.d.ts │ │ ├── roundedpanel.d.ts │ │ ├── roundedtabrenderer.d.ts │ │ ├── scrollfloater.d.ts │ │ ├── select.d.ts │ │ ├── selectionmenubutton.d.ts │ │ ├── selectionmodel.d.ts │ │ ├── separator.d.ts │ │ ├── serverchart.d.ts │ │ ├── slider.d.ts │ │ ├── sliderbase.d.ts │ │ ├── splitbehavior.d.ts │ │ ├── splitpane.d.ts │ │ ├── style │ │ │ └── app │ │ │ │ ├── buttonrenderer.d.ts │ │ │ │ ├── menubuttonrenderer.d.ts │ │ │ │ └── primaryactionbuttonrenderer.d.ts │ │ ├── submenu.d.ts │ │ ├── submenurenderer.d.ts │ │ ├── tab.d.ts │ │ ├── tabbar.d.ts │ │ ├── tabbarrenderer.d.ts │ │ ├── tablesorter.d.ts │ │ ├── tabpane.d.ts │ │ ├── tabrenderer.d.ts │ │ ├── textarea.d.ts │ │ ├── textarearenderer.d.ts │ │ ├── togglebutton.d.ts │ │ ├── toolbar.d.ts │ │ ├── toolbarbutton.d.ts │ │ ├── toolbarbuttonrenderer.d.ts │ │ ├── toolbarcolormenubutton.d.ts │ │ ├── toolbarcolormenubuttonrenderer.d.ts │ │ ├── toolbarmenubutton.d.ts │ │ ├── toolbarmenubuttonrenderer.d.ts │ │ ├── toolbarrenderer.d.ts │ │ ├── toolbarselect.d.ts │ │ ├── toolbarseparator.d.ts │ │ ├── toolbarseparatorrenderer.d.ts │ │ ├── toolbartogglebutton.d.ts │ │ ├── tooltip.d.ts │ │ ├── tree │ │ │ ├── basenode.d.ts │ │ │ ├── treecontrol.d.ts │ │ │ ├── treenode.d.ts │ │ │ └── typeahead.d.ts │ │ ├── tristatemenuitem.d.ts │ │ ├── tristatemenuitemrenderer.d.ts │ │ ├── twothumbslider.d.ts │ │ └── zippy.d.ts │ │ ├── uri │ │ ├── uri.d.ts │ │ └── utils.d.ts │ │ ├── useragent │ │ ├── adobereader.d.ts │ │ ├── flash.d.ts │ │ ├── iphoto.d.ts │ │ ├── jscript.d.ts │ │ ├── keyboard.d.ts │ │ ├── picasa.d.ts │ │ ├── platform.d.ts │ │ ├── product.d.ts │ │ ├── product_isversion.d.ts │ │ ├── useragent.d.ts │ │ └── useragenttestutil.d.ts │ │ ├── vec │ │ ├── float32array.d.ts │ │ ├── float64array.d.ts │ │ ├── mat3.d.ts │ │ ├── mat3d.d.ts │ │ ├── mat3f.d.ts │ │ ├── mat4.d.ts │ │ ├── mat4d.d.ts │ │ ├── mat4f.d.ts │ │ ├── matrix3.d.ts │ │ ├── matrix4.d.ts │ │ ├── quaternion.d.ts │ │ ├── ray.d.ts │ │ ├── vec.d.ts │ │ ├── vec2.d.ts │ │ ├── vec2d.d.ts │ │ ├── vec2f.d.ts │ │ ├── vec3.d.ts │ │ ├── vec3d.d.ts │ │ ├── vec3f.d.ts │ │ ├── vec4.d.ts │ │ ├── vec4d.d.ts │ │ └── vec4f.d.ts │ │ ├── webgl │ │ └── webgl.d.ts │ │ └── window │ │ └── window.d.ts │ ├── globals.d.ts │ └── third_party │ └── closure │ └── goog │ ├── base.d.ts │ ├── caja │ └── string │ │ └── html │ │ ├── htmlparser.d.ts │ │ └── htmlsanitizer.d.ts │ ├── deps.d.ts │ ├── dojo │ └── dom │ │ └── query.d.ts │ ├── jpeg_encoder │ └── jpeg_encoder_basic.d.ts │ ├── loremipsum │ └── text │ │ └── loremipsum.d.ts │ ├── mochikit │ └── async │ │ ├── deferred.d.ts │ │ └── deferredlist.d.ts │ ├── osapi │ └── osapi.d.ts │ └── svgpan │ └── svgpan.d.ts ├── lib └── require.js ├── main.min.js ├── package-lock.json ├── package.json ├── scripts ├── check.sh ├── compile.sh ├── convert.sh ├── list_files.sh ├── list_input_output.sh ├── provides.sh ├── references.sh └── test.sh └── test ├── class.js ├── interface.js ├── missing_params.js ├── no_params.js ├── overloaded_function.js ├── requirejs_function_declaration.js ├── requirejs_function_expression.js ├── requirejs_local_class.js ├── requirejs_local_variable.js ├── subclass.js ├── subinterface.js ├── symbols.tsv ├── typedef_array.js ├── typedef_bang.js └── typedef_union.js /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | *.iml 3 | 4 | *.js 5 | !test/*.js 6 | !main.min.js 7 | *.map 8 | 9 | *.jar 10 | node_modules/ -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "lib/doctrine"] 2 | path = lib/doctrine 3 | url = git@github.com:fivetran/doctrine.git 4 | [submodule "lib/definitely-typed"] 5 | path = lib/definitely-typed 6 | url = git@github.com:fivetran/DefinitelyTyped.git 7 | [submodule "typescript"] 8 | path = typescript 9 | url = git@github.com:Microsoft/TypeScript.git 10 | [submodule "lib/closure-library"] 11 | path = lib/closure-library 12 | url = git@github.com:fivetran/closure-library.git 13 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fivetran/typescript-closure-tools/20d3931ebe25f1f73e77794d79c9cce786540502/.npmignore -------------------------------------------------------------------------------- /definition-generator/index/escodegen.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module 'escodegen' { 4 | function generate(ast: estree.Program, options?: any): string; 5 | } -------------------------------------------------------------------------------- /definition-generator/index/findclosure.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Create symlinks to every JS file in the closure library 4 | # The closure library contains HTML demo files which screw up IDE indexing 5 | 6 | for FILE in $(find ../lib/closure-library/closure/goog -name '*.js') 7 | do 8 | LINK=$(echo $FILE | cut -c 8-) 9 | PARENT=$(dirname $LINK) 10 | RELATIVE=$(echo $PARENT | sed -e 's/[a-z\-]*/../g') 11 | 12 | mkdir --parents $PARENT 13 | ln -s $RELATIVE/$FILE $LINK 14 | done -------------------------------------------------------------------------------- /definition-generator/index/jasmine.d.ts: -------------------------------------------------------------------------------- 1 | ../../lib/definitely-typed/jasmine/jasmine.d.ts -------------------------------------------------------------------------------- /definition-generator/index/mkdirp.d.ts: -------------------------------------------------------------------------------- 1 | // Type definitions for mkdirp 0.3.0 2 | // Project: http://github.com/substack/node-mkdirp 3 | // Definitions by: Bart van der Schoor 4 | // Definitions: https://github.com/borisyankov/DefinitelyTyped 5 | 6 | declare module 'mkdirp' { 7 | 8 | function mkdirp(dir: string, cb: (err: any, made: string) => void): void; 9 | function mkdirp(dir: string, flags: any, cb: (err: any, made: string) => void): void; 10 | 11 | module mkdirp { 12 | function sync(dir: string, flags?: any): string; 13 | } 14 | export = mkdirp; 15 | } -------------------------------------------------------------------------------- /definition-generator/index/references.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// -------------------------------------------------------------------------------- /definition-generator/src/.gitignore: -------------------------------------------------------------------------------- 1 | !cli.js -------------------------------------------------------------------------------- /definition-generator/src/cli.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var path = require('path'); 3 | require(path.resolve(__dirname, 'main.js')); 4 | -------------------------------------------------------------------------------- /definition-generator/src/options.ts: -------------------------------------------------------------------------------- 1 | export interface InputOutput { 2 | input: string; 3 | output: string; 4 | } 5 | 6 | var options: string[] = process.argv.slice(2); 7 | 8 | function get_option(name): string { 9 | var index = options.indexOf('--' + name); 10 | 11 | if (index !== -1) { 12 | var value = options[index + 1]; 13 | 14 | options.splice(index, 2); 15 | 16 | return value; 17 | } 18 | } 19 | 20 | export var provides = get_option('provides'); 21 | export var globals = get_option('globals'); 22 | export var inputRoot = get_option('input_root') || ''; 23 | export var outputRoot = get_option('output_root') || ''; 24 | export var includePrivate = get_option('include_private') || false; 25 | export var todo: InputOutput[] = []; 26 | 27 | for (var i = 0; i < options.length; i += 2) { 28 | todo.push({ 29 | input: options[i], 30 | output: options[i + 1] 31 | }); 32 | } 33 | -------------------------------------------------------------------------------- /definition-generator/src/page.ts: -------------------------------------------------------------------------------- 1 | import parser = require('./parser'); 2 | import combine = require('./combine'); 3 | import generate = require('./generate'); 4 | import pretty_print = require('./pretty_print'); 5 | 6 | export function convert(text: string): string { 7 | var docs = parser.jsdoc(text); 8 | var symbols = combine.members(docs); 9 | var out = generate.defs(symbols); 10 | var text = pretty_print.pretty(out); 11 | 12 | return text; 13 | } 14 | 15 | window['convert'] = convert; -------------------------------------------------------------------------------- /externs-generator/src/.gitignore: -------------------------------------------------------------------------------- 1 | !cli.js 2 | !typescript_services.js -------------------------------------------------------------------------------- /externs-generator/src/cli.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var path = require('path'); 3 | require(path.resolve(__dirname, 'main.js')); 4 | -------------------------------------------------------------------------------- /externs-generator/test/example.ts: -------------------------------------------------------------------------------- 1 | module Module { 2 | export interface ExportedInterface { 3 | f(arg: number): void; 4 | x: number; 5 | } 6 | 7 | interface PrivateInterface { 8 | g(arg: string): number; 9 | y: boolean; 10 | } 11 | 12 | interface ParentInterface { 13 | Child: { 14 | childProperty: number; 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /index/closure-library/alltests.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/a11y/aria/datatables.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.a11y.aria { 5 | 6 | /** 7 | * A map that contains mapping between an ARIA state and the default value 8 | * for it. Note that not all ARIA states have default values. 9 | * 10 | * @type {Object.} 11 | */ 12 | var DefaultStateValueMap_: { [key: string]: string|boolean|number }; 13 | } 14 | 15 | declare module goog.a11y.aria.datatables { 16 | 17 | /** 18 | * A method that creates a map that contains mapping between an ARIA state and 19 | * the default value for it. Note that not all ARIA states have default values. 20 | * 21 | * @return {!Object.} 22 | * The names for each of the notification methods. 23 | */ 24 | function getDefaultValuesMap(): { [key: string]: string|boolean|number }; 25 | } 26 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/a11y/aria/roles.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.a11y.aria { 4 | 5 | /** 6 | * ARIA role values. 7 | * @enum {string} 8 | */ 9 | enum Role { ALERT, ALERTDIALOG, APPLICATION, ARTICLE, BANNER, BUTTON, CHECKBOX, COLUMNHEADER, COMBOBOX, COMPLEMENTARY, CONTENTINFO, DEFINITION, DIALOG, DIRECTORY, DOCUMENT, FORM, GRID, GRIDCELL, GROUP, HEADING, IMG, LINK, LIST, LISTBOX, LISTITEM, LOG, MAIN, MARQUEE, MATH, MENU, MENUBAR, MENU_ITEM, MENU_ITEM_CHECKBOX, MENU_ITEM_RADIO, NAVIGATION, NOTE, OPTION, PRESENTATION, PROGRESSBAR, RADIO, RADIOGROUP, REGION, ROW, ROWGROUP, ROWHEADER, SCROLLBAR, SEARCH, SEPARATOR, SLIDER, SPINBUTTON, STATUS, TAB, TAB_LIST, TAB_PANEL, TEXTBOX, TIMER, TOOLBAR, TOOLTIP, TREE, TREEGRID, TREEITEM } 10 | } 11 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/async/nexttick.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.async { 4 | 5 | /** 6 | * Throw an item without interrupting the current execution context. For 7 | * example, if processing a group of items in a loop, sometimes it is useful 8 | * to report an error while still allowing the rest of the batch to be 9 | * processed. 10 | * @param {*} exception 11 | */ 12 | function throwException(exception: any): void; 13 | 14 | /** 15 | * Fires the provided callbacks as soon as possible after the current JS 16 | * execution context. setTimeout(…, 0) always takes at least 5ms for legacy 17 | * reasons. 18 | * @param {function(this:SCOPE)} callback Callback function to fire as soon as 19 | * possible. 20 | * @param {SCOPE=} opt_context Object in whose scope to call the listener. 21 | * @template SCOPE 22 | */ 23 | function nextTick(callback: { (): any /*missing*/ }, opt_context?: SCOPE): void; 24 | } 25 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/bootstrap/nodejs.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog { 4 | 5 | /** 6 | * Bootstraps a file into the global scope. 7 | * 8 | * This is strictly for cases where normal require() won't work, 9 | * because the file declares global symbols with 'var' that need to 10 | * be added to the global scope. 11 | * @suppress {missingProvide} 12 | * 13 | * @param {string} file The path to the file. 14 | */ 15 | function nodeGlobalRequire(file: string): void; 16 | } 17 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/bootstrap/webworkers.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/color/names.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.color { 4 | 5 | /** 6 | * A map that contains a lot of colors that are recognised by various browsers. 7 | * This list is way larger than the minimal one dictated by W3C. 8 | * The keys of this map are the lowercase "readable" names of the colors, while 9 | * the values are the "hex" values. 10 | */ 11 | var names: any /*missing*/; 12 | } 13 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/crypt/blockcipher.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.crypt { 4 | 5 | interface BlockCipher { 6 | 7 | /** 8 | * Encrypt a plaintext block. The implementation may expect (and assert) 9 | * a particular block length. 10 | * @param {!Array.} input Plaintext array of input bytes. 11 | * @return {!Array.} Encrypted ciphertext array of bytes. Should be the 12 | * same length as input. 13 | */ 14 | encrypt(input: number[]): number[]; 15 | 16 | /** 17 | * Decrypt a plaintext block. The implementation may expect (and assert) 18 | * a particular block length. 19 | * @param {!Array.} input Ciphertext. Array of input bytes. 20 | * @return {!Array.} Decrypted plaintext array of bytes. Should be the 21 | * same length as input. 22 | */ 23 | decrypt(input: number[]): number[]; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/crypt/hashtester.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.crypt.hashTester { 5 | 6 | /** 7 | * Runs basic tests. 8 | * 9 | * @param {!goog.crypt.Hash} hash A hash instance. 10 | */ 11 | function runBasicTests(hash: goog.crypt.Hash): void; 12 | 13 | /** 14 | * Runs block tests. 15 | * 16 | * @param {!goog.crypt.Hash} hash A hash instance. 17 | * @param {number} blockBytes Size of the hash block. 18 | */ 19 | function runBlockTests(hash: goog.crypt.Hash, blockBytes: number): void; 20 | 21 | /** 22 | * Runs performance tests. 23 | * 24 | * @param {function():!goog.crypt.Hash} hashFactory A hash factory. 25 | * @param {string} hashName Name of the hashing function. 26 | */ 27 | function runPerfTests(hashFactory: { (): goog.crypt.Hash }, hashName: string): void; 28 | } 29 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/crypt/md5.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.crypt { 5 | 6 | class Md5 extends Md5__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class Md5__Class extends goog.crypt.Hash__Class { 9 | 10 | /** 11 | * MD5 cryptographic hash constructor. 12 | * @constructor 13 | * @extends {goog.crypt.Hash} 14 | * @final 15 | * @struct 16 | */ 17 | constructor(); 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/crypt/pbkdf2.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.crypt.pbkdf2 { 4 | 5 | /** 6 | * Derives key from password using PBKDF2-SHA1 7 | * @param {!Array.} password Byte array representation of the password 8 | * from which the key is derived. 9 | * @param {!Array.} initialSalt Byte array representation of the salt. 10 | * @param {number} iterations Number of interations when computing the key. 11 | * @param {number} keyLength Length of the output key in bits. 12 | * Must be multiple of 8. 13 | * @return {!Array.} Byte array representation of the output key. 14 | */ 15 | function deriveKeySha1(password: number[], initialSalt: number[], iterations: number, keyLength: number): number[]; 16 | } 17 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/crypt/sha1.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.crypt { 5 | 6 | class Sha1 extends Sha1__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class Sha1__Class extends goog.crypt.Hash__Class { 9 | 10 | /** 11 | * SHA-1 cryptographic hash constructor. 12 | * 13 | * The properties declared here are discussed in the above algorithm document. 14 | * @constructor 15 | * @extends {goog.crypt.Hash} 16 | * @final 17 | * @struct 18 | */ 19 | constructor(); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/crypt/sha224.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.crypt { 5 | 6 | class Sha224 extends Sha224__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class Sha224__Class extends goog.crypt.Sha2__Class { 9 | 10 | /** 11 | * SHA-224 cryptographic hash constructor. 12 | * 13 | * @constructor 14 | * @extends {goog.crypt.Sha2} 15 | * @final 16 | * @struct 17 | */ 18 | constructor(); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/crypt/sha256.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.crypt { 5 | 6 | class Sha256 extends Sha256__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class Sha256__Class extends goog.crypt.Sha2__Class { 9 | 10 | /** 11 | * SHA-256 cryptographic hash constructor. 12 | * 13 | * @constructor 14 | * @extends {goog.crypt.Sha2} 15 | * @final 16 | * @struct 17 | */ 18 | constructor(); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/crypt/sha384.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.crypt { 5 | 6 | class Sha384 extends Sha384__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class Sha384__Class extends goog.crypt.Sha2_64bit__Class { 9 | 10 | /** 11 | * Constructs a SHA-384 cryptographic hash. 12 | * 13 | * @constructor 14 | * @extends {goog.crypt.Sha2_64bit} 15 | * @final 16 | * @struct 17 | */ 18 | constructor(); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/crypt/sha512.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.crypt { 5 | 6 | class Sha512 extends Sha512__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class Sha512__Class extends goog.crypt.Sha2_64bit__Class { 9 | 10 | /** 11 | * Constructs a SHA-512 cryptographic hash. 12 | * 13 | * @constructor 14 | * @extends {goog.crypt.Sha2_64bit} 15 | * @final 16 | * @struct 17 | */ 18 | constructor(); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/crypt/sha512_256.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.crypt { 5 | 6 | class Sha512_256 extends Sha512_256__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class Sha512_256__Class extends goog.crypt.Sha2_64bit__Class { 9 | 10 | /** 11 | * Constructs a SHA-512/256 cryptographic hash. 12 | * 13 | * @constructor 14 | * @extends {goog.crypt.Sha2_64bit} 15 | * @final 16 | * @struct 17 | */ 18 | constructor(); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/date/datelike.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.date { 5 | 6 | /** 7 | * @typedef {(Date|goog.date.Date)} 8 | */ 9 | type DateLike = Date|goog.date.Date; 10 | } 11 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/date/duration.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.date.duration { 4 | 5 | /** 6 | * Accepts a duration in milliseconds and outputs an absolute duration time in 7 | * form of "1 day", "2 hours", "20 minutes", "2 days 1 hour 15 minutes" etc. 8 | * @param {number} durationMs Duration in milliseconds. 9 | * @return {string} The formatted duration. 10 | */ 11 | function format(durationMs: number): string; 12 | } 13 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/date/relativewithplurals.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/debug/devcss/devcssrunner.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/debug/error.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.debug { 4 | 5 | class Error extends Error__Class { } 6 | /** Fake class which should be extended to avoid inheriting static properties */ 7 | class Error__Class extends _Error { 8 | 9 | /** 10 | * Base class for custom error objects. 11 | * @param {*=} opt_msg The message associated with the error. 12 | * @constructor 13 | * @extends {Error} 14 | */ 15 | constructor(opt_msg?: any); 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/debug/errorhandlerweakdep.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.debug { 4 | 5 | /** 6 | * Dummy object to work around undefined properties compiler warning. 7 | * @type {Object} 8 | */ 9 | var errorHandlerWeakDep: Object; 10 | } 11 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/demos/autocompleteremotedata.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/demos/autocompleterichremotedata.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/demos/editor/deps.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/demos/editor/equationeditor.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.demos.editor { 4 | 5 | class EquationEditor extends EquationEditor__Class { } 6 | /** Fake class which should be extended to avoid inheriting static properties */ 7 | class EquationEditor__Class { 8 | 9 | /** 10 | * @constructor 11 | * @final 12 | */ 13 | constructor(); 14 | 15 | /** 16 | * Creates a new editor and opens the dialog. 17 | * @param {string} initialEquation The initial equation value to use. 18 | */ 19 | openEditor(initialEquation: string): void; 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/demos/editor/helloworld.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.demos.editor { 5 | 6 | class HelloWorld extends HelloWorld__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class HelloWorld__Class extends goog.editor.Plugin__Class { 9 | 10 | /** 11 | * Plugin to insert 'Hello World!' into an editable field. 12 | * @constructor 13 | * @extends {goog.editor.Plugin} 14 | * @final 15 | */ 16 | constructor(); 17 | } 18 | 19 | } 20 | 21 | declare module goog.demos.editor.HelloWorld { 22 | 23 | /** 24 | * Commands implemented by this plugin. 25 | * @enum {string} 26 | */ 27 | enum COMMAND { HELLO_WORLD } 28 | } 29 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/demos/editor/helloworlddialogplugin.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.demos.editor { 5 | 6 | class HelloWorldDialogPlugin extends HelloWorldDialogPlugin__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class HelloWorldDialogPlugin__Class extends goog.editor.plugins.AbstractDialogPlugin__Class { 9 | 10 | /** 11 | * A plugin that opens the hello world dialog. 12 | * @constructor 13 | * @extends {goog.editor.plugins.AbstractDialogPlugin} 14 | * @final 15 | */ 16 | constructor(); 17 | } 18 | 19 | } 20 | 21 | declare module goog.demos.editor.HelloWorldDialogPlugin { 22 | 23 | /** 24 | * Commands implemented by this plugin. 25 | * @enum {string} 26 | */ 27 | enum Command { HELLO_WORLD_DIALOG } 28 | } 29 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/demos/graphics/tigerdata.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/demos/xpc/xpcdemo.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module xpcdemo { 4 | 5 | /** 6 | * Initializes XPC in the containing page. 7 | */ 8 | function initOuter(): void; 9 | 10 | /** 11 | * Initialization in the iframe. 12 | */ 13 | function initInner(): void; 14 | 15 | /** 16 | * Kills the peer iframe and the disposes the channel. 17 | */ 18 | function teardown(): void; 19 | 20 | /** 21 | * Logging function. Inserts log-message into element with it id 'console'. 22 | * @param {string} msgString The log-message. 23 | */ 24 | function log(msgString: string): void; 25 | 26 | /** 27 | * Sends a ping request to the peer. 28 | */ 29 | function ping(): void; 30 | 31 | /** 32 | * Start mousemove event forwarding. Registers a listener on the document which 33 | * sends them over the channel. 34 | */ 35 | function startMousemoveForwarding(): void; 36 | 37 | /** 38 | * Stop mousemove event forwarding. 39 | */ 40 | function stopMousemoveForwarding(): void; 41 | 42 | /** 43 | * Send multiple messages. 44 | * @param {number} n The number of messages to send. 45 | */ 46 | function sendN(n: number): void; 47 | } 48 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/deps.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/disposable/idisposable.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.disposable { 4 | 5 | interface IDisposable { 6 | 7 | /** 8 | * Disposes of the object and its resources. 9 | * @return {void} Nothing. 10 | */ 11 | dispose(): void; 12 | 13 | /** 14 | * @return {boolean} Whether the object has been disposed of. 15 | */ 16 | isDisposed(): boolean; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/dom/abstractmultirange.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.dom { 5 | 6 | class AbstractMultiRange extends AbstractMultiRange__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class AbstractMultiRange__Class extends goog.dom.AbstractRange__Class { 9 | 10 | /** 11 | * Creates a new multi range with no properties. Do not use this 12 | * constructor: use one of the goog.dom.Range.createFrom* methods instead. 13 | * @constructor 14 | * @extends {goog.dom.AbstractRange} 15 | */ 16 | constructor(); 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/dom/animationframe/polyfill.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.dom.animationFrame.polyfill { 4 | 5 | /** 6 | * Installs the requestAnimationFrame (and cancelAnimationFrame) polyfill. 7 | */ 8 | var install: any /*missing*/; 9 | } 10 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/dom/browserfeature.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.dom { 4 | 5 | /** 6 | * Enum of browser capabilities. 7 | * @enum {boolean} 8 | */ 9 | enum BrowserFeature { CAN_ADD_NAME_OR_TYPE_ATTRIBUTES, CAN_USE_CHILDREN_ATTRIBUTE, CAN_USE_INNER_TEXT, CAN_USE_PARENT_ELEMENT_PROPERTY, INNER_HTML_NEEDS_SCOPED_ELEMENT } 10 | } 11 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/dom/nodetype.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.dom { 4 | 5 | /** 6 | * Constants for the nodeType attribute in the Node interface. 7 | * 8 | * These constants match those specified in the Node interface. These are 9 | * usually present on the Node object in recent browsers, but not in older 10 | * browsers (specifically, early IEs) and thus are given here. 11 | * 12 | * In some browsers (early IEs), these are not defined on the Node object, 13 | * so they are provided here. 14 | * 15 | * See http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-1950641247 16 | * @enum {number} 17 | */ 18 | enum NodeType { ELEMENT, ATTRIBUTE, TEXT, CDATA_SECTION, ENTITY_REFERENCE, ENTITY, PROCESSING_INSTRUCTION, COMMENT, DOCUMENT, DOCUMENT_TYPE, DOCUMENT_FRAGMENT, NOTATION } 19 | } 20 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/dom/pattern/allchildren.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.dom.pattern { 5 | 6 | class AllChildren extends AllChildren__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class AllChildren__Class extends goog.dom.pattern.AbstractPattern__Class { 9 | 10 | /** 11 | * Pattern object that matches any nodes at or below the current tree depth. 12 | * 13 | * @constructor 14 | * @extends {goog.dom.pattern.AbstractPattern} 15 | */ 16 | constructor(); 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/dom/pattern/callback/counter.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.dom.pattern.callback { 4 | 5 | class Counter extends Counter__Class { } 6 | /** Fake class which should be extended to avoid inheriting static properties */ 7 | class Counter__Class { 8 | 9 | /** 10 | * Callback class for counting matches. 11 | * @constructor 12 | * @final 13 | */ 14 | constructor(); 15 | 16 | /** 17 | * The count of objects matched so far. 18 | * 19 | * @type {number} 20 | */ 21 | count: number; 22 | 23 | /** 24 | * Get a bound callback function that is suitable as a callback for 25 | * {@link goog.dom.pattern.Matcher}. 26 | * 27 | * @return {!Function} A callback function. 28 | */ 29 | getCallback(): Function; 30 | 31 | /** 32 | * Reset the counter. 33 | */ 34 | reset(): void; 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/dom/pattern/callback/test.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.dom.pattern.callback { 4 | 5 | class Test extends Test__Class { } 6 | /** Fake class which should be extended to avoid inheriting static properties */ 7 | class Test__Class { 8 | 9 | /** 10 | * Callback class for testing for at least one match. 11 | * @constructor 12 | * @final 13 | */ 14 | constructor(); 15 | 16 | /** 17 | * Whether or not the pattern matched. 18 | * 19 | * @type {boolean} 20 | */ 21 | matched: boolean; 22 | 23 | /** 24 | * Get a bound callback function that is suitable as a callback for 25 | * {@link goog.dom.pattern.Matcher}. 26 | * 27 | * @return {!Function} A callback function. 28 | */ 29 | getCallback(): Function; 30 | 31 | /** 32 | * Reset the counter. 33 | */ 34 | reset(): void; 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/dom/pattern/childmatches.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.dom.pattern { 6 | 7 | class ChildMatches extends ChildMatches__Class { } 8 | /** Fake class which should be extended to avoid inheriting static properties */ 9 | class ChildMatches__Class extends goog.dom.pattern.AllChildren__Class { 10 | 11 | /** 12 | * Pattern object that matches any nodes at or below the current tree depth. 13 | * 14 | * @param {goog.dom.pattern.AbstractPattern} childPattern Pattern to collect 15 | * child matches of. 16 | * @param {number=} opt_minimumMatches Enforce a minimum nuber of matches. 17 | * Defaults to 0. 18 | * @constructor 19 | * @extends {goog.dom.pattern.AllChildren} 20 | * @final 21 | */ 22 | constructor(childPattern: goog.dom.pattern.AbstractPattern, opt_minimumMatches?: number); 23 | 24 | /** 25 | * Array of matched child nodes. 26 | * 27 | * @type {Array.} 28 | */ 29 | matches: Node[]; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/dom/pattern/nodetype.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.dom.pattern { 6 | 7 | class NodeType extends NodeType__Class { } 8 | /** Fake class which should be extended to avoid inheriting static properties */ 9 | class NodeType__Class extends goog.dom.pattern.AbstractPattern__Class { 10 | 11 | /** 12 | * Pattern object that matches any node of the given type. 13 | * @param {goog.dom.NodeType} nodeType The node type to match. 14 | * @constructor 15 | * @extends {goog.dom.pattern.AbstractPattern} 16 | * @final 17 | */ 18 | constructor(nodeType: goog.dom.NodeType); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/dom/pattern/text.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.dom.pattern { 5 | 6 | class Text extends Text__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class Text__Class extends goog.dom.pattern.AbstractPattern__Class { 9 | 10 | /** 11 | * Pattern object that matches text by exact matching or regular expressions. 12 | * 13 | * @param {string|RegExp} match String or regular expression to match against. 14 | * @constructor 15 | * @extends {goog.dom.pattern.AbstractPattern} 16 | * @final 17 | */ 18 | constructor(match: string|RegExp); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/dom/rangeendpoint.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.dom { 4 | 5 | /** 6 | * Constants for selection endpoints. 7 | * @enum {number} 8 | */ 9 | enum RangeEndpoint { START, END } 10 | } 11 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/dom/tagname.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.dom { 4 | 5 | /** 6 | * Enum of all html tag names specified by the W3C HTML4.01 and HTML5 7 | * specifications. 8 | * @enum {string} 9 | */ 10 | enum TagName { A, ABBR, ACRONYM, ADDRESS, APPLET, AREA, ARTICLE, ASIDE, AUDIO, B, BASE, BASEFONT, BDI, BDO, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CANVAS, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, COMMAND, DATA, DATALIST, DD, DEL, DETAILS, DFN, DIALOG, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FIGCAPTION, FIGURE, FONT, FOOTER, FORM, FRAME, FRAMESET, H1, H2, H3, H4, H5, H6, HEAD, HEADER, HGROUP, HR, HTML, I, IFRAME, IMG, INPUT, INS, ISINDEX, KBD, KEYGEN, LABEL, LEGEND, LI, LINK, MAP, MARK, MATH, MENU, META, METER, NAV, NOFRAMES, NOSCRIPT, OBJECT, OL, OPTGROUP, OPTION, OUTPUT, P, PARAM, PRE, PROGRESS, Q, RP, RT, RUBY, S, SAMP, SCRIPT, SECTION, SELECT, SMALL, SOURCE, SPAN, STRIKE, STRONG, STYLE, SUB, SUMMARY, SUP, SVG, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TIME, TITLE, TR, TRACK, TT, U, UL, VAR, VIDEO, WBR } 11 | } 12 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/dom/tags.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.dom.tags { 4 | 5 | /** 6 | * Checks whether the tag is void (with no contents allowed and no legal end 7 | * tag), for example 'br'. 8 | * @param {string} tagName The tag name in lower case. 9 | * @return {boolean} 10 | */ 11 | function isVoidTag(tagName: string): boolean; 12 | } 13 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/dom/vendor.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.dom.vendor { 4 | 5 | /** 6 | * Returns the JS vendor prefix used in CSS properties. Different vendors 7 | * use different methods of changing the case of the property names. 8 | * 9 | * @return {?string} The JS vendor prefix or null if there is none. 10 | */ 11 | function getVendorJsPrefix(): string; 12 | 13 | /** 14 | * Returns the vendor prefix used in CSS properties. 15 | * 16 | * @return {?string} The vendor prefix or null if there is none. 17 | */ 18 | function getVendorPrefix(): string; 19 | 20 | /** 21 | * @param {string} propertyName A property name. 22 | * @param {!Object=} opt_object If provided, we verify if the property exists in 23 | * the object. 24 | * @return {?string} A vendor prefixed property name, or null if it does not 25 | * exist. 26 | */ 27 | function getPrefixedPropertyName(propertyName: string, opt_object?: Object): string; 28 | 29 | /** 30 | * @param {string} eventType An event type. 31 | * @return {string} A lower-cased vendor prefixed event type. 32 | */ 33 | function getPrefixedEventType(eventType: string): string; 34 | } 35 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/editor/browserfeature.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.editor { 4 | 5 | /** 6 | * Maps browser quirks to boolean values, detailing what the current 7 | * browser supports. 8 | * @type {Object} 9 | */ 10 | var BrowserFeature: Object; 11 | } 12 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/editor/command.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.editor { 4 | 5 | /** 6 | * Commands that the editor can excute via execCommand or queryCommandValue. 7 | * @enum {string} 8 | */ 9 | enum Command { UNDO, REDO, LINK, FORMAT_BLOCK, INDENT, OUTDENT, REMOVE_FORMAT, STRIKE_THROUGH, HORIZONTAL_RULE, SUBSCRIPT, SUPERSCRIPT, UNDERLINE, BOLD, ITALIC, FONT_SIZE, FONT_FACE, FONT_COLOR, EMOTICON, EQUATION, BACKGROUND_COLOR, ORDERED_LIST, UNORDERED_LIST, TABLE, JUSTIFY_CENTER, JUSTIFY_FULL, JUSTIFY_RIGHT, JUSTIFY_LEFT, BLOCKQUOTE, DIR_LTR, DIR_RTL, IMAGE, EDIT_HTML, UPDATE_LINK_BUBBLE, DEFAULT_TAG, CLEAR_LOREM, UPDATE_LOREM, USING_LOREM, MODAL_LINK_EDITOR } 10 | } 11 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/editor/contenteditablefield.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.editor { 5 | 6 | class ContentEditableField extends ContentEditableField__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class ContentEditableField__Class extends goog.editor.Field__Class { 9 | 10 | /** 11 | * This class encapsulates an editable field that is just a contentEditable 12 | * div. 13 | * 14 | * To see events fired by this object, please see the base class. 15 | * 16 | * @param {string} id An identifer for the field. This is used to find the 17 | * field and the element associated with this field. 18 | * @param {Document=} opt_doc The document that the element with the given 19 | * id can be found in. 20 | * @constructor 21 | * @extends {goog.editor.Field} 22 | */ 23 | constructor(id: string, opt_doc?: Document); 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/editor/defines.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/editor/focus.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.editor.focus { 4 | 5 | /** 6 | * Change focus to the given input field and set cursor to end of current text. 7 | * @param {Element} inputElem Input DOM element. 8 | */ 9 | function focusInputField(inputElem: Element): void; 10 | } 11 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/editor/plugins/abstracttabhandler.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.editor.plugins { 6 | 7 | class AbstractTabHandler extends AbstractTabHandler__Class { } 8 | /** Fake class which should be extended to avoid inheriting static properties */ 9 | class AbstractTabHandler__Class extends goog.editor.Plugin__Class { 10 | 11 | /** 12 | * Plugin to handle tab keys. Specific tab behavior defined by subclasses. 13 | * 14 | * @constructor 15 | * @extends {goog.editor.Plugin} 16 | */ 17 | constructor(); 18 | 19 | /** 20 | * Handle a tab key press. 21 | * @param {goog.events.Event} e The key event. 22 | * @return {boolean} Whether this event was handled by this plugin. 23 | * @protected 24 | */ 25 | handleTabKey(e: goog.events.Event): boolean; 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/editor/plugins/basictextformatter.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.editor.plugins { 5 | 6 | class BasicTextFormatter extends BasicTextFormatter__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class BasicTextFormatter__Class extends goog.editor.Plugin__Class { 9 | 10 | /** 11 | * Functions to style text (e.g. underline, make bold, etc.) 12 | * @constructor 13 | * @extends {goog.editor.Plugin} 14 | */ 15 | constructor(); 16 | } 17 | 18 | } 19 | 20 | declare module goog.editor.plugins.BasicTextFormatter { 21 | 22 | /** 23 | * Commands implemented by this plugin. 24 | * @enum {string} 25 | */ 26 | enum COMMAND { LINK, FORMAT_BLOCK, INDENT, OUTDENT, STRIKE_THROUGH, HORIZONTAL_RULE, SUBSCRIPT, SUPERSCRIPT, UNDERLINE, BOLD, ITALIC, FONT_SIZE, FONT_FACE, FONT_COLOR, BACKGROUND_COLOR, ORDERED_LIST, UNORDERED_LIST, JUSTIFY_CENTER, JUSTIFY_FULL, JUSTIFY_RIGHT, JUSTIFY_LEFT } 27 | } 28 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/editor/plugins/emoticons.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.editor.plugins { 5 | 6 | class Emoticons extends Emoticons__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class Emoticons__Class extends goog.editor.Plugin__Class { 9 | 10 | /** 11 | * Plugin for generating emoticons. 12 | * 13 | * @constructor 14 | * @extends {goog.editor.Plugin} 15 | * @final 16 | */ 17 | constructor(); 18 | } 19 | 20 | } 21 | 22 | declare module goog.editor.plugins.Emoticons { 23 | 24 | /** The emoticon command. */ 25 | var COMMAND: any /*missing*/; 26 | } 27 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/editor/plugins/equationeditorbubble.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.editor.plugins.equation { 5 | 6 | class EquationBubble extends EquationBubble__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class EquationBubble__Class extends goog.editor.plugins.AbstractBubblePlugin__Class { 9 | 10 | /** 11 | * Property bubble plugin for equations. 12 | * 13 | * @constructor 14 | * @extends {goog.editor.plugins.AbstractBubblePlugin} 15 | * @final 16 | */ 17 | constructor(); 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/editor/plugins/equationeditorplugin.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.editor.plugins { 5 | 6 | class EquationEditorPlugin extends EquationEditorPlugin__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class EquationEditorPlugin__Class extends goog.editor.plugins.AbstractDialogPlugin__Class { 9 | 10 | /** 11 | * A plugin that opens the equation editor in a dialog window. 12 | * @param {string=} opt_helpUrl A URL pointing to help documentation. 13 | * @constructor 14 | * @extends {goog.editor.plugins.AbstractDialogPlugin} 15 | * @final 16 | */ 17 | constructor(opt_helpUrl?: string); 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/editor/plugins/firststrong.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.editor.plugins { 5 | 6 | class FirstStrong extends FirstStrong__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class FirstStrong__Class extends goog.editor.Plugin__Class { 9 | 10 | /** 11 | * First Strong plugin. 12 | * @constructor 13 | * @extends {goog.editor.Plugin} 14 | * @final 15 | */ 16 | constructor(); 17 | } 18 | 19 | } 20 | 21 | declare module goog.editor.plugins.FirstStrong { 22 | 23 | /** 24 | * The name of the attribute which records the input text. 25 | * 26 | * @type {string} 27 | * @const 28 | */ 29 | var INPUT_ATTRIBUTE: string; 30 | } 31 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/editor/plugins/headerformatter.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.editor.plugins { 5 | 6 | class HeaderFormatter extends HeaderFormatter__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class HeaderFormatter__Class extends goog.editor.Plugin__Class { 9 | 10 | /** 11 | * Applies header styles to text. 12 | * @constructor 13 | * @extends {goog.editor.Plugin} 14 | * @final 15 | */ 16 | constructor(); 17 | } 18 | 19 | } 20 | 21 | declare module goog.editor.plugins.HeaderFormatter { 22 | 23 | /** 24 | * Commands that can be passed as the optional argument to execCommand. 25 | * @enum {string} 26 | */ 27 | enum HEADER_COMMAND { H1, H2, H3, H4 } 28 | } 29 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/editor/plugins/linkshortcutplugin.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.editor.plugins { 5 | 6 | class LinkShortcutPlugin extends LinkShortcutPlugin__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class LinkShortcutPlugin__Class extends goog.editor.Plugin__Class { 9 | 10 | /** 11 | * Plugin to add a keyboard shortcut for the link command 12 | * @constructor 13 | * @extends {goog.editor.Plugin} 14 | * @final 15 | */ 16 | constructor(); 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/editor/plugins/listtabhandler.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.editor.plugins { 5 | 6 | class ListTabHandler extends ListTabHandler__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class ListTabHandler__Class extends goog.editor.plugins.AbstractTabHandler__Class { 9 | 10 | /** 11 | * Plugin to handle tab keys in lists to indent and outdent. 12 | * @constructor 13 | * @extends {goog.editor.plugins.AbstractTabHandler} 14 | * @final 15 | */ 16 | constructor(); 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/editor/plugins/loremipsum.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.editor.plugins { 5 | 6 | class LoremIpsum extends LoremIpsum__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class LoremIpsum__Class extends goog.editor.Plugin__Class { 9 | 10 | /** 11 | * A plugin that manages lorem ipsum state of editable fields. 12 | * @param {string} message The lorem ipsum message. 13 | * @constructor 14 | * @extends {goog.editor.Plugin} 15 | * @final 16 | */ 17 | constructor(message: string); 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/editor/plugins/spacestabhandler.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.editor.plugins { 5 | 6 | class SpacesTabHandler extends SpacesTabHandler__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class SpacesTabHandler__Class extends goog.editor.plugins.AbstractTabHandler__Class { 9 | 10 | /** 11 | * Plugin to handle tab keys when not in lists to add 4 spaces. 12 | * @constructor 13 | * @extends {goog.editor.plugins.AbstractTabHandler} 14 | * @final 15 | */ 16 | constructor(); 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/editor/plugins/tagonenterhandler.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.editor.plugins { 6 | 7 | class TagOnEnterHandler extends TagOnEnterHandler__Class { } 8 | /** Fake class which should be extended to avoid inheriting static properties */ 9 | class TagOnEnterHandler__Class extends goog.editor.plugins.EnterHandler__Class { 10 | 11 | /** 12 | * Plugin to handle enter keys. This subclass normalizes all browsers to use 13 | * the given block tag on enter. 14 | * @param {goog.dom.TagName} tag The type of tag to add on enter. 15 | * @constructor 16 | * @extends {goog.editor.plugins.EnterHandler} 17 | */ 18 | constructor(tag: goog.dom.TagName); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/events/browserfeature.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.events { 4 | 5 | /** 6 | * Enum of browser capabilities. 7 | * @enum {boolean} 8 | */ 9 | enum BrowserFeature { HAS_W3C_BUTTON, HAS_W3C_EVENT_SUPPORT, SET_KEY_CODE_TO_PREVENT_DEFAULT, HAS_NAVIGATOR_ONLINE_PROPERTY, HAS_HTML5_NETWORK_EVENT_SUPPORT, HTML5_NETWORK_EVENTS_FIRE_ON_BODY, TOUCH_ENABLED } 10 | } 11 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/events/eventid.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.events { 4 | 5 | class EventId extends EventId__Class { } 6 | /** Fake class which should be extended to avoid inheriting static properties */ 7 | class EventId__Class { 8 | 9 | /** 10 | * A templated class that is used when registering for events. Typical usage: 11 | * 12 | * /** @type {goog.events.EventId.} 13 | * var myEventId = new goog.events.EventId( 14 | * goog.events.getUniqueId(('someEvent')); 15 | * 16 | * // No need to cast or declare here since the compiler knows the correct 17 | * // type of 'evt' (MyEventObj). 18 | * something.listen(myEventId, function(evt) {}); 19 | * 20 | * 21 | * @param {string} eventId 22 | * @template T 23 | * @constructor 24 | * @struct 25 | * @final 26 | */ 27 | constructor(eventId: string); 28 | 29 | /** @const */ 30 | id: any /*missing*/; 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/events/onlinehandler.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.events { 6 | 7 | class OnlineHandler extends OnlineHandler__Class { } 8 | /** Fake class which should be extended to avoid inheriting static properties */ 9 | class OnlineHandler__Class extends goog.events.EventTarget__Class implements goog.net.NetworkStatusMonitor { 10 | 11 | /** 12 | * Basic object for detecting whether the online state changes. 13 | * @constructor 14 | * @extends {goog.events.EventTarget} 15 | * @implements {goog.net.NetworkStatusMonitor} 16 | */ 17 | constructor(); 18 | 19 | /** 20 | * @return {boolean} Whether the system is online or otherwise. 21 | */ 22 | isOnline(): boolean; 23 | } 24 | 25 | } 26 | 27 | declare module goog.events.OnlineHandler { 28 | 29 | /** 30 | * Enum for the events dispatched by the OnlineHandler. 31 | * @enum {string} 32 | * @deprecated Use goog.net.NetworkStatusMonitor.EventType instead. 33 | */ 34 | enum EventType { ONLINE, OFFLINE } 35 | } 36 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/fs/filesystem.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.fs { 5 | 6 | interface FileSystem { 7 | 8 | /** 9 | * @return {string} The name of the filesystem. 10 | */ 11 | getName(): string; 12 | 13 | /** 14 | * @return {!goog.fs.DirectoryEntry} The root directory of the filesystem. 15 | */ 16 | getRoot(): goog.fs.DirectoryEntry; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/fx/dragdrop.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.fx { 5 | 6 | class DragDrop extends DragDrop__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class DragDrop__Class extends goog.fx.AbstractDragDrop__Class { 9 | 10 | /** 11 | * Drag/drop implementation for creating drag sources/drop targets consisting of 12 | * a single HTML Element. 13 | * 14 | * @param {Element|string} element Dom Node, or string representation of node 15 | * id, to be used as drag source/drop target. 16 | * @param {Object=} opt_data Data associated with the source/target. 17 | * @throws Error If no element argument is provided or if the type is invalid 18 | * @extends {goog.fx.AbstractDragDrop} 19 | * @constructor 20 | */ 21 | constructor(element: Element|string, opt_data?: Object); 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/fx/easing.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.fx.easing { 4 | 5 | /** 6 | * Ease in - Start slow and speed up. 7 | * @param {number} t Input between 0 and 1. 8 | * @return {number} Output between 0 and 1. 9 | */ 10 | function easeIn(t: number): number; 11 | 12 | /** 13 | * Ease out - Start fastest and slows to a stop. 14 | * @param {number} t Input between 0 and 1. 15 | * @return {number} Output between 0 and 1. 16 | */ 17 | function easeOut(t: number): number; 18 | 19 | /** 20 | * Ease out long - Start fastest and slows to a stop with a long ease. 21 | * @param {number} t Input between 0 and 1. 22 | * @return {number} Output between 0 and 1. 23 | */ 24 | function easeOutLong(t: number): number; 25 | 26 | /** 27 | * Ease in and out - Start slow, speed up, then slow down. 28 | * @param {number} t Input between 0 and 1. 29 | * @return {number} Output between 0 and 1. 30 | */ 31 | function inAndOut(t: number): number; 32 | } 33 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/fx/fx.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/fx/transition.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.fx { 4 | 5 | interface Transition { 6 | 7 | /** 8 | * Plays the transition. 9 | */ 10 | play: any /*missing*/; 11 | 12 | /** 13 | * Stops the transition. 14 | */ 15 | stop: any /*missing*/; 16 | } 17 | } 18 | 19 | declare module goog.fx.Transition { 20 | 21 | /** 22 | * Transition event types. 23 | * @enum {string} 24 | */ 25 | enum EventType { PLAY, BEGIN, RESUME, END, STOP, FINISH, PAUSE } 26 | } 27 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/graphics/ext/ellipse.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.graphics.ext { 6 | 7 | class Ellipse extends Ellipse__Class { } 8 | /** Fake class which should be extended to avoid inheriting static properties */ 9 | class Ellipse__Class extends goog.graphics.ext.StrokeAndFillElement__Class { 10 | 11 | /** 12 | * Wrapper for a graphics ellipse element. 13 | * @param {goog.graphics.ext.Group} group Parent for this element. 14 | * @constructor 15 | * @extends {goog.graphics.ext.StrokeAndFillElement} 16 | * @final 17 | */ 18 | constructor(group: goog.graphics.ext.Group); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/graphics/ext/ext.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/graphics/ext/image.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.graphics.ext { 6 | 7 | class Image extends Image__Class { } 8 | /** Fake class which should be extended to avoid inheriting static properties */ 9 | class Image__Class extends goog.graphics.ext.Element__Class { 10 | 11 | /** 12 | * Wrapper for a graphics image element. 13 | * @param {goog.graphics.ext.Group} group Parent for this element. 14 | * @param {string} src The path to the image to display. 15 | * @constructor 16 | * @extends {goog.graphics.ext.Element} 17 | * @final 18 | */ 19 | constructor(group: goog.graphics.ext.Group, src: string); 20 | 21 | /** 22 | * Update the source of the image. 23 | * @param {string} src Source of the image. 24 | */ 25 | setSource(src: string): void; 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/graphics/ext/rectangle.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.graphics.ext { 6 | 7 | class Rectangle extends Rectangle__Class { } 8 | /** Fake class which should be extended to avoid inheriting static properties */ 9 | class Rectangle__Class extends goog.graphics.ext.StrokeAndFillElement__Class { 10 | 11 | /** 12 | * Wrapper for a graphics rectangle element. 13 | * @param {goog.graphics.ext.Group} group Parent for this element. 14 | * @constructor 15 | * @extends {goog.graphics.ext.StrokeAndFillElement} 16 | * @final 17 | */ 18 | constructor(group: goog.graphics.ext.Group); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/graphics/fill.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.graphics { 4 | 5 | class Fill extends Fill__Class { } 6 | /** Fake class which should be extended to avoid inheriting static properties */ 7 | class Fill__Class { 8 | 9 | /** 10 | * Creates a fill object 11 | * @constructor 12 | * @deprecated goog.graphics is deprecated. It existed to abstract over browser 13 | * differences before the canvas tag was widely supported. See 14 | * http://en.wikipedia.org/wiki/Canvas_element for details. 15 | */ 16 | constructor(); 17 | 18 | /** 19 | * @return {string} The start color of a gradient fill. 20 | */ 21 | getColor1(): string; 22 | 23 | /** 24 | * @return {string} The end color of a gradient fill. 25 | */ 26 | getColor2(): string; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/graphics/paths.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.graphics.paths { 6 | 7 | /** 8 | * Defines a regular n-gon by specifing the center, a vertex, and the total 9 | * number of vertices. 10 | * @param {goog.math.Coordinate} center The center point. 11 | * @param {goog.math.Coordinate} vertex The vertex, which implicitly defines 12 | * a radius as well. 13 | * @param {number} n The number of vertices. 14 | * @return {!goog.graphics.Path} The path. 15 | */ 16 | function createRegularNGon(center: goog.math.Coordinate, vertex: goog.math.Coordinate, n: number): goog.graphics.Path; 17 | 18 | /** 19 | * Defines an arrow. 20 | * @param {goog.math.Coordinate} a Point A. 21 | * @param {goog.math.Coordinate} b Point B. 22 | * @param {?number} aHead The size of the arrow head at point A. 23 | * 0 omits the head. 24 | * @param {?number} bHead The size of the arrow head at point B. 25 | * 0 omits the head. 26 | * @return {!goog.graphics.Path} The path. 27 | */ 28 | function createArrow(a: goog.math.Coordinate, b: goog.math.Coordinate, aHead: number, bHead: number): goog.graphics.Path; 29 | } 30 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/graphics/stroke.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.graphics { 4 | 5 | class Stroke extends Stroke__Class { } 6 | /** Fake class which should be extended to avoid inheriting static properties */ 7 | class Stroke__Class { 8 | 9 | /** 10 | * Creates an immutable stroke object. 11 | * 12 | * @param {number|string} width The width of the stroke. 13 | * @param {string} color The color of the stroke. 14 | * @constructor 15 | * @deprecated goog.graphics is deprecated. It existed to abstract over browser 16 | * differences before the canvas tag was widely supported. See 17 | * http://en.wikipedia.org/wiki/Canvas_element for details. 18 | */ 19 | constructor(width: number|string, color: string); 20 | 21 | /** 22 | * @return {number|string} The width of this stroke. 23 | */ 24 | getWidth(): number|string; 25 | 26 | /** 27 | * @return {string} The color of this stroke. 28 | */ 29 | getColor(): string; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/history/eventtype.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.history { 4 | 5 | /** 6 | * Event types for goog.history. 7 | * @enum {string} 8 | */ 9 | enum EventType { NAVIGATE } 10 | } 11 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/html/utils.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.html.utils { 4 | 5 | /** 6 | * Extracts text from HTML. 7 | * Block-level elements such as div are surrounded with whitespace, 8 | * but inline elements are not. Span is treated as a block level element 9 | * because it is often used as a container. 10 | * Breaking spaces are compressed and trimmed. 11 | * 12 | * @param {string} value The input HTML to have tags removed. 13 | * @return {string} A representation of value without tags, HTML comments, or 14 | * other non-text content. 15 | */ 16 | function stripHtmlTags(value: string): string; 17 | } 18 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/i18n/charlistdecompressor.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.i18n { 4 | 5 | class CharListDecompressor extends CharListDecompressor__Class { } 6 | /** Fake class which should be extended to avoid inheriting static properties */ 7 | class CharListDecompressor__Class { 8 | 9 | /** 10 | * Class to decompress base88 compressed character list. 11 | * @constructor 12 | * @final 13 | */ 14 | constructor(); 15 | 16 | /** 17 | * Gets the list of characters specified in the given string by base 88 scheme. 18 | * @param {string} str The string encoding character list. 19 | * @return {!Array.} The list of characters specified by the given 20 | * string in base 88 scheme. 21 | */ 22 | toCharList(str: string): string[]; 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/i18n/collation.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.i18n.collation { 4 | 5 | /** 6 | * Returns the comparator for a locale. If a locale is not explicitly specified, 7 | * a comparator for the user's locale will be returned. Note that if the browser 8 | * does not support locale-sensitive string comparisons, the comparator returned 9 | * will be a simple codepoint comparator. 10 | * 11 | * @param {string=} opt_locale the locale that the comparator is used for. 12 | * @return {function(string, string): number} The locale-specific comparator. 13 | */ 14 | function createComparator(opt_locale?: string): { (_0: string, _1: string): number }; 15 | 16 | /** 17 | * Returns true if a locale-sensitive comparator is available for a locale. If 18 | * a locale is not explicitly specified, the user's locale is used instead. 19 | * 20 | * @param {string=} opt_locale The locale to be checked. 21 | * @return {boolean} Whether there is a locale-sensitive comparator available 22 | * for the locale. 23 | */ 24 | function hasNativeComparator(opt_locale?: string): boolean; 25 | } 26 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/i18n/currencycodemap.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.i18n { 4 | 5 | /** 6 | * The mapping of currency symbol through intl currency code. 7 | * The source of information is mostly from wikipedia and CLDR. Since there is 8 | * no authoritive source, items are judged by personal perception. 9 | 10 | * If an application need currency support that available in tier2, it 11 | * should extend currencyCodeMap to include tier2 data by doing this: 12 | * goog.object.extend(goog.i18n.currencyCodeMap, 13 | * goog.i18n.currencyCodeMapTier2); 14 | * 15 | * @type {Object} 16 | * @const 17 | */ 18 | var currencyCodeMap: Object; 19 | 20 | /** 21 | * This group of currency data is unlikely to be used. In case they are, 22 | * program need to merge it into goog.locale.CurrencyCodeMap. 23 | * 24 | * @type {Object} 25 | * @const 26 | */ 27 | var currencyCodeMapTier2: Object; 28 | } 29 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/i18n/mime.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.i18n.mime { 4 | 5 | /** 6 | * Encodes a string for inclusion in a MIME header. The string is encoded 7 | * in UTF-8 according to RFC 1522, using quoted-printable form. 8 | * @param {string} str The string to encode. 9 | * @param {boolean=} opt_noquote Whether double-quote characters should also 10 | * be escaped (should be true if the result will be placed inside a 11 | * quoted string for a parameter value in a MIME header). 12 | * @return {string} The encoded string. 13 | */ 14 | function encode(str: string, opt_noquote?: boolean): string; 15 | 16 | /** 17 | * Get an array of UTF-8 hex codes for a given character. 18 | * @param {string} c The matched character. 19 | * @return {!Array.} A hex array representing the character. 20 | */ 21 | function getHexCharArray(c: string): string[]; 22 | } 23 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/i18n/ordinalrules.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.i18n.ordinalRules { 4 | 5 | /** 6 | * Ordinal pattern keyword 7 | * @enum {string} 8 | */ 9 | enum Keyword { ZERO, ONE, TWO, FEW, MANY, OTHER } 10 | 11 | /** 12 | * Selected Ordinal rules by locale. 13 | */ 14 | var select: any /*missing*/; 15 | } 16 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/i18n/pluralrules.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.i18n.pluralRules { 4 | 5 | /** 6 | * Plural pattern keyword 7 | * @enum {string} 8 | */ 9 | enum Keyword { ZERO, ONE, TWO, FEW, MANY, OTHER } 10 | 11 | /** 12 | * Selected Plural rules by locale. 13 | */ 14 | var select: any /*missing*/; 15 | } 16 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/json/hybrid.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.json.hybrid { 4 | 5 | /** 6 | * Attempts to serialize the JSON string natively, falling back to 7 | * {@code goog.json.serialize} if unsuccessful. 8 | * @param {!Object} obj JavaScript object to serialize to JSON. 9 | * @return {string} Resulting JSON string. 10 | */ 11 | function stringify(obj: Object): string; 12 | 13 | /** 14 | * Attempts to parse the JSON string natively, falling back to 15 | * {@code goog.json.parse} if unsuccessful. 16 | * @param {string} jsonString JSON string to parse. 17 | * @return {!Object} Resulting JSON object. 18 | */ 19 | function parse(jsonString: string): Object; 20 | 21 | /** 22 | * Attempts to parse the JSON string natively, falling back to 23 | * {@code goog.json.unsafeParse} if unsuccessful. 24 | * @param {string} jsonString JSON string to parse. 25 | * @return {!Object} Resulting JSON object. 26 | */ 27 | function unsafeParse(jsonString: string): Object; 28 | } 29 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/json/processor.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.json { 6 | 7 | interface Processor extends goog.string.Parser, goog.string.Stringifier { 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/labs/dom/pagevisibilitymonitor.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/labs/events/touch.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.labs.events.touch { 4 | 5 | /** 6 | * Description the geometry and target of an event. 7 | * 8 | * @typedef {{ 9 | * clientX: number, 10 | * clientY: number, 11 | * screenX: number, 12 | * screenY: number, 13 | * target: EventTarget 14 | * }} 15 | */ 16 | interface TouchData { 17 | clientX: number; 18 | clientY: number; 19 | screenX: number; 20 | screenY: number; 21 | target: EventTarget 22 | } 23 | 24 | /** 25 | * Takes a mouse or touch event and returns the relevent geometry and target 26 | * data. 27 | * @param {!Event} e A mouse or touch event. 28 | * @return {!goog.labs.events.touch.TouchData} 29 | */ 30 | function getTouchData(e: Event): goog.labs.events.touch.TouchData; 31 | } 32 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/labs/net/image.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.labs.net.image { 5 | 6 | /** 7 | * Loads a single image. Useful for preloading images. 8 | * 9 | * @param {string} uri URI of the image. 10 | * @param {(!Image|function(): !Image)=} opt_image If present, instead of 11 | * creating a new Image instance the function will use the passed Image 12 | * instance or the result of calling the Image factory respectively. This 13 | * can be used to control exactly how Image instances are created, for 14 | * example if they should be created in a particular document element, or 15 | * have fields that will trigger CORS image fetches. 16 | * @return {!goog.Promise.} A Promise that will be resolved with the 17 | * given image if the image successfully loads. 18 | */ 19 | function load(uri: string, opt_image?: Image|{ (): Image }): goog.Promise; 20 | } 21 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/labs/net/webchannel/basetestchannel.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.labs.net.webChannel { 6 | 7 | class BaseTestChannel extends BaseTestChannel__Class { } 8 | /** Fake class which should be extended to avoid inheriting static properties */ 9 | class BaseTestChannel__Class implements goog.labs.net.webChannel.Channel { 10 | 11 | /** 12 | * A TestChannel is used during the first part of channel negotiation 13 | * with the server to create the channel. It helps us determine whether we're 14 | * behind a buffering proxy. 15 | * 16 | * @constructor 17 | * @struct 18 | * @param {!goog.labs.net.webChannel.Channel} channel The channel 19 | * that owns this test channel. 20 | * @param {!goog.labs.net.webChannel.WebChannelDebug} channelDebug A 21 | * WebChannelDebug instance to use for logging. 22 | * @implements {goog.labs.net.webChannel.Channel} 23 | */ 24 | constructor(channel: goog.labs.net.webChannel.Channel, channelDebug: goog.labs.net.webChannel.WebChannelDebug); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/labs/net/webchannel/channel.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.labs.net.webChannel { 4 | 5 | interface Channel { 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/labs/net/webchannel/connectionstate.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.labs.net.webChannel { 4 | 5 | class ConnectionState extends ConnectionState__Class { } 6 | /** Fake class which should be extended to avoid inheriting static properties */ 7 | class ConnectionState__Class { 8 | 9 | /** 10 | * The connectivity state of the channel. 11 | * 12 | * @constructor 13 | * @struct 14 | */ 15 | constructor(); 16 | 17 | /** 18 | * Handshake result. 19 | * @type {Array.} 20 | */ 21 | handshakeResult: string[]; 22 | 23 | /** 24 | * The result of checking if there is a buffering proxy in the network. 25 | * True means the connection is buffered, False means unbuffered, 26 | * null means that the result is not available. 27 | * @type {?boolean} 28 | */ 29 | bufferingProxyResult: boolean; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/labs/net/webchannel/forwardchannelrequestpool.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.labs.net.webChannel { 4 | 5 | class ForwardChannelRequestPool extends ForwardChannelRequestPool__Class { } 6 | /** Fake class which should be extended to avoid inheriting static properties */ 7 | class ForwardChannelRequestPool__Class { 8 | 9 | /** 10 | * This class represents the state of all forward channel requests. 11 | * 12 | * @param {number=} opt_maxPoolSize The maximum pool size. 13 | * 14 | * @constructor 15 | * @final 16 | */ 17 | constructor(opt_maxPoolSize?: number); 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/labs/net/webchannel/netutils.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/labs/net/webchannel/requeststats.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/labs/net/webchannel/webchanneldebug.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.labs.net.webChannel { 4 | 5 | class WebChannelDebug extends WebChannelDebug__Class { } 6 | /** Fake class which should be extended to avoid inheriting static properties */ 7 | class WebChannelDebug__Class { 8 | 9 | /** 10 | * Logs and keeps a buffer of debugging info for the Channel. 11 | * 12 | * @constructor 13 | * @struct 14 | * @final 15 | */ 16 | constructor(); 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/labs/net/webchannel/wire.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.labs.net.webChannel { 4 | 5 | interface Wire { 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/labs/net/webchannel/wirev8.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.labs.net.webChannel { 4 | 5 | class WireV8 extends WireV8__Class { } 6 | /** Fake class which should be extended to avoid inheriting static properties */ 7 | class WireV8__Class { 8 | 9 | /** 10 | * The v8 codec class. 11 | * 12 | * @constructor 13 | * @struct 14 | */ 15 | constructor(); 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/labs/net/webchanneltransport.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.net { 5 | 6 | interface WebChannelTransport { 7 | 8 | /** 9 | * Create a new WebChannel instance. 10 | * 11 | * The new WebChannel is to be opened against the server-side resource 12 | * as specified by the given URL. See {@link goog.net.WebChannel} for detailed 13 | * semantics. 14 | * 15 | * @param {string} url The URL path for the new WebChannel instance. 16 | * @param {!goog.net.WebChannel.Options=} opt_options Configuration for the 17 | * new WebChannel instance. The configuration object is reusable after 18 | * the new channel instance is created. 19 | * @return {!goog.net.WebChannel} the newly created WebChannel instance. 20 | */ 21 | createWebChannel(url: string, opt_options?: goog.net.WebChannel.Options): goog.net.WebChannel; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/labs/net/webchanneltransportfactory.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.net { 5 | 6 | /** 7 | * Create a new WebChannelTransport instance using the default implementation. 8 | * 9 | * @return {!goog.net.WebChannelTransport} the newly created transport instance. 10 | */ 11 | function createWebChannelTransport(): goog.net.WebChannelTransport; 12 | } 13 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/labs/net/xhr.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/labs/object/object.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.labs.object { 4 | 5 | /** 6 | * Whether two values are not observably distinguishable. This 7 | * correctly detects that 0 is not the same as -0 and two NaNs are 8 | * practically equivalent. 9 | * 10 | * The implementation is as suggested by harmony:egal proposal. 11 | * 12 | * @param {*} v The first value to compare. 13 | * @param {*} v2 The second value to compare. 14 | * @return {boolean} Whether two values are not observably distinguishable. 15 | * @see http://wiki.ecmascript.org/doku.php?id=harmony:egal 16 | */ 17 | function is(v: any, v2: any): boolean; 18 | } 19 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/labs/storage/boundedcollectablestorage.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/labs/testing/assertthat.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.labs.testing { 6 | 7 | class MatcherError extends MatcherError__Class { } 8 | /** Fake class which should be extended to avoid inheriting static properties */ 9 | class MatcherError__Class extends goog.debug.Error__Class { 10 | 11 | /** 12 | * Error thrown when a Matcher fails to match the input value. 13 | * @param {string=} opt_message The error message. 14 | * @constructor 15 | * @extends {goog.debug.Error} 16 | * @final 17 | */ 18 | constructor(opt_message?: string); 19 | } 20 | 21 | 22 | /** 23 | * Asserts that the actual value evaluated by the matcher is true. 24 | * 25 | * @param {*} actual The object to assert by the matcher. 26 | * @param {!goog.labs.testing.Matcher} matcher A matcher to verify values. 27 | * @param {string=} opt_reason Description of what is asserted. 28 | * 29 | */ 30 | function assertThat(actual: any, matcher: goog.labs.testing.Matcher, opt_reason?: string): void; 31 | } 32 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/labs/useragent/device.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.labs.userAgent.device { 4 | 5 | /** 6 | * Currently we detect the iPhone, iPod and Android mobiles (devices that have 7 | * both Android and Mobile in the user agent string). 8 | * 9 | * @return {boolean} Whether the user is using a mobile device. 10 | */ 11 | function isMobile(): boolean; 12 | 13 | /** 14 | * Currently we detect Kindle Fire, iPad, and Android tablets (devices that have 15 | * Android but not Mobile in the user agent string). 16 | * 17 | * @return {boolean} Whether the user is using a tablet. 18 | */ 19 | function isTablet(): boolean; 20 | 21 | /** 22 | * @return {boolean} Whether the user is using a desktop computer (which we 23 | * assume to be the case if they are not using either a mobile or tablet 24 | * device). 25 | */ 26 | function isDesktop(): boolean; 27 | } 28 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/labs/useragent/engine.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.labs.userAgent.engine { 4 | 5 | /** 6 | * @return {boolean} Whether the rendering engine is Presto. 7 | */ 8 | function isPresto(): boolean; 9 | 10 | /** 11 | * @return {boolean} Whether the rendering engine is Trident. 12 | */ 13 | function isTrident(): boolean; 14 | 15 | /** 16 | * @return {boolean} Whether the rendering engine is WebKit. 17 | */ 18 | function isWebKit(): boolean; 19 | 20 | /** 21 | * @return {boolean} Whether the rendering engine is Gecko. 22 | */ 23 | function isGecko(): boolean; 24 | 25 | /** 26 | * @return {string} The rendering engine's version or empty string if version 27 | * can't be determined. 28 | */ 29 | function getVersion(): string; 30 | 31 | /** 32 | * @param {string|number} version The version to check. 33 | * @return {boolean} Whether the rendering engine version is higher or the same 34 | * as the given version. 35 | */ 36 | function isVersionOrHigher(version: string|number): boolean; 37 | } 38 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/labs/useragent/test_agents.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/locale/countries.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.locale { 4 | 5 | /** 6 | * List of codes for countries valid today. 7 | * @type {Array} 8 | */ 9 | var countries: any[]; 10 | } 11 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/locale/defaultlocalenameconstants.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.locale { 4 | 5 | /** 6 | * Default list of locale specific country and language names 7 | */ 8 | var defaultLocaleNameConstants: any /*missing*/; 9 | } 10 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/locale/genericfontnames.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.locale.genericFontNames { 4 | 5 | /** 6 | * Gets the list of fonts and their generic names for the given locale. 7 | * @param {string} locale The locale for which font lists and font family names 8 | * to be produced. The expected locale id is as described in 9 | * http://wiki/Main/IIISynonyms in all lowercase for easy matching. 10 | * Smallest possible id is expected. 11 | * Examples: 'zh', 'zh-tw', 'iw' instead of 'zh-CN', 'zh-Hant-TW', 'he'. 12 | * @return {Array.} List of objects with generic name as 'caption' and 13 | * corresponding font name lists as 'value' property. 14 | */ 15 | function getList(locale: string): Object[]; 16 | } 17 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/locale/genericfontnamesdata.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.locale { 4 | 5 | /** 6 | * Map from script code or language code to list of pairs of (generic name, 7 | * font name fallback list). 8 | * @type {Object} 9 | */ 10 | var genericFontNamesData: Object; 11 | } 12 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/locale/nativenameconstants.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.locale { 4 | 5 | /** 6 | * Native country and language names 7 | * @type {Object} 8 | */ 9 | var nativeNameConstants: Object; 10 | } 11 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/locale/scriptToLanguages.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.locale { 4 | 5 | /** 6 | * The script code to list of language codes map. 7 | * @type {Object} 8 | */ 9 | var scriptToLanguages: Object; 10 | } 11 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/math/exponentialbackoff.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.math { 4 | 5 | class ExponentialBackoff extends ExponentialBackoff__Class { } 6 | /** Fake class which should be extended to avoid inheriting static properties */ 7 | class ExponentialBackoff__Class { 8 | 9 | /** 10 | * @constructor 11 | * 12 | * @param {number} initialValue The initial backoff value. 13 | * @param {number} maxValue The maximum backoff value. 14 | */ 15 | constructor(initialValue: number, maxValue: number); 16 | 17 | /** 18 | * Resets the backoff value to its initial value. 19 | */ 20 | reset(): void; 21 | 22 | /** 23 | * @return {number} The current backoff value. 24 | */ 25 | getValue(): number; 26 | 27 | /** 28 | * @return {number} The number of times this class has backed off. 29 | */ 30 | getBackoffCount(): number; 31 | 32 | /** 33 | * Initiates a backoff. 34 | */ 35 | backoff(): void; 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/math/interpolator/pchip1.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.math.interpolator { 5 | 6 | class Pchip1 extends Pchip1__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class Pchip1__Class extends goog.math.interpolator.Spline1__Class { 9 | 10 | /** 11 | * A one dimensional monotone cubic spline interpolator. 12 | * @extends {goog.math.interpolator.Spline1} 13 | * @constructor 14 | * @final 15 | */ 16 | constructor(); 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/math/paths.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.math.paths { 6 | 7 | /** 8 | * Defines a regular n-gon by specifing the center, a vertex, and the total 9 | * number of vertices. 10 | * @param {goog.math.Coordinate} center The center point. 11 | * @param {goog.math.Coordinate} vertex The vertex, which implicitly defines 12 | * a radius as well. 13 | * @param {number} n The number of vertices. 14 | * @return {!goog.math.Path} The path. 15 | */ 16 | function createRegularNGon(center: goog.math.Coordinate, vertex: goog.math.Coordinate, n: number): goog.math.Path; 17 | 18 | /** 19 | * Defines an arrow. 20 | * @param {goog.math.Coordinate} a Point A. 21 | * @param {goog.math.Coordinate} b Point B. 22 | * @param {?number} aHead The size of the arrow head at point A. 23 | * 0 omits the head. 24 | * @param {?number} bHead The size of the arrow head at point B. 25 | * 0 omits the head. 26 | * @return {!goog.math.Path} The path. 27 | */ 28 | function createArrow(a: goog.math.Coordinate, b: goog.math.Coordinate, aHead: number, bHead: number): goog.math.Path; 29 | } 30 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/messaging/loggerclient.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.messaging { 6 | 7 | class LoggerClient extends LoggerClient__Class { } 8 | /** Fake class which should be extended to avoid inheriting static properties */ 9 | class LoggerClient__Class extends goog.Disposable__Class { 10 | 11 | /** 12 | * Creates a logger client that sends messages along a message channel for the 13 | * remote end to log. The remote end of the channel should use a 14 | * {goog.messaging.LoggerServer} with the same service name. 15 | * 16 | * @param {!goog.messaging.MessageChannel} channel The channel that on which to 17 | * send the log messages. 18 | * @param {string} serviceName The name of the logging service to use. 19 | * @constructor 20 | * @extends {goog.Disposable} 21 | * @final 22 | */ 23 | constructor(channel: goog.messaging.MessageChannel, serviceName: string); 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/messaging/messaging.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.messaging { 5 | 6 | /** 7 | * Creates a bidirectional pipe between two message channels. 8 | * 9 | * @param {goog.messaging.MessageChannel} channel1 The first channel. 10 | * @param {goog.messaging.MessageChannel} channel2 The second channel. 11 | */ 12 | function pipe(channel1: goog.messaging.MessageChannel, channel2: goog.messaging.MessageChannel): void; 13 | } 14 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/module/basemodule.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.module { 5 | 6 | class BaseModule extends BaseModule__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class BaseModule__Class extends goog.Disposable__Class { 9 | 10 | /** 11 | * A basic module object that represents a module of Javascript code that can 12 | * be dynamically loaded. 13 | * 14 | * @constructor 15 | * @extends {goog.Disposable} 16 | */ 17 | constructor(); 18 | 19 | /** 20 | * Performs any load-time initialization that the module requires. 21 | * @param {Object} context The module context. 22 | */ 23 | initialize(context: Object): void; 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/module/moduleloadcallback.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.module { 4 | 5 | class ModuleLoadCallback extends ModuleLoadCallback__Class { } 6 | /** Fake class which should be extended to avoid inheriting static properties */ 7 | class ModuleLoadCallback__Class { 8 | 9 | /** 10 | * Class used to encapsulate the callbacks to be called when a module loads. 11 | * @param {Function} fn Callback function. 12 | * @param {Object=} opt_handler Optional handler under whose scope to execute 13 | * the callback. 14 | * @constructor 15 | * @final 16 | */ 17 | constructor(fn: Function, opt_handler?: Object); 18 | 19 | /** 20 | * Completes the operation and calls the callback function if appropriate. 21 | * @param {*} context The module context. 22 | */ 23 | execute(context: any): void; 24 | 25 | /** 26 | * Abort the callback, but not the actual module load. 27 | */ 28 | abort(): void; 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/net/errorcode.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.net { 4 | 5 | /** 6 | * Error codes 7 | * @enum {number} 8 | */ 9 | enum ErrorCode { NO_ERROR, ACCESS_DENIED, FILE_NOT_FOUND, FF_SILENT_ERROR, CUSTOM_ERROR, EXCEPTION, HTTP_ERROR, ABORT, TIMEOUT, OFFLINE } 10 | } 11 | 12 | declare module goog.net.ErrorCode { 13 | 14 | /** 15 | * Returns a friendly error message for an error code. These messages are for 16 | * debugging and are not localized. 17 | * @param {goog.net.ErrorCode} errorCode An error code. 18 | * @return {string} A message for debugging. 19 | */ 20 | function getDebugMessage(errorCode: goog.net.ErrorCode): string; 21 | } 22 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/net/eventtype.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.net { 4 | 5 | /** 6 | * Event names for network events 7 | * @enum {string} 8 | */ 9 | enum EventType { COMPLETE, SUCCESS, ERROR, ABORT, READY, READY_STATE_CHANGE, TIMEOUT, INCREMENTAL_DATA, PROGRESS } 10 | } 11 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/net/networkstatusmonitor.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.net { 5 | 6 | interface NetworkStatusMonitor extends goog.events.Listenable { 7 | 8 | /** 9 | * @return {boolean} Whether the system is online or otherwise. 10 | */ 11 | isOnline(): boolean; 12 | } 13 | } 14 | 15 | declare module goog.net.NetworkStatusMonitor { 16 | 17 | /** 18 | * Enum for the events dispatched by the OnlineHandler. 19 | * @enum {string} 20 | */ 21 | enum EventType { ONLINE, OFFLINE } 22 | } 23 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/net/wrapperxmlhttpfactory.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.net { 6 | 7 | class WrapperXmlHttpFactory extends WrapperXmlHttpFactory__Class { } 8 | /** Fake class which should be extended to avoid inheriting static properties */ 9 | class WrapperXmlHttpFactory__Class extends goog.net.XmlHttpFactory__Class { 10 | 11 | /** 12 | * An xhr factory subclass which can be constructed using two factory methods. 13 | * This exists partly to allow the preservation of goog.net.XmlHttp.setFactory() 14 | * with an unchanged signature. 15 | * @param {function():!goog.net.XhrLike.OrNative} xhrFactory 16 | * A function which returns a new XHR object. 17 | * @param {function():!Object} optionsFactory A function which returns the 18 | * options associated with xhr objects from this factory. 19 | * @extends {goog.net.XmlHttpFactory} 20 | * @constructor 21 | * @final 22 | */ 23 | constructor(xhrFactory: { (): goog.net.XhrLike.OrNative }, optionsFactory: { (): Object }); 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/net/xhriopool.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.net { 6 | 7 | class XhrIoPool extends XhrIoPool__Class { } 8 | /** Fake class which should be extended to avoid inheriting static properties */ 9 | class XhrIoPool__Class extends goog.structs.PriorityPool__Class { 10 | 11 | /** 12 | * A pool of XhrIo objects. 13 | * @param {goog.structs.Map=} opt_headers Map of default headers to add to every 14 | * request. 15 | * @param {number=} opt_minCount Minimum number of objects (Default: 1). 16 | * @param {number=} opt_maxCount Maximum number of objects (Default: 10). 17 | * @constructor 18 | * @extends {goog.structs.PriorityPool} 19 | */ 20 | constructor(opt_headers?: goog.structs.Map, opt_minCount?: number, opt_maxCount?: number); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/net/xpc/crosspagechannelrole.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.net.xpc { 4 | 5 | /** 6 | * The role of the peer. 7 | * @enum {number} 8 | */ 9 | enum CrossPageChannelRole { OUTER, INNER } 10 | } 11 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/net/xpc/relay.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/positioning/viewportposition.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.positioning { 6 | 7 | class ViewportPosition extends ViewportPosition__Class { } 8 | /** Fake class which should be extended to avoid inheriting static properties */ 9 | class ViewportPosition__Class extends goog.positioning.AbstractPosition__Class { 10 | 11 | /** 12 | * Encapsulates a popup position where the popup is positioned according to 13 | * coordinates relative to the element's viewport (page). This calculates the 14 | * correct position to use even if the element is relatively positioned to some 15 | * other element. 16 | * 17 | * @param {number|goog.math.Coordinate} arg1 Left position or coordinate. 18 | * @param {number=} opt_arg2 Top position. 19 | * @constructor 20 | * @extends {goog.positioning.AbstractPosition} 21 | */ 22 | constructor(arg1: number|goog.math.Coordinate, opt_arg2?: number); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/promise/resolver.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.promise { 4 | 5 | interface Resolver { 6 | 7 | /** 8 | * The promise that created this resolver. 9 | * @const {!goog.Promise.} 10 | */ 11 | promise: any /*missing*/; 12 | 13 | /** 14 | * Resolves this resolver with the specified value. 15 | * @const {function((TYPE|goog.Promise.|Thenable))} 16 | */ 17 | resolve: any /*missing*/; 18 | 19 | /** 20 | * Rejects this resolver with the specified reason. 21 | * @const {function(*): void} 22 | */ 23 | reject: any /*missing*/; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/promise/testsuiteadapter.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.promise { 4 | 5 | /** 6 | * Adapter for specifying Promise-creating functions to the Promises test suite. 7 | * @type {!Object} 8 | */ 9 | var testSuiteAdapter: Object; 10 | } 11 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/proto/proto.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.proto { 4 | 5 | /** 6 | * Serializes an object or a value to a protocol buffer string. 7 | * @param {Object} object The object to serialize. 8 | * @return {string} The serialized protocol buffer string. 9 | */ 10 | function serialize(object: Object): string; 11 | } 12 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/proto/serializer.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.proto { 5 | 6 | class Serializer extends Serializer__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class Serializer__Class extends goog.json.Serializer__Class { 9 | 10 | /** 11 | * Object that can serialize objects or values to a protocol buffer string. 12 | * @constructor 13 | * @extends {goog.json.Serializer} 14 | * @final 15 | */ 16 | constructor(); 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/proto2/objectserializer.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.proto2 { 5 | 6 | class ObjectSerializer extends ObjectSerializer__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class ObjectSerializer__Class extends goog.proto2.Serializer__Class { 9 | 10 | /** 11 | * ObjectSerializer, a serializer which turns Messages into simplified 12 | * ECMAScript objects. 13 | * 14 | * @param {goog.proto2.ObjectSerializer.KeyOption=} opt_keyOption If specified, 15 | * which key option to use when serializing/deserializing. 16 | * @constructor 17 | * @extends {goog.proto2.Serializer} 18 | */ 19 | constructor(opt_keyOption?: goog.proto2.ObjectSerializer.KeyOption); 20 | } 21 | 22 | } 23 | 24 | declare module goog.proto2.ObjectSerializer { 25 | 26 | /** 27 | * An enumeration of the options for how to emit the keys in 28 | * the generated simplified object. 29 | * 30 | * @enum {number} 31 | */ 32 | enum KeyOption { TAG, NAME } 33 | } 34 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/proto2/pbliteserializer.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.proto2 { 5 | 6 | class PbLiteSerializer extends PbLiteSerializer__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class PbLiteSerializer__Class extends goog.proto2.LazyDeserializer__Class { 9 | 10 | /** 11 | * PB-Lite serializer. 12 | * 13 | * @constructor 14 | * @extends {goog.proto2.LazyDeserializer} 15 | */ 16 | constructor(); 17 | 18 | /** 19 | * By default, the proto tag with id 1 will have index 1 in the serialized 20 | * array. 21 | * 22 | * If the serializer is set to use zero-indexing, the tag with id 1 will have 23 | * index 0. 24 | * 25 | * @param {boolean} zeroIndexing Whether this serializer should deal with 26 | * 0-indexed protos. 27 | */ 28 | setZeroIndexed(zeroIndexing: boolean): void; 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/proto2/util.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.proto2.Util { 4 | 5 | /** 6 | * Asserts that the given condition is true, if and only if the PBCHECK 7 | * flag is on. 8 | * 9 | * @param {*} condition The condition to check. 10 | * @param {string=} opt_message Error message in case of failure. 11 | * @throws {Error} Assertion failed, the condition evaluates to false. 12 | */ 13 | function assert(condition: any, opt_message?: string): void; 14 | 15 | /** 16 | * Returns true if debug assertions (checks) are on. 17 | * 18 | * @return {boolean} The value of the PBCHECK constant. 19 | */ 20 | function conductChecks(): boolean; 21 | } 22 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/result/deferredadaptor.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.result { 6 | 7 | class DeferredAdaptor extends DeferredAdaptor__Class { } 8 | /** Fake class which should be extended to avoid inheriting static properties */ 9 | class DeferredAdaptor__Class extends goog.async.Deferred__Class { 10 | 11 | /** 12 | * An adaptor from Result to a Deferred, for use with existing Deferred chains. 13 | * 14 | * @param {!goog.result.Result} result A result. 15 | * @constructor 16 | * @extends {goog.async.Deferred} 17 | * @final 18 | * @deprecated Use {@link goog.Promise} instead - http://go/promisemigration 19 | */ 20 | constructor(result: goog.result.Result); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/result/dependentresult.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.result { 5 | 6 | interface DependentResult extends goog.result.Result { 7 | 8 | /** 9 | * 10 | * @return {!Array.} A list of Results which will affect 11 | * the eventual value of this Result. The returned Results may themselves 12 | * have parent results, which would be grandparents of this Result; 13 | * grandparents (and any other ancestors) are not included in this list. 14 | */ 15 | getParentResults(): goog.result.Result[]; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/soy/soy_testhelper.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/storage/collectablestoragetester.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | /// 5 | 6 | declare module goog.storage.collectableStorageTester { 7 | 8 | /** 9 | * Tests basic operation: expiration and collection of collectable storage. 10 | * 11 | * @param {goog.storage.mechanism.IterableMechanism} mechanism 12 | * @param {goog.testing.MockClock} clock 13 | * @param {goog.storage.CollectableStorage} storage 14 | */ 15 | function runBasicTests(mechanism: goog.storage.mechanism.IterableMechanism, clock: goog.testing.MockClock, storage: goog.storage.CollectableStorage): void; 16 | } 17 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/storage/errorcode.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.storage { 4 | 5 | /** 6 | * Errors thrown by the storage. 7 | * @enum {string} 8 | */ 9 | enum ErrorCode { INVALID_VALUE, DECRYPTION_ERROR } 10 | } 11 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/storage/mechanism/errorcode.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.storage.mechanism { 4 | 5 | /** 6 | * Errors thrown by storage mechanisms. 7 | * @enum {string} 8 | */ 9 | enum ErrorCode { INVALID_VALUE, QUOTA_EXCEEDED, STORAGE_DISABLED } 10 | } 11 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/storage/mechanism/html5localstorage.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.storage.mechanism { 5 | 6 | class HTML5LocalStorage extends HTML5LocalStorage__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class HTML5LocalStorage__Class extends goog.storage.mechanism.HTML5WebStorage__Class { 9 | 10 | /** 11 | * Provides a storage mechanism that uses HTML5 local storage. 12 | * 13 | * @constructor 14 | * @extends {goog.storage.mechanism.HTML5WebStorage} 15 | */ 16 | constructor(); 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/storage/mechanism/html5sessionstorage.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.storage.mechanism { 5 | 6 | class HTML5SessionStorage extends HTML5SessionStorage__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class HTML5SessionStorage__Class extends goog.storage.mechanism.HTML5WebStorage__Class { 9 | 10 | /** 11 | * Provides a storage mechanism that uses HTML5 session storage. 12 | * 13 | * @constructor 14 | * @extends {goog.storage.mechanism.HTML5WebStorage} 15 | */ 16 | constructor(); 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/storage/mechanism/iterablemechanismtester.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/storage/mechanism/mechanism.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.storage.mechanism { 4 | 5 | class Mechanism extends Mechanism__Class { } 6 | /** Fake class which should be extended to avoid inheriting static properties */ 7 | class Mechanism__Class { 8 | 9 | /** 10 | * Basic interface for all storage mechanisms. 11 | * 12 | * @constructor 13 | */ 14 | constructor(); 15 | 16 | /** 17 | * Set a value for a key. 18 | * 19 | * @param {string} key The key to set. 20 | * @param {string} value The string to save. 21 | */ 22 | set(key: string, value: string): void; 23 | 24 | /** 25 | * Get the value stored under a key. 26 | * 27 | * @param {string} key The key to get. 28 | * @return {?string} The corresponding value, null if not found. 29 | */ 30 | get(key: string): string; 31 | 32 | /** 33 | * Remove a key and its value. 34 | * 35 | * @param {string} key The key to remove. 36 | */ 37 | remove(key: string): void; 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/storage/mechanism/mechanismseparationtester.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/storage/mechanism/mechanismsharingtester.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/storage/mechanism/mechanismtester.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/storage/mechanism/prefixedmechanism.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.storage.mechanism { 5 | 6 | class PrefixedMechanism extends PrefixedMechanism__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class PrefixedMechanism__Class extends goog.storage.mechanism.IterableMechanism__Class { 9 | 10 | /** 11 | * Wraps an iterable storage mechanism and creates artificial namespaces. 12 | * 13 | * @param {!goog.storage.mechanism.IterableMechanism} mechanism Underlying 14 | * iterable storage mechanism. 15 | * @param {string} prefix Prefix for creating an artificial namespace. 16 | * @constructor 17 | * @extends {goog.storage.mechanism.IterableMechanism} 18 | * @final 19 | */ 20 | constructor(mechanism: goog.storage.mechanism.IterableMechanism, prefix: string); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/string/parser.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog._string { 4 | 5 | interface Parser { 6 | 7 | /** 8 | * Parses a string into an object and returns the result. 9 | * Agnostic to the format of string and object. 10 | * 11 | * @param {string} s The string to parse. 12 | * @return {*} The object generated from the string. 13 | */ 14 | parse(s: string): any; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/string/stringformat.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog._string { 4 | 5 | /** 6 | * Performs sprintf-like conversion, ie. puts the values in a template. 7 | * DO NOT use it instead of built-in conversions in simple cases such as 8 | * 'Cost: %.2f' as it would introduce unneccessary latency oposed to 9 | * 'Cost: ' + cost.toFixed(2). 10 | * @param {string} formatString Template string containing % specifiers. 11 | * @param {...string|number} var_args Values formatString is to be filled with. 12 | * @return {string} Formatted string. 13 | */ 14 | function format(formatString: string, ...var_args: (string|number)[]): string; 15 | } 16 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/string/stringifier.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog._string { 4 | 5 | interface Stringifier { 6 | 7 | /** 8 | * Serializes an object or a value to a string. 9 | * Agnostic to the particular format of object and string. 10 | * 11 | * @param {*} object The object to stringify. 12 | * @return {string} A string representation of the input. 13 | */ 14 | stringify(object: any): string; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/string/typedstring.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog._string { 4 | 5 | interface TypedString { 6 | 7 | /** 8 | * Interface marker of the TypedString interface. 9 | * 10 | * This property can be used to determine at runtime whether or not an object 11 | * implements this interface. All implementations of this interface set this 12 | * property to {@code true}. 13 | * @type {boolean} 14 | */ 15 | implementsGoogStringTypedString: boolean; 16 | 17 | /** 18 | * Retrieves this wrapped string's value. 19 | * @return {!string} The wrapped string's value. 20 | */ 21 | getTypedStringValue(): string; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/structs/collection.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.structs { 4 | 5 | interface Collection { 6 | 7 | /** 8 | * @param {T} value Value to add to the collection. 9 | */ 10 | add(value: T): void; 11 | 12 | /** 13 | * @param {T} value Value to remove from the collection. 14 | */ 15 | remove(value: T): void; 16 | 17 | /** 18 | * @param {T} value Value to find in the collection. 19 | * @return {boolean} Whether the collection contains the specified value. 20 | */ 21 | contains(value: T): boolean; 22 | 23 | /** 24 | * @return {number} The number of values stored in the collection. 25 | */ 26 | getCount(): number; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/structs/node.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.structs { 4 | 5 | class Node extends Node__Class { } 6 | /** Fake class which should be extended to avoid inheriting static properties */ 7 | class Node__Class { 8 | 9 | /** 10 | * A generic immutable node. This can be used in various collections that 11 | * require a node object for its item (such as a heap). 12 | * @param {K} key Key. 13 | * @param {V} value Value. 14 | * @constructor 15 | * @template K, V 16 | */ 17 | constructor(key: K, value: V); 18 | 19 | /** 20 | * Gets the key. 21 | * @return {K} The key. 22 | */ 23 | getKey(): K; 24 | 25 | /** 26 | * Gets the value. 27 | * @return {V} The value. 28 | */ 29 | getValue(): V; 30 | 31 | /** 32 | * Clones a node and returns a new node. 33 | * @return {!goog.structs.Node.} A new goog.structs.Node with the same 34 | * key value pair. 35 | */ 36 | clone(): goog.structs.Node; 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/structs/prioritypool.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.structs { 5 | 6 | class PriorityPool extends PriorityPool__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class PriorityPool__Class extends goog.structs.Pool__Class { 9 | 10 | /** 11 | * A generic pool class. If max is greater than min, an error is thrown. 12 | * @param {number=} opt_minCount Min. number of objects (Default: 1). 13 | * @param {number=} opt_maxCount Max. number of objects (Default: 10). 14 | * @constructor 15 | * @extends {goog.structs.Pool.} 16 | * @template VALUE 17 | */ 18 | constructor(opt_minCount?: number, opt_maxCount?: number); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/style/stylescrollbartester.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/testing/benchmark.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/testing/events/matchers.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.testing.events { 5 | 6 | class EventMatcher extends EventMatcher__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class EventMatcher__Class extends goog.testing.mockmatchers.ArgumentMatcher__Class { 9 | 10 | /** 11 | * A matcher that verifies that an argument is a {@code goog.events.Event} of a 12 | * particular type. 13 | * @param {string} type The single type the event argument must be of. 14 | * @constructor 15 | * @extends {goog.testing.mockmatchers.ArgumentMatcher} 16 | * @final 17 | */ 18 | constructor(type: string); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/testing/fs/filesystem.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.testing.fs { 6 | 7 | class FileSystem extends FileSystem__Class { } 8 | /** Fake class which should be extended to avoid inheriting static properties */ 9 | class FileSystem__Class implements goog.fs.FileSystem { 10 | 11 | /** 12 | * A mock filesystem object. 13 | * 14 | * @param {string=} opt_name The name of the filesystem. 15 | * @constructor 16 | * @implements {goog.fs.FileSystem} 17 | * @final 18 | */ 19 | constructor(opt_name?: string); 20 | 21 | /** 22 | * @return {string} The name of the filesystem. 23 | */ 24 | getName(): string; 25 | 26 | /** 27 | * @return {!goog.fs.DirectoryEntry} The root directory of the filesystem. 28 | */ 29 | getRoot(): goog.fs.DirectoryEntry; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/testing/graphics.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.testing.graphics { 5 | 6 | /** 7 | * Test if the given path matches the expected array of commands and parameters. 8 | * @param {Array.} expected The expected array of commands and 9 | * parameters. 10 | * @param {goog.graphics.Path} path The path to test against. 11 | */ 12 | function assertPathEquals(expected: string|number[], path: goog.graphics.Path): void; 13 | } 14 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/testing/i18n/asserts.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.testing.i18n.asserts { 4 | 5 | /** 6 | * Asserts that the two values are "almost equal" from i18n perspective 7 | * (based on a manually maintained and validated whitelist). 8 | * @param {string} expected The expected value. 9 | * @param {string} actual The actual value. 10 | */ 11 | function assertI18nEquals(expected: string, actual: string): void; 12 | } 13 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/testing/jsunit.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.testing.jsunit { 4 | 5 | /** 6 | * Base path for JsUnit app files, relative to Closure's base path. 7 | * @type {string} 8 | */ 9 | var BASE_PATH: string; 10 | 11 | /** 12 | * Filename for the core JS Unit script. 13 | * @type {string} 14 | */ 15 | var CORE_SCRIPT: string; 16 | } 17 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/testing/mockinterface.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.testing { 4 | 5 | interface MockInterface { 6 | 7 | /** 8 | * Write down all the expected functions that have been called on the 9 | * mock so far. From here on out, future function calls will be 10 | * compared against this list. 11 | */ 12 | $replay(): void; 13 | 14 | /** 15 | * Reset the mock. 16 | */ 17 | $reset(): void; 18 | 19 | /** 20 | * Assert that the expected function calls match the actual calls. 21 | */ 22 | $verify(): void; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/testing/mockstorage.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.testing { 4 | 5 | class MockStorage extends MockStorage__Class { } 6 | /** Fake class which should be extended to avoid inheriting static properties */ 7 | class MockStorage__Class implements Storage { 8 | 9 | /** 10 | * A JS storage instance, implementing the HMTL5 Storage interface. 11 | * See http://www.w3.org/TR/webstorage/ for details. 12 | * 13 | * @constructor 14 | * @implements {Storage} 15 | * @final 16 | */ 17 | constructor(); 18 | 19 | /** 20 | * The number of elements in the storage. 21 | * @type {number} 22 | */ 23 | length: number; 24 | getItem(key: string): any; 25 | [key: string]: any; 26 | setItem(key: string, data: string): void; 27 | clear(): void; 28 | removeItem(key: string): void; 29 | key(index: number): string; 30 | [index: number]: any; 31 | remainingSpace: number; 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/testing/net/xhriopool.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.testing.net { 6 | 7 | class XhrIoPool extends XhrIoPool__Class { } 8 | /** Fake class which should be extended to avoid inheriting static properties */ 9 | class XhrIoPool__Class extends goog.net.XhrIoPool__Class { 10 | 11 | /** 12 | * A pool containing a single mock XhrIo object. 13 | * 14 | * @param {goog.testing.net.XhrIo=} opt_xhr The mock XhrIo object. 15 | * @constructor 16 | * @extends {goog.net.XhrIoPool} 17 | * @final 18 | */ 19 | constructor(opt_xhr?: goog.testing.net.XhrIo); 20 | 21 | /** 22 | * Get the mock XhrIo used by this pool. 23 | * 24 | * @return {!goog.testing.net.XhrIo} The mock XhrIo. 25 | */ 26 | getXhr(): goog.testing.net.XhrIo; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/testing/objectpropertystring.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.testing { 4 | 5 | class ObjectPropertyString extends ObjectPropertyString__Class { } 6 | /** Fake class which should be extended to avoid inheriting static properties */ 7 | class ObjectPropertyString__Class { 8 | 9 | /** 10 | * Object to pass a property name as a string literal and its containing object 11 | * when the JSCompiler is rewriting these names. This should only be used in 12 | * test code. 13 | * 14 | * @param {Object} object The containing object. 15 | * @param {Object|string} propertyString Property name as a string literal. 16 | * @constructor 17 | * @final 18 | */ 19 | constructor(object: Object, propertyString: Object|string); 20 | 21 | /** 22 | * @return {Object} The object. 23 | */ 24 | getObject(): Object; 25 | 26 | /** 27 | * @return {string} The property string. 28 | */ 29 | getPropertyString(): string; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/testing/proto2/proto2.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.testing.proto2 { 5 | 6 | /** 7 | * Compares two goog.proto2.Message objects. Gives more readable output than 8 | * assertObjectEquals on mismatch. 9 | * @param {!goog.proto2.Message} expected Expected proto2 message. 10 | * @param {!goog.proto2.Message} actual Actual proto2 message. 11 | * @param {string=} opt_failureMessage Failure message when the values don't 12 | * match. 13 | */ 14 | function assertEquals(expected: goog.proto2.Message, actual: goog.proto2.Message, opt_failureMessage?: string): void; 15 | 16 | /** 17 | * Helper function to quickly build protocol buffer messages from JSON objects. 18 | * @param {function(new:MessageType)} messageCtor A constructor that 19 | * creates a {@code goog.proto2.Message} subclass instance. 20 | * @param {!Object} json JSON object which uses field names as keys. 21 | * @return {!MessageType} The deserialized protocol buffer. 22 | * @template MessageType 23 | */ 24 | function fromObject(messageCtor: { (): any /*missing*/ }, json: Object): MessageType; 25 | } 26 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/testing/shardingtestcase.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.testing { 5 | 6 | class ShardingTestCase extends ShardingTestCase__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class ShardingTestCase__Class extends goog.testing.TestCase__Class { 9 | 10 | /** 11 | * A test case that runs tests in per-file shards. 12 | * @param {number} shardIndex Shard index for this page, 13 | * 1-indexed. 14 | * @param {number} numShards Number of shards to split up test cases into. 15 | * @extends {goog.testing.TestCase} 16 | * @constructor 17 | * @final 18 | */ 19 | constructor(shardIndex: number, numShards: number, opt_name?: any /* jsdoc error */); 20 | } 21 | 22 | } 23 | 24 | declare module goog.testing.ShardingTestCase { 25 | 26 | /** 27 | * Shards tests based on the test filename. Assumes that the filename is 28 | * formatted like 'foo_1of5_test.html'. 29 | * @param {string=} opt_name A descriptive name for the test case. 30 | */ 31 | function shardByFileName(opt_name?: string): void; 32 | } 33 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/testing/singleton.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.testing.singleton { 4 | 5 | /** 6 | * Deletes all singleton instances, so {@code getInstance} will return a new 7 | * instance on next call. 8 | */ 9 | function reset(): void; 10 | 11 | /** 12 | * @deprecated Please use {@code goog.addSingletonGetter}. 13 | */ 14 | var addSingletonGetter: any /*missing*/; 15 | } 16 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/testing/storage/fakemechanism.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.testing.storage { 5 | 6 | class FakeMechanism extends FakeMechanism__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class FakeMechanism__Class extends goog.storage.mechanism.IterableMechanism__Class { 9 | 10 | /** 11 | * Creates a fake iterable mechanism. 12 | * 13 | * @constructor 14 | * @extends {goog.storage.mechanism.IterableMechanism} 15 | * @final 16 | */ 17 | constructor(); 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/testing/style/layoutasserts.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/testing/testqueue.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.testing { 4 | 5 | class TestQueue extends TestQueue__Class { } 6 | /** Fake class which should be extended to avoid inheriting static properties */ 7 | class TestQueue__Class { 8 | 9 | /** 10 | * Generic queue for writing unit tests 11 | * @constructor 12 | */ 13 | constructor(); 14 | 15 | /** 16 | * Adds a new event onto the queue. 17 | * @param {Object} event The event to queue. 18 | */ 19 | enqueue(event: Object): void; 20 | 21 | /** 22 | * Returns whether the queue is empty. 23 | * @return {boolean} Whether the queue is empty. 24 | */ 25 | isEmpty(): boolean; 26 | 27 | /** 28 | * Gets the next event from the queue. Throws an exception if the queue is 29 | * empty. 30 | * @param {string=} opt_comment Comment if the queue is empty. 31 | * @return {Object} The next event from the queue. 32 | */ 33 | dequeue(opt_comment?: string): Object; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/testing/ui/rendererasserts.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.testing.ui.rendererasserts { 4 | 5 | /** 6 | * Assert that a control renderer constructor doesn't call getCssClass. 7 | * 8 | * @param {?function(new:goog.ui.ControlRenderer)} rendererClassUnderTest The 9 | * renderer constructor to test. 10 | */ 11 | function assertNoGetCssClassCallsInConstructor(rendererClassUnderTest: { (): any /*missing*/ }): void; 12 | } 13 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/testing/watchers.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.testing.watchers { 4 | 5 | /** 6 | * Fires clock reset watching functions. 7 | */ 8 | function signalClockReset(): void; 9 | 10 | /** 11 | * Enqueues a function to be called when the clock used for setTimeout is reset. 12 | * @param {function()} fn 13 | */ 14 | function watchClockReset(fn: { (): any /*missing*/ }): void; 15 | } 16 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/tweak/testhelpers.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/ac/ac.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.ui.ac { 5 | 6 | /** 7 | * Factory function for building a basic autocomplete widget that autocompletes 8 | * an inputbox or text area from a data array. 9 | * @param {Array} data Data array. 10 | * @param {Element} input Input element or text area. 11 | * @param {boolean=} opt_multi Whether to allow multiple entries separated with 12 | * semi-colons or commas. 13 | * @param {boolean=} opt_useSimilar use similar matches. e.g. "gost" => "ghost". 14 | * @return {!goog.ui.ac.AutoComplete} A new autocomplete object. 15 | */ 16 | function createSimpleAutoComplete(data: any[], input: Element, opt_multi?: boolean, opt_useSimilar?: boolean): goog.ui.ac.AutoComplete; 17 | } 18 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/ac/richinputhandler.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.ui.ac { 5 | 6 | class RichInputHandler extends RichInputHandler__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class RichInputHandler__Class extends goog.ui.ac.InputHandler__Class { 9 | 10 | /** 11 | * Class for managing the interaction between an autocomplete object and a 12 | * text-input or textarea. 13 | * @param {?string=} opt_separators Seperators to split multiple entries. 14 | * @param {?string=} opt_literals Characters used to delimit text literals. 15 | * @param {?boolean=} opt_multi Whether to allow multiple entries 16 | * (Default: true). 17 | * @param {?number=} opt_throttleTime Number of milliseconds to throttle 18 | * keyevents with (Default: 150). 19 | * @constructor 20 | * @extends {goog.ui.ac.InputHandler} 21 | */ 22 | constructor(opt_separators?: string, opt_literals?: string, opt_multi?: boolean, opt_throttleTime?: number); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/buttonside.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.ui { 4 | 5 | /** 6 | * Constants for button sides, see {@link goog.ui.Button.prototype.setCollapsed} 7 | * for details. 8 | * @enum {number} 9 | */ 10 | enum ButtonSide { NONE, START, END, BOTH } 11 | } 12 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/colorbuttonrenderer.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.ui { 5 | 6 | class ColorButtonRenderer extends ColorButtonRenderer__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class ColorButtonRenderer__Class extends goog.ui.ColorMenuButtonRenderer__Class { 9 | 10 | /** 11 | * Renderer for {@link goog.ui.ColorButton}s. 12 | * Uses {@link goog.ui.ColorMenuButton}s but disables the dropdown. 13 | * 14 | * @constructor 15 | * @extends {goog.ui.ColorMenuButtonRenderer} 16 | * @final 17 | */ 18 | constructor(); 19 | } 20 | 21 | } 22 | 23 | declare module goog.ui.ColorButtonRenderer { 24 | 25 | /** 26 | * Default CSS class to be applied to the root element of components rendered 27 | * by this renderer. Additionally, applies class to the button's caption. 28 | * @type {string} 29 | */ 30 | var CSS_CLASS: string; 31 | } 32 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/controlcontent.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.ui { 4 | 5 | /** 6 | * Type declaration for text caption or DOM structure to be used as the content 7 | * of {@link goog.ui.Control}s. 8 | * @typedef {string|Node|Array.|NodeList} 9 | */ 10 | type ControlContent = string|Node|Node[]|NodeList; 11 | } 12 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/cookieeditor.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.ui { 6 | 7 | class CookieEditor extends CookieEditor__Class { } 8 | /** Fake class which should be extended to avoid inheriting static properties */ 9 | class CookieEditor__Class extends goog.ui.Component__Class { 10 | 11 | /** 12 | * Displays and edits the value of a cookie. 13 | * @param {goog.dom.DomHelper=} opt_domHelper Optional DOM helper. 14 | * @constructor 15 | * @extends {goog.ui.Component} 16 | * @final 17 | */ 18 | constructor(opt_domHelper?: goog.dom.DomHelper); 19 | 20 | /** 21 | * Sets the cookie which this component will edit. 22 | * @param {string} cookieKey Cookie key. 23 | */ 24 | selectCookie(cookieKey: string): void; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/css3buttonrenderer.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.ui { 5 | 6 | class Css3ButtonRenderer extends Css3ButtonRenderer__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class Css3ButtonRenderer__Class extends goog.ui.ButtonRenderer__Class { 9 | 10 | /** 11 | * Custom renderer for {@link goog.ui.Button}s. Css3 buttons can contain 12 | * almost arbitrary HTML content, will flow like inline elements, but can be 13 | * styled like block-level elements. 14 | * 15 | * @constructor 16 | * @extends {goog.ui.ButtonRenderer} 17 | * @final 18 | */ 19 | constructor(); 20 | } 21 | 22 | } 23 | 24 | declare module goog.ui.Css3ButtonRenderer { 25 | 26 | /** 27 | * Default CSS class to be applied to the root element of components rendered 28 | * by this renderer. 29 | * @type {string} 30 | */ 31 | var CSS_CLASS: string; 32 | } 33 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/css3menubuttonrenderer.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.ui { 5 | 6 | class Css3MenuButtonRenderer extends Css3MenuButtonRenderer__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class Css3MenuButtonRenderer__Class extends goog.ui.MenuButtonRenderer__Class { 9 | 10 | /** 11 | * Custom renderer for {@link goog.ui.MenuButton}s. Css3 buttons can contain 12 | * almost arbitrary HTML content, will flow like inline elements, but can be 13 | * styled like block-level elements. 14 | * 15 | * @constructor 16 | * @extends {goog.ui.MenuButtonRenderer} 17 | * @final 18 | */ 19 | constructor(); 20 | } 21 | 22 | } 23 | 24 | declare module goog.ui.Css3MenuButtonRenderer { 25 | 26 | /** 27 | * Default CSS class to be applied to the root element of components rendered 28 | * by this renderer. 29 | * @type {string} 30 | */ 31 | var CSS_CLASS: string; 32 | } 33 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/cssnames.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.ui { 4 | 5 | /** 6 | * CSS class name for applying the "display: inline-block" property in a 7 | * cross-browser way. 8 | * @type {string} 9 | */ 10 | var INLINE_BLOCK_CLASSNAME: string; 11 | } 12 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/decorate.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.ui { 5 | 6 | /** 7 | * Decorates the element with a suitable {@link goog.ui.Component} instance, if 8 | * a matching decorator is found. 9 | * @param {Element} element Element to decorate. 10 | * @return {goog.ui.Component?} New component instance, decorating the element. 11 | */ 12 | function decorate(element: Element): goog.ui.Component; 13 | } 14 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/editor/equationeditordialog.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.ui.editor { 6 | 7 | class EquationEditorDialog extends EquationEditorDialog__Class { } 8 | /** Fake class which should be extended to avoid inheriting static properties */ 9 | class EquationEditorDialog__Class extends goog.ui.editor.AbstractDialog__Class { 10 | 11 | /** 12 | * Equation editor dialog (based on goog.ui.editor.AbstractDialog). 13 | * @param {Object} context The context that this dialog runs in. 14 | * @param {goog.dom.DomHelper} domHelper DomHelper to be used to create the 15 | * dialog's dom structure. 16 | * @param {string} equation Initial equation. 17 | * @param {string} helpUrl URL pointing to help documentation. 18 | * @constructor 19 | * @extends {goog.ui.editor.AbstractDialog} 20 | * @final 21 | */ 22 | constructor(context: Object, domHelper: goog.dom.DomHelper, equation: string, helpUrl: string); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/editor/equationeditorokevent.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.ui.editor { 5 | 6 | class EquationEditorOkEvent extends EquationEditorOkEvent__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class EquationEditorOkEvent__Class extends goog.events.Event__Class { 9 | 10 | /** 11 | * OK event object for the equation editor dialog. 12 | * @param {string} equationHtml html containing the equation to put in the 13 | * editable field. 14 | * @constructor 15 | * @extends {goog.events.Event} 16 | * @final 17 | */ 18 | constructor(equationHtml: string); 19 | 20 | /** 21 | * HTML containing the equation to put in the editable field. 22 | * @type {string} 23 | */ 24 | equationHtml: string; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/emoji/emoji.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.ui.emoji { 4 | 5 | class Emoji extends Emoji__Class { } 6 | /** Fake class which should be extended to avoid inheriting static properties */ 7 | class Emoji__Class { 8 | 9 | /** 10 | * Creates an emoji. 11 | * 12 | * A simple wrapper for an emoji. 13 | * 14 | * @param {string} url URL pointing to the source image for the emoji. 15 | * @param {string} id The id of the emoji, e.g., 'std.1'. 16 | * @constructor 17 | * @final 18 | */ 19 | constructor(url: string, id: string); 20 | 21 | /** 22 | * @return {string} The URL for this emoji. 23 | */ 24 | getUrl(): string; 25 | 26 | /** 27 | * @return {string} The id of this emoji. 28 | */ 29 | getId(): string; 30 | } 31 | 32 | } 33 | 34 | declare module goog.ui.emoji.Emoji { 35 | 36 | /** 37 | * The name of the goomoji attribute, used for emoji image elements. 38 | * @type {string} 39 | */ 40 | var ATTRIBUTE: string; 41 | } 42 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/equation/arrowpalette.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.ui.equation { 6 | 7 | class ArrowPalette extends ArrowPalette__Class { } 8 | /** Fake class which should be extended to avoid inheriting static properties */ 9 | class ArrowPalette__Class extends goog.ui.equation.Palette__Class { 10 | 11 | /** 12 | * Constructs a new arrows palette. 13 | * @param {goog.ui.equation.PaletteManager} paletteManager The 14 | * manager of the palette. 15 | * @extends {goog.ui.equation.Palette} 16 | * @constructor 17 | * @final 18 | */ 19 | constructor(paletteManager: goog.ui.equation.PaletteManager); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/equation/changeevent.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.ui.equation { 5 | 6 | class ChangeEvent extends ChangeEvent__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class ChangeEvent__Class extends goog.events.Event__Class { 9 | 10 | /** 11 | * Event fired when equation changes. 12 | * @constructor 13 | * @param {boolean} isValid Whether the equation is valid. 14 | * @extends {goog.events.Event} 15 | * @final 16 | */ 17 | constructor(isValid: boolean); 18 | 19 | /** 20 | * Whether equation is valid. 21 | * @type {boolean} 22 | */ 23 | isValid: boolean; 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/equation/comparisonpalette.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.ui.equation { 6 | 7 | class ComparisonPalette extends ComparisonPalette__Class { } 8 | /** Fake class which should be extended to avoid inheriting static properties */ 9 | class ComparisonPalette__Class extends goog.ui.equation.Palette__Class { 10 | 11 | /** 12 | * Constructs a new comparison palette. 13 | * @param {goog.ui.equation.PaletteManager} paletteManager The 14 | * manager of the palette. 15 | * @extends {goog.ui.equation.Palette} 16 | * @constructor 17 | * @final 18 | */ 19 | constructor(paletteManager: goog.ui.equation.PaletteManager); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/equation/greekpalette.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.ui.equation { 6 | 7 | class GreekPalette extends GreekPalette__Class { } 8 | /** Fake class which should be extended to avoid inheriting static properties */ 9 | class GreekPalette__Class extends goog.ui.equation.Palette__Class { 10 | 11 | /** 12 | * Constructs a new Greek symbols palette. 13 | * @param {goog.ui.equation.PaletteManager} paletteManager The 14 | * manager of the palette. 15 | * @extends {goog.ui.equation.Palette} 16 | * @constructor 17 | * @final 18 | */ 19 | constructor(paletteManager: goog.ui.equation.PaletteManager); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/equation/mathpalette.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.ui.equation { 6 | 7 | class MathPalette extends MathPalette__Class { } 8 | /** Fake class which should be extended to avoid inheriting static properties */ 9 | class MathPalette__Class extends goog.ui.equation.Palette__Class { 10 | 11 | /** 12 | * Constructs a new math palette. 13 | * @param {goog.ui.equation.PaletteManager} paletteManager The 14 | * manager of the palette. 15 | * @extends {goog.ui.equation.Palette} 16 | * @constructor 17 | * @final 18 | */ 19 | constructor(paletteManager: goog.ui.equation.PaletteManager); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/equation/symbolpalette.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.ui.equation { 6 | 7 | class SymbolPalette extends SymbolPalette__Class { } 8 | /** Fake class which should be extended to avoid inheriting static properties */ 9 | class SymbolPalette__Class extends goog.ui.equation.Palette__Class { 10 | 11 | /** 12 | * Constructs a new symbols palette. 13 | * @param {goog.ui.equation.PaletteManager} paletteManager The 14 | * manager of the palette. 15 | * @extends {goog.ui.equation.Palette} 16 | * @constructor 17 | * @final 18 | */ 19 | constructor(paletteManager: goog.ui.equation.PaletteManager); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/filterobservingmenuitemrenderer.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.ui { 5 | 6 | class FilterObservingMenuItemRenderer extends FilterObservingMenuItemRenderer__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class FilterObservingMenuItemRenderer__Class extends goog.ui.MenuItemRenderer__Class { 9 | 10 | /** 11 | * Default renderer for {@link goog.ui.FilterObservingMenuItem}s. Each item has 12 | * the following structure: 13 | *
...(content)...
14 | * 15 | * @constructor 16 | * @extends {goog.ui.MenuItemRenderer} 17 | * @final 18 | */ 19 | constructor(); 20 | } 21 | 22 | } 23 | 24 | declare module goog.ui.FilterObservingMenuItemRenderer { 25 | 26 | /** 27 | * CSS class name the renderer applies to menu item elements. 28 | * @type {string} 29 | */ 30 | var CSS_CLASS: string; 31 | } 32 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/flatbuttonrenderer.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.ui { 5 | 6 | class FlatButtonRenderer extends FlatButtonRenderer__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class FlatButtonRenderer__Class extends goog.ui.ButtonRenderer__Class { 9 | 10 | /** 11 | * Flat renderer for {@link goog.ui.Button}s. Flat buttons can contain 12 | * almost arbitrary HTML content, will flow like inline elements, but can be 13 | * styled like block-level elements. 14 | * @constructor 15 | * @extends {goog.ui.ButtonRenderer} 16 | */ 17 | constructor(); 18 | } 19 | 20 | } 21 | 22 | declare module goog.ui.FlatButtonRenderer { 23 | 24 | /** 25 | * Default CSS class to be applied to the root element of components rendered 26 | * by this renderer. 27 | * @type {string} 28 | */ 29 | var CSS_CLASS: string; 30 | } 31 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/idgenerator.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.ui { 4 | 5 | class IdGenerator extends IdGenerator__Class { } 6 | /** Fake class which should be extended to avoid inheriting static properties */ 7 | class IdGenerator__Class { 8 | 9 | /** 10 | * Creates a new id generator. 11 | * @constructor 12 | * @final 13 | */ 14 | constructor(); 15 | 16 | /** 17 | * Gets the next unique ID. 18 | * @return {string} The next unique identifier. 19 | */ 20 | getNextUniqueId(): string; 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/linkbuttonrenderer.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.ui { 5 | 6 | class LinkButtonRenderer extends LinkButtonRenderer__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class LinkButtonRenderer__Class extends goog.ui.FlatButtonRenderer__Class { 9 | 10 | /** 11 | * Link renderer for {@link goog.ui.Button}s. Link buttons can contain 12 | * almost arbitrary HTML content, will flow like inline elements, but can be 13 | * styled like block-level elements. 14 | * @constructor 15 | * @extends {goog.ui.FlatButtonRenderer} 16 | */ 17 | constructor(); 18 | } 19 | 20 | } 21 | 22 | declare module goog.ui.LinkButtonRenderer { 23 | 24 | /** 25 | * Default CSS class to be applied to the root element of components rendered 26 | * by this renderer. 27 | * @type {string} 28 | */ 29 | var CSS_CLASS: string; 30 | } 31 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/menubar.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | /// 5 | 6 | declare module goog.ui.menuBar { 7 | 8 | /** 9 | * The menuBar factory creates a new menu bar. 10 | * @param {goog.ui.ContainerRenderer=} opt_renderer Renderer used to render or 11 | * decorate the menu bar; defaults to {@link goog.ui.MenuBarRenderer}. 12 | * @param {goog.dom.DomHelper=} opt_domHelper DOM helper, used for document 13 | * interaction. 14 | * @return {!goog.ui.Container} The created menu bar. 15 | */ 16 | function create(opt_renderer?: goog.ui.ContainerRenderer, opt_domHelper?: goog.dom.DomHelper): goog.ui.Container; 17 | } 18 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/menubardecorator.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/menubarrenderer.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.ui { 5 | 6 | class MenuBarRenderer extends MenuBarRenderer__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class MenuBarRenderer__Class extends goog.ui.ContainerRenderer__Class { 9 | 10 | /** 11 | * Default renderer for {@link goog.ui.menuBar}s, based on {@link 12 | * goog.ui.ContainerRenderer}. 13 | * @constructor 14 | * @extends {goog.ui.ContainerRenderer} 15 | * @final 16 | */ 17 | constructor(); 18 | } 19 | 20 | } 21 | 22 | declare module goog.ui.MenuBarRenderer { 23 | 24 | /** 25 | * Default CSS class to be applied to the root element of elements rendered 26 | * by this renderer. 27 | * @type {string} 28 | */ 29 | var CSS_CLASS: string; 30 | } 31 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/menuheader.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | /// 5 | /// 6 | 7 | declare module goog.ui { 8 | 9 | class MenuHeader extends MenuHeader__Class { } 10 | /** Fake class which should be extended to avoid inheriting static properties */ 11 | class MenuHeader__Class extends goog.ui.Control__Class { 12 | 13 | /** 14 | * Class representing a menu header. 15 | * @param {goog.ui.ControlContent} content Text caption or DOM structure to 16 | * display as the content of the item (use to add icons or styling to 17 | * menus). 18 | * @param {goog.dom.DomHelper=} opt_domHelper Optional DOM helper used for 19 | * document interactions. 20 | * @param {goog.ui.MenuHeaderRenderer=} opt_renderer Optional renderer. 21 | * @constructor 22 | * @extends {goog.ui.Control} 23 | */ 24 | constructor(content: goog.ui.ControlContent, opt_domHelper?: goog.dom.DomHelper, opt_renderer?: goog.ui.MenuHeaderRenderer); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/menuheaderrenderer.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.ui { 5 | 6 | class MenuHeaderRenderer extends MenuHeaderRenderer__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class MenuHeaderRenderer__Class extends goog.ui.ControlRenderer__Class { 9 | 10 | /** 11 | * Renderer for menu headers. 12 | * @constructor 13 | * @extends {goog.ui.ControlRenderer} 14 | */ 15 | constructor(); 16 | } 17 | 18 | } 19 | 20 | declare module goog.ui.MenuHeaderRenderer { 21 | 22 | /** 23 | * Default CSS class to be applied to the root element of components rendered 24 | * by this renderer. 25 | * @type {string} 26 | */ 27 | var CSS_CLASS: string; 28 | } 29 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/menuseparator.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.ui { 6 | 7 | class MenuSeparator extends MenuSeparator__Class { } 8 | /** Fake class which should be extended to avoid inheriting static properties */ 9 | class MenuSeparator__Class extends goog.ui.Separator__Class { 10 | 11 | /** 12 | * Class representing a menu separator. A menu separator extends {@link 13 | * goog.ui.Separator} by always setting its renderer to {@link 14 | * goog.ui.MenuSeparatorRenderer}. 15 | * @param {goog.dom.DomHelper=} opt_domHelper Optional DOM helper used for 16 | * document interactions. 17 | * @constructor 18 | * @extends {goog.ui.Separator} 19 | */ 20 | constructor(opt_domHelper?: goog.dom.DomHelper); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/menuseparatorrenderer.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.ui { 5 | 6 | class MenuSeparatorRenderer extends MenuSeparatorRenderer__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class MenuSeparatorRenderer__Class extends goog.ui.ControlRenderer__Class { 9 | 10 | /** 11 | * Renderer for menu separators. 12 | * @constructor 13 | * @extends {goog.ui.ControlRenderer} 14 | */ 15 | constructor(); 16 | } 17 | 18 | } 19 | 20 | declare module goog.ui.MenuSeparatorRenderer { 21 | 22 | /** 23 | * Default CSS class to be applied to the root element of components rendered 24 | * by this renderer. 25 | * @type {string} 26 | */ 27 | var CSS_CLASS: string; 28 | } 29 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/mockactivitymonitor.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | declare module goog.ui { 6 | 7 | class MockActivityMonitor extends MockActivityMonitor__Class { } 8 | /** Fake class which should be extended to avoid inheriting static properties */ 9 | class MockActivityMonitor__Class extends goog.ui.ActivityMonitor__Class { 10 | 11 | /** 12 | * A mock implementation of goog.ui.ActivityMonitor for unit testing. Clients 13 | * of this class should override goog.now to return a synthetic time from 14 | * the unit test. 15 | * @constructor 16 | * @extends {goog.ui.ActivityMonitor} 17 | * @final 18 | */ 19 | constructor(); 20 | 21 | /** 22 | * Simulates an event that updates the user to being non-idle. 23 | * @param {goog.events.EventType=} opt_type The type of event that made the user 24 | * not idle. If not specified, defaults to MOUSEMOVE. 25 | */ 26 | simulateEvent(opt_type?: goog.events.EventType): void; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/nativebuttonrenderer.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.ui { 5 | 6 | class NativeButtonRenderer extends NativeButtonRenderer__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class NativeButtonRenderer__Class extends goog.ui.ButtonRenderer__Class { 9 | 10 | /** 11 | * Renderer for {@link goog.ui.Button}s. Renders and decorates native HTML 12 | * button elements. Since native HTML buttons have built-in support for many 13 | * features, overrides many expensive (and redundant) superclass methods to 14 | * be no-ops. 15 | * @constructor 16 | * @extends {goog.ui.ButtonRenderer} 17 | */ 18 | constructor(); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/option.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | /// 5 | 6 | declare module goog.ui { 7 | 8 | class Option extends Option__Class { } 9 | /** Fake class which should be extended to avoid inheriting static properties */ 10 | class Option__Class extends goog.ui.MenuItem__Class { 11 | 12 | /** 13 | * Class representing a menu option. This is just a convenience class that 14 | * extends {@link goog.ui.MenuItem} by making it selectable. 15 | * 16 | * @param {goog.ui.ControlContent} content Text caption or DOM structure to 17 | * display as the content of the item (use to add icons or styling to 18 | * menus). 19 | * @param {*=} opt_model Data/model associated with the menu item. 20 | * @param {goog.dom.DomHelper=} opt_domHelper Optional DOM helper used for 21 | * document interactions. 22 | * @constructor 23 | * @extends {goog.ui.MenuItem} 24 | */ 25 | constructor(content: goog.ui.ControlContent, opt_model?: any, opt_domHelper?: goog.dom.DomHelper); 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/separator.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | /// 5 | 6 | declare module goog.ui { 7 | 8 | class Separator extends Separator__Class { } 9 | /** Fake class which should be extended to avoid inheriting static properties */ 10 | class Separator__Class extends goog.ui.Control__Class { 11 | 12 | /** 13 | * Class representing a separator. Although it extends {@link goog.ui.Control}, 14 | * the Separator class doesn't allocate any event handlers, nor does it change 15 | * its appearance on mouseover, etc. 16 | * @param {goog.ui.MenuSeparatorRenderer=} opt_renderer Renderer to render or 17 | * decorate the separator; defaults to {@link goog.ui.MenuSeparatorRenderer}. 18 | * @param {goog.dom.DomHelper=} opt_domHelper Optional DOM helper, used for 19 | * document interaction. 20 | * @constructor 21 | * @extends {goog.ui.Control} 22 | */ 23 | constructor(opt_renderer?: goog.ui.MenuSeparatorRenderer, opt_domHelper?: goog.dom.DomHelper); 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/submenurenderer.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.ui { 5 | 6 | class SubMenuRenderer extends SubMenuRenderer__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class SubMenuRenderer__Class extends goog.ui.MenuItemRenderer__Class { 9 | 10 | /** 11 | * Default renderer for {@link goog.ui.SubMenu}s. Each item has the following 12 | * structure: 13 | *
14 | * ...(menuitem content)... 15 | *
16 | * ... (submenu content) ... 17 | *
18 | *
19 | * @constructor 20 | * @extends {goog.ui.MenuItemRenderer} 21 | * @final 22 | */ 23 | constructor(); 24 | } 25 | 26 | } 27 | 28 | declare module goog.ui.SubMenuRenderer { 29 | 30 | /** 31 | * Default CSS class to be applied to the root element of components rendered 32 | * by this renderer. 33 | * @type {string} 34 | */ 35 | var CSS_CLASS: string; 36 | } 37 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/textarearenderer.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.ui { 5 | 6 | class TextareaRenderer extends TextareaRenderer__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class TextareaRenderer__Class extends goog.ui.ControlRenderer__Class { 9 | 10 | /** 11 | * Renderer for {@link goog.ui.Textarea}s. Renders and decorates native HTML 12 | * textarea elements. Since native HTML textareas have built-in support for 13 | * many features, overrides many expensive (and redundant) superclass methods to 14 | * be no-ops. 15 | * @constructor 16 | * @extends {goog.ui.ControlRenderer} 17 | * @final 18 | */ 19 | constructor(); 20 | } 21 | 22 | } 23 | 24 | declare module goog.ui.TextareaRenderer { 25 | 26 | /** 27 | * Default CSS class to be applied to the root element of components rendered 28 | * by this renderer. 29 | * @type {string} 30 | */ 31 | var CSS_CLASS: string; 32 | } 33 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/toolbarbuttonrenderer.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.ui { 5 | 6 | class ToolbarButtonRenderer extends ToolbarButtonRenderer__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class ToolbarButtonRenderer__Class extends goog.ui.CustomButtonRenderer__Class { 9 | 10 | /** 11 | * Toolbar-specific renderer for {@link goog.ui.Button}s, based on {@link 12 | * goog.ui.CustomButtonRenderer}. 13 | * @constructor 14 | * @extends {goog.ui.CustomButtonRenderer} 15 | */ 16 | constructor(); 17 | } 18 | 19 | } 20 | 21 | declare module goog.ui.ToolbarButtonRenderer { 22 | 23 | /** 24 | * Default CSS class to be applied to the root element of buttons rendered 25 | * by this renderer. 26 | * @type {string} 27 | */ 28 | var CSS_CLASS: string; 29 | } 30 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/toolbarcolormenubuttonrenderer.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.ui { 5 | 6 | class ToolbarColorMenuButtonRenderer extends ToolbarColorMenuButtonRenderer__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class ToolbarColorMenuButtonRenderer__Class extends goog.ui.ToolbarMenuButtonRenderer__Class { 9 | 10 | /** 11 | * Toolbar-style renderer for {@link goog.ui.ColorMenuButton}s. 12 | * @constructor 13 | * @extends {goog.ui.ToolbarMenuButtonRenderer} 14 | * @final 15 | */ 16 | constructor(); 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/toolbarmenubuttonrenderer.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.ui { 5 | 6 | class ToolbarMenuButtonRenderer extends ToolbarMenuButtonRenderer__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class ToolbarMenuButtonRenderer__Class extends goog.ui.MenuButtonRenderer__Class { 9 | 10 | /** 11 | * Toolbar-specific renderer for {@link goog.ui.MenuButton}s, based on {@link 12 | * goog.ui.MenuButtonRenderer}. 13 | * @constructor 14 | * @extends {goog.ui.MenuButtonRenderer} 15 | */ 16 | constructor(); 17 | } 18 | 19 | } 20 | 21 | declare module goog.ui.ToolbarMenuButtonRenderer { 22 | 23 | /** 24 | * Default CSS class to be applied to the root element of menu buttons rendered 25 | * by this renderer. 26 | * @type {string} 27 | */ 28 | var CSS_CLASS: string; 29 | } 30 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/toolbarrenderer.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.ui { 5 | 6 | class ToolbarRenderer extends ToolbarRenderer__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class ToolbarRenderer__Class extends goog.ui.ContainerRenderer__Class { 9 | 10 | /** 11 | * Default renderer for {@link goog.ui.Toolbar}s, based on {@link 12 | * goog.ui.ContainerRenderer}. 13 | * @constructor 14 | * @extends {goog.ui.ContainerRenderer} 15 | */ 16 | constructor(); 17 | } 18 | 19 | } 20 | 21 | declare module goog.ui.ToolbarRenderer { 22 | 23 | /** 24 | * Default CSS class to be applied to the root element of toolbars rendered 25 | * by this renderer. 26 | * @type {string} 27 | */ 28 | var CSS_CLASS: string; 29 | } 30 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/toolbarseparator.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | /// 5 | 6 | declare module goog.ui { 7 | 8 | class ToolbarSeparator extends ToolbarSeparator__Class { } 9 | /** Fake class which should be extended to avoid inheriting static properties */ 10 | class ToolbarSeparator__Class extends goog.ui.Separator__Class { 11 | 12 | /** 13 | * A separator control for a toolbar. 14 | * 15 | * @param {goog.ui.ToolbarSeparatorRenderer=} opt_renderer Renderer to render or 16 | * decorate the separator; defaults to 17 | * {@link goog.ui.ToolbarSeparatorRenderer}. 18 | * @param {goog.dom.DomHelper=} opt_domHelper Optional DOM helper, used for 19 | * document interaction. 20 | * @constructor 21 | * @extends {goog.ui.Separator} 22 | * @final 23 | */ 24 | constructor(opt_renderer?: goog.ui.ToolbarSeparatorRenderer, opt_domHelper?: goog.dom.DomHelper); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/toolbarseparatorrenderer.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.ui { 5 | 6 | class ToolbarSeparatorRenderer extends ToolbarSeparatorRenderer__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class ToolbarSeparatorRenderer__Class extends goog.ui.MenuSeparatorRenderer__Class { 9 | 10 | /** 11 | * Renderer for toolbar separators. 12 | * @constructor 13 | * @extends {goog.ui.MenuSeparatorRenderer} 14 | */ 15 | constructor(); 16 | } 17 | 18 | } 19 | 20 | declare module goog.ui.ToolbarSeparatorRenderer { 21 | 22 | /** 23 | * Default CSS class to be applied to the root element of components rendered 24 | * by this renderer. 25 | * @type {string} 26 | */ 27 | var CSS_CLASS: string; 28 | } 29 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/tree/treenode.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | /// 5 | 6 | declare module goog.ui.tree { 7 | 8 | class TreeNode extends TreeNode__Class { } 9 | /** Fake class which should be extended to avoid inheriting static properties */ 10 | class TreeNode__Class extends goog.ui.tree.BaseNode__Class { 11 | 12 | /** 13 | * A single node in the tree. 14 | * @param {string|!goog.html.SafeHtml} html The html content of the node label. 15 | * @param {Object=} opt_config The configuration for the tree. See 16 | * goog.ui.tree.TreeControl.defaultConfig. If not specified, a default config 17 | * will be used. 18 | * @param {goog.dom.DomHelper=} opt_domHelper Optional DOM helper. 19 | * @constructor 20 | * @extends {goog.ui.tree.BaseNode} 21 | */ 22 | constructor(html: string|goog.html.SafeHtml, opt_config?: Object, opt_domHelper?: goog.dom.DomHelper); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/ui/tristatemenuitemrenderer.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | declare module goog.ui { 5 | 6 | class TriStateMenuItemRenderer extends TriStateMenuItemRenderer__Class { } 7 | /** Fake class which should be extended to avoid inheriting static properties */ 8 | class TriStateMenuItemRenderer__Class extends goog.ui.MenuItemRenderer__Class { 9 | 10 | /** 11 | * Default renderer for {@link goog.ui.TriStateMenuItemRenderer}s. Each item has 12 | * the following structure: 13 | *
14 | *
15 | *
...(content)...
16 | *
17 | * @constructor 18 | * @extends {goog.ui.MenuItemRenderer} 19 | * @final 20 | */ 21 | constructor(); 22 | } 23 | 24 | } 25 | 26 | declare module goog.ui.TriStateMenuItemRenderer { 27 | 28 | /** 29 | * CSS class name the renderer applies to menu item elements. 30 | * @type {string} 31 | */ 32 | var CSS_CLASS: string; 33 | } 34 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/useragent/adobereader.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.userAgent.adobeReader { 4 | 5 | /** 6 | * Whether we detect the user has the Adobe Reader browser plugin installed. 7 | * @type {boolean} 8 | */ 9 | var HAS_READER: boolean; 10 | 11 | /** 12 | * The version of the installed Adobe Reader plugin. Versions after 7 13 | * will all be reported as '7'. 14 | * @type {string} 15 | */ 16 | var VERSION: string; 17 | 18 | /** 19 | * On certain combinations of platform/browser/plugin, a print dialog 20 | * can be shown for PDF files without a download dialog or making the 21 | * PDF visible to the user, by loading the PDF into a hidden iframe. 22 | * 23 | * Currently this variable is true if Adobe Reader version 6 or later 24 | * is detected on Windows. 25 | * 26 | * @type {boolean} 27 | */ 28 | var SILENT_PRINT: boolean; 29 | } 30 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/useragent/flash.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.userAgent.flash { 4 | 5 | /** 6 | * Whether we can detect that the browser has flash 7 | * @type {boolean} 8 | */ 9 | var HAS_FLASH: boolean; 10 | 11 | /** 12 | * Full version information of flash installed, in form 7.0.61 13 | * @type {string} 14 | */ 15 | var VERSION: string; 16 | 17 | /** 18 | * Whether the installed flash version is as new or newer than a given version. 19 | * @param {string} version The version to check. 20 | * @return {boolean} Whether the installed flash version is as new or newer 21 | * than a given version. 22 | */ 23 | function isVersion(version: string): boolean; 24 | } 25 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/useragent/iphoto.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.userAgent.iphoto { 4 | 5 | /** 6 | * Whether we can detect that the user has iPhoto installed. 7 | * @type {boolean} 8 | */ 9 | var HAS_IPHOTO: boolean; 10 | 11 | /** 12 | * The version of iPhoto installed if found. 13 | * @type {string} 14 | */ 15 | var VERSION: string; 16 | 17 | /** 18 | * Whether the installed version of iPhoto is as new or newer than a given 19 | * version. 20 | * @param {string} version The version to check. 21 | * @return {boolean} Whether the installed version of iPhoto is as new or newer 22 | * than a given version. 23 | */ 24 | function isVersion(version: string): boolean; 25 | } 26 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/useragent/jscript.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.userAgent.jscript { 4 | 5 | /** 6 | * Whether we detect that the user agent is using Microsoft JScript. 7 | * @type {boolean} 8 | */ 9 | var HAS_JSCRIPT: boolean; 10 | 11 | /** 12 | * The installed version of JScript. 13 | * @type {string} 14 | */ 15 | var VERSION: string; 16 | 17 | /** 18 | * Whether the installed version of JScript is as new or newer than a given 19 | * version. 20 | * @param {string} version The version to check. 21 | * @return {boolean} Whether the installed version of JScript is as new or 22 | * newer than the given version. 23 | */ 24 | function isVersion(version: string): boolean; 25 | } 26 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/useragent/keyboard.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.userAgent.keyboard { 4 | 5 | /** 6 | * Whether the user agent is running in an environment that uses Mac-based 7 | * keyboard shortcuts. 8 | * @type {boolean} 9 | */ 10 | var MAC_KEYBOARD: boolean; 11 | } 12 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/useragent/picasa.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.userAgent.picasa { 4 | 5 | /** 6 | * Whether we detect the user has Picasa installed. 7 | * @type {boolean} 8 | */ 9 | var HAS_PICASA: boolean; 10 | 11 | /** 12 | * The installed version of Picasa. If Picasa is detected, this means it is 13 | * version 2 or later. The precise version number is not yet available to the 14 | * browser, this is a placeholder for later versions of Picasa. 15 | * @type {string} 16 | */ 17 | var VERSION: string; 18 | 19 | /** 20 | * Whether the installed Picasa version is as new or newer than a given version. 21 | * This is not yet relevant, we can't detect the true Picasa version number yet, 22 | * but this may be possible in future Picasa releases. 23 | * @param {string} version The version to check. 24 | * @return {boolean} Whether the installed Picasa version is as new or newer 25 | * than a given version. 26 | */ 27 | function isVersion(version: string): boolean; 28 | } 29 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/useragent/platform.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.userAgent.platform { 4 | 5 | /** 6 | * The version of the platform. We only determine the version for Windows and 7 | * Mac, since it doesn't make much sense on Linux. For Windows, we only look at 8 | * the NT version. Non-NT-based versions (e.g. 95, 98, etc.) are given version 9 | * 0.0 10 | * @type {string} 11 | */ 12 | var VERSION: string; 13 | 14 | /** 15 | * Whether the user agent platform version is higher or the same as the given 16 | * version. 17 | * 18 | * @param {string|number} version The version to check. 19 | * @return {boolean} Whether the user agent platform version is higher or the 20 | * same as the given version. 21 | */ 22 | function isVersion(version: string|number): boolean; 23 | } 24 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/useragent/product_isversion.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.userAgent.product { 4 | 5 | /** 6 | * The version of the user agent. This is a string because it might contain 7 | * 'b' (as in beta) as well as multiple dots. 8 | * @type {string} 9 | */ 10 | var VERSION: string; 11 | 12 | /** 13 | * Whether the user agent product version is higher or the same as the given 14 | * version. 15 | * 16 | * @param {string|number} version The version to check. 17 | * @return {boolean} Whether the user agent product version is higher or the 18 | * same as the given version. 19 | */ 20 | function isVersion(version: string|number): boolean; 21 | } 22 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/useragent/useragenttestutil.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.userAgentTestUtil { 4 | 5 | /** 6 | * Rerun the initialization code to set all of the goog.userAgent constants. 7 | * @suppress {accessControls} 8 | */ 9 | function reinitializeUserAgent(): void; 10 | 11 | /** 12 | * Browser definitions. 13 | * @enum {string} 14 | */ 15 | enum UserAgents { GECKO, IE, OPERA, WEBKIT } 16 | 17 | /** 18 | * Return whether a given user agent has been detected. 19 | * @param {string} agent Value in UserAgents. 20 | * @return {boolean} Whether the user agent has been detected. 21 | */ 22 | function getUserAgentDetected(agent: string): boolean; 23 | } 24 | -------------------------------------------------------------------------------- /index/closure-library/closure/goog/vec/vec.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.vec { 4 | 5 | /** @typedef {!Float32Array} */ 6 | type Float32 = Float32Array; 7 | 8 | /** @typedef {!Float64Array} */ 9 | type Float64 = Float64Array; 10 | 11 | /** @typedef {!Array.} */ 12 | interface Number extends Array { } 13 | 14 | /** @typedef {!goog.vec.Float32|!goog.vec.Float64|!goog.vec.Number} */ 15 | type AnyType = goog.vec.Float32|goog.vec.Float64|goog.vec.Number; 16 | 17 | /** 18 | * @deprecated Use AnyType. 19 | * @typedef {!Float32Array|!Array.} 20 | */ 21 | type ArrayType = Float32Array|number[]; 22 | 23 | /** 24 | * For graphics work, 6 decimal places of accuracy are typically all that is 25 | * required. 26 | * 27 | * @type {number} 28 | * @const 29 | */ 30 | var EPSILON: number; 31 | } 32 | -------------------------------------------------------------------------------- /index/closure-library/third_party/closure/goog/base.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/third_party/closure/goog/deps.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /index/closure-library/third_party/closure/goog/jpeg_encoder/jpeg_encoder_basic.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module goog.crypt { 4 | 5 | class JpegEncoder extends JpegEncoder__Class { } 6 | /** Fake class which should be extended to avoid inheriting static properties */ 7 | class JpegEncoder__Class { 8 | 9 | /** 10 | * Initializes the JpegEncoder. 11 | * 12 | * @constructor 13 | * @param {number=} opt_quality The compression quality. Default 50. 14 | */ 15 | constructor(opt_quality?: number); 16 | 17 | /** 18 | * Encodes ImageData to JPEG. 19 | * 20 | * @param {ImageData} image 21 | * @param {number=} opt_quality The compression quality. 22 | * @return {string} base64-encoded JPEG data. 23 | */ 24 | encode(image: ImageData, opt_quality?: number): string; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /index/closure-library/third_party/closure/goog/osapi/osapi.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module osapi { 4 | 5 | /** @type {Function} */ 6 | var callback: Function; 7 | } 8 | 9 | declare module goog.osapi { 10 | 11 | /** 12 | * Dispatch a JSON-RPC batch request to services defined in the osapi namespace 13 | * @param {Array.} requests an array of rpc requests. 14 | */ 15 | function handleGadgetRpcMethod(requests: Object[]): void; 16 | 17 | /** 18 | * Initializes container side osapi binding. 19 | */ 20 | function init(): void; 21 | } 22 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "typescript-closure-tools", 3 | "version": "0.0.7", 4 | "description": "Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files", 5 | "author": "George Fraser", 6 | "contributors": [ 7 | "Benjamin P. Jung " 8 | ], 9 | "keywords": [ 10 | "TypeScript", 11 | "Closure" 12 | ], 13 | "repository": { 14 | "type": "git", 15 | "url": "https://github.com/fivetran/typescript-closure-tools" 16 | }, 17 | "preferGlobal": true, 18 | "dependencies": { 19 | "esprima": "*", 20 | "escodegen": "*", 21 | "jsdoc": "*", 22 | "doctrine": "fivetran/doctrine", 23 | "mkdirp": "*", 24 | "colors": "*" 25 | }, 26 | "devDependencies": { 27 | "@types/node": "^10.12.2", 28 | "jasmine-node": "*", 29 | "browserify": "*" 30 | }, 31 | "scripts": { 32 | "prepublish": "tsc --target ES6 --module commonjs definition-generator/src/*.ts && tsc --target ES6 --module commonjs externs-generator/src/*.ts" 33 | }, 34 | "bin": { 35 | "ts2externs": "./externs-generator/src/cli.js", 36 | "closure2ts": "./definition-generator/src/cli.js" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /scripts/check.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Run tsc on each declaration 3 | 4 | FILES=$(find index/closure-library -name '*.d.ts') 5 | 6 | tsc $FILES -------------------------------------------------------------------------------- /scripts/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Example of minifying a set of typescript modules with closure compiler 3 | tsc --target ES6 --module commonjs definition-generator/src/*.ts 4 | tsc --target ES6 --module commonjs externs-generator/src/*.ts 5 | rm -rf dist/ 6 | mkdir -p dist/ 7 | node node_modules/browserify/bin/cmd.js definition-generator/src/page.js > main.min.js 8 | 9 | #java -jar scripts/compiler.jar \ 10 | # --process_common_js_modules \ 11 | # --common_js_entry_module src/page.js \ 12 | # --common_js_module_path_prefix dist/ \ 13 | # --compilation_level WHITESPACE_ONLY \ 14 | # --formatting PRETTY_PRINT \ 15 | # dist/*.js > page/main.min.js -------------------------------------------------------------------------------- /scripts/convert.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Convert the entire closure library to typescript declarations 3 | tsc --module commonjs definition-generator/src/*.ts 4 | 5 | FILES=$(./scripts/list_input_output.sh) 6 | node definition-generator/src/main.js \ 7 | --provides symbols.tsv \ 8 | --globals globals.d.ts \ 9 | --input_root lib/closure-library/ \ 10 | --output_root index/closure-library/ \ 11 | $FILES -------------------------------------------------------------------------------- /scripts/list_files.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # List all files in the closure library that we would like to convert 3 | find lib/closure-library/ -name '*.js' | grep -v '_test.js$' | grep -v '_perf.js$' | grep -v 'testdata' -------------------------------------------------------------------------------- /scripts/list_input_output.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # List input-file.js output-file.d.ts ... 3 | # This format is suitable as the arguments to main.ts 4 | FILES=$(find lib/closure-library/ -name '*.js' | grep -v '_test.js$' | grep -v '_perf.js$' | grep -v 'testdata') 5 | for FILE in $FILES 6 | do 7 | GOOG=${FILE%*.js} 8 | GOOG=${GOOG#lib/} 9 | OUTPUT="index/$GOOG.d.ts" 10 | 11 | echo $FILE $OUTPUT 12 | done -------------------------------------------------------------------------------- /scripts/provides.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Generate symbols.tsv, a tab-separated-value file listing input-file.js exported.symbol 3 | rm symbols.tsv 4 | touch symbols.tsv 5 | 6 | FILES=$(./scripts/list_files.sh) 7 | 8 | for FILE in $FILES 9 | do 10 | PROVIDES=$(grep 'goog.provide' ${FILE} | sed -e "s/goog.provide('\(.\+\)');/\1/") 11 | 12 | for PROVIDE in $PROVIDES 13 | do 14 | echo -e "$FILE\t$PROVIDE" >> symbols.tsv 15 | done 16 | done 17 | -------------------------------------------------------------------------------- /scripts/references.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Generate _references.ts, a typescript file referencing all the generated declarations 3 | FILES=$(find index/closure-library -name '*.d.ts') 4 | REFERENCES=$(for FILE in $FILES 5 | do 6 | echo "/// " 7 | done) 8 | 9 | echo "$REFERENCES" > index/closure-library/_references.ts -------------------------------------------------------------------------------- /scripts/test.sh: -------------------------------------------------------------------------------- 1 | tsc --module commonjs definition-generator/src/*.ts 2 | tsc --module commonjs definition-generator/test/*.ts 3 | 4 | ./node_modules/jasmine-node/bin/jasmine-node definition-generator/test/*.js -------------------------------------------------------------------------------- /test/class.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @constructor 3 | * @implements {example.Interface} 4 | * @param {number|string} x 5 | */ 6 | example.Class = function(x) { 7 | /** @type {string} */ 8 | this.thisAssignment = 'x'; 9 | 10 | /** @type {number} */ 11 | this.thisDeclaration; 12 | 13 | /** 14 | * @type {number} 15 | * @private 16 | */ 17 | this.privateAssignment = 1; 18 | 19 | /** 20 | * @type {number} 21 | * @private 22 | */ 23 | this.privateDeclaration; 24 | 25 | /** 26 | * @type {number} 27 | * @private {number} 28 | */ 29 | this.weirdPrivateAnnotation = 1; 30 | }; 31 | 32 | /** 33 | * @param {number|string} x 34 | */ 35 | example.Class.prototype.overloadedMethod = function(x) { 36 | 37 | }; 38 | 39 | /** 40 | * @override 41 | */ 42 | example.Class.prototype.interfaceMethod = function(x) { }; -------------------------------------------------------------------------------- /test/interface.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @interface 3 | */ 4 | example.Interface; 5 | 6 | /** 7 | * @param {number|string} x 8 | */ 9 | example.Interface.prototype.interfaceMethod = function(x) { 10 | 11 | }; -------------------------------------------------------------------------------- /test/missing_params.js: -------------------------------------------------------------------------------- 1 | /** 2 | * No param docs 3 | */ 4 | example.missingParams = function(x, y) { 5 | 6 | }; -------------------------------------------------------------------------------- /test/no_params.js: -------------------------------------------------------------------------------- 1 | /** 2 | * No params at all 3 | */ 4 | example.noParams = function() { 5 | 6 | }; -------------------------------------------------------------------------------- /test/overloaded_function.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @param {number|string} x 3 | */ 4 | example.overloadedFunction = function(x) { 5 | 6 | }; -------------------------------------------------------------------------------- /test/requirejs_function_declaration.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | /** 3 | * @param {number} x 4 | */ 5 | function functionDeclaration(x) { } 6 | }); -------------------------------------------------------------------------------- /test/requirejs_function_expression.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | /** 3 | * @param {number} x 4 | */ 5 | var functionExpression = function(x) { }; 6 | }); -------------------------------------------------------------------------------- /test/requirejs_local_class.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | /** 3 | * @param {number} x 4 | * @constructor 5 | */ 6 | function LocalClass(x) { } 7 | 8 | /** 9 | * @param {number} x 10 | */ 11 | LocalClass.prototype.memberFunction = function(x) { }; 12 | }); -------------------------------------------------------------------------------- /test/requirejs_local_variable.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | /** 3 | * @type {number} 4 | */ 5 | var localVariable = 1; 6 | }); -------------------------------------------------------------------------------- /test/subclass.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @extends {example.Class} 3 | * @constructor 4 | */ 5 | example.SubClass = function() { }; -------------------------------------------------------------------------------- /test/subinterface.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @interface 3 | * @extends {example.Interface} 4 | */ 5 | example.SubInterface; -------------------------------------------------------------------------------- /test/symbols.tsv: -------------------------------------------------------------------------------- 1 | test/interface.js example.Interface -------------------------------------------------------------------------------- /test/typedef_array.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @typedef {string[]} 3 | */ 4 | example.ArrayType; -------------------------------------------------------------------------------- /test/typedef_bang.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @typedef {!Array.} 3 | */ 4 | example.BangType; -------------------------------------------------------------------------------- /test/typedef_union.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @typedef {string|number} 3 | */ 4 | example.UnionType; 5 | 6 | /** 7 | * @param {example.UnionType} x 8 | */ 9 | example.unionFunction = function(x) { }; 10 | 11 | /** 12 | * @param {example.UnionType} x 13 | */ 14 | example.genericUnionFunction = function(x) { }; --------------------------------------------------------------------------------