Window class

Top-level container for the current browser tab or window.

In a web browser, each window has a Window object, but within the context of a script, this object represents only the current window. Each other window, tab, and iframe has its own Window object.

Each window contains a Document object, which contains all of the window's content.

Use the top-level window object to access the current window. For example:

// Draw a scene when the window repaints.
drawScene(num delta) {...}
window.animationFrame.then(drawScene);.

// Write to the console.
window.console.log('Jinkies!');
window.console.error('Jeepers!');

Note: This class represents only the current window, while WindowBase is a representation of any window, including other tabs, windows, and frames.

See also

Other resources

Inheritance
Implements
Annotations
  • @DocsEditable()
  • @DomName('Window')

Constants

animationEndEvent → EventStreamProvider<AnimationEvent>
@DocsEditable(), @DomName('Window.webkitAnimationEndEvent'), @Experimental(), @SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.SAFARI)

Static factory designed to expose animationend events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<AnimationEvent>('webkitAnimationEnd')
animationIterationEvent → EventStreamProvider<AnimationEvent>
@DocsEditable(), @DomName('Window.webkitAnimationIterationEvent'), @Experimental(), @SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.SAFARI)

Static factory designed to expose animationiteration events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<AnimationEvent>('webkitAnimationIteration')
animationStartEvent → EventStreamProvider<AnimationEvent>
@DocsEditable(), @DomName('Window.webkitAnimationStartEvent'), @Experimental(), @SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.SAFARI)

Static factory designed to expose animationstart events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<AnimationEvent>('webkitAnimationStart')
beforeUnloadEvent → EventStreamProvider<BeforeUnloadEvent>
@DomName('Window.beforeunloadEvent')

Static factory designed to expose beforeunload events to event handlers that are not necessarily instances of Window.

const _BeforeUnloadEventStreamProvider<BeforeUnloadEvent>('beforeunload')
contentLoadedEvent → EventStreamProvider<Event>
@DocsEditable(), @DomName('Window.DOMContentLoadedEvent')

Static factory designed to expose contentloaded events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<Event>('DOMContentLoaded')
deviceMotionEvent → EventStreamProvider<DeviceMotionEvent>
@DocsEditable(), @DomName('Window.devicemotionEvent'), @Experimental()

Static factory designed to expose devicemotion events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<DeviceMotionEvent>('devicemotion')
deviceOrientationEvent → EventStreamProvider<DeviceOrientationEvent>
@DocsEditable(), @DomName('Window.deviceorientationEvent'), @Experimental()

Static factory designed to expose deviceorientation events to event handlers that are not necessarily instances of Window.

hashChangeEvent → EventStreamProvider<Event>
@DocsEditable(), @DomName('Window.hashchangeEvent')

Static factory designed to expose hashchange events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<Event>('hashchange')
loadStartEvent → EventStreamProvider<Event>
@DocsEditable(), @DomName('Window.loadstartEvent')
const EventStreamProvider<Event>('loadstart')
messageEvent → EventStreamProvider<MessageEvent>
@DocsEditable(), @DomName('Window.messageEvent')

Static factory designed to expose message events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<MessageEvent>('message')
offlineEvent → EventStreamProvider<Event>
@DocsEditable(), @DomName('Window.offlineEvent')

Static factory designed to expose offline events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<Event>('offline')
onlineEvent → EventStreamProvider<Event>
@DocsEditable(), @DomName('Window.onlineEvent')

Static factory designed to expose online events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<Event>('online')
pageHideEvent → EventStreamProvider<Event>
@DocsEditable(), @DomName('Window.pagehideEvent')

Static factory designed to expose pagehide events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<Event>('pagehide')
pageShowEvent → EventStreamProvider<Event>
@DocsEditable(), @DomName('Window.pageshowEvent')

Static factory designed to expose pageshow events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<Event>('pageshow')
PERSISTENT → int
@DocsEditable(), @DomName('Window.PERSISTENT'), @Experimental()

Indicates that file system data cannot be cleared unless given user permission.

1
popStateEvent → EventStreamProvider<PopStateEvent>
@DocsEditable(), @DomName('Window.popstateEvent')

Static factory designed to expose popstate events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<PopStateEvent>('popstate')
progressEvent → EventStreamProvider<Event>
@DocsEditable(), @DomName('Window.progressEvent')
const EventStreamProvider<Event>('progress')
storageEvent → EventStreamProvider<StorageEvent>
@DocsEditable(), @DomName('Window.storageEvent')

Static factory designed to expose storage events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<StorageEvent>('storage')
TEMPORARY → int
@DocsEditable(), @DomName('Window.TEMPORARY'), @Experimental()

Indicates that file system data can be cleared at any time.

0
unloadEvent → EventStreamProvider<Event>
@DocsEditable(), @DomName('Window.unloadEvent')

Static factory designed to expose unload events to event handlers that are not necessarily instances of Window.

const EventStreamProvider<Event>('unload')

Static Properties

instanceRuntimeType → Type
@Deprecated("Internal Use Only"), read-only
supportsPointConversions → bool
read-only

convertPointFromNodeToPage and convertPointFromPageToNode are removed. see http://dev.w3.org/csswg/cssom-view/#geometry

Constructors

Window.internal_()

Properties

animationFrame → Future<num>
read-only

Returns a Future that completes just before the window is about to repaint so the user can draw an animation frame.

applicationCache → ApplicationCache
@DocsEditable(), @DomName('Window.applicationCache'), read-only

The application cache for this window.

caches → CacheStorage
@DocsEditable(), @DomName('Window.caches'), @Experimental(), read-only
closed → bool
@DocsEditable(), @DomName('Window.closed'), read-only
console → Console
@DocsEditable(), @DomName('Window.console'), read-only
crypto → Crypto
@DocsEditable(), @DomName('Window.crypto'), @Experimental(), read-only

Entrypoint for the browser's cryptographic functions.

defaultStatus → String
@DocsEditable(), @DomName('Window.defaultStatus'), @Experimental(), read / write

Deprecated*.

defaultstatus → String
@DocsEditable(), @DomName('Window.defaultstatus'), @Experimental(), read / write

Deprecated*.

devicePixelRatio → num
@DocsEditable(), @DomName('Window.devicePixelRatio'), @Experimental(), read-only

The ratio between physical pixels and logical CSS pixels.

document → Document
@DocsEditable(), @DomName('Window.document'), read-only
history → History
@DocsEditable(), @DomName('Window.history'), read-only

The current session history for this window's newest document.

indexedDB → IdbFactory
@DocsEditable(), @DomName('Window.indexedDB'), @Experimental(), @SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.FIREFOX, '15'), @SupportedBrowser(SupportedBrowser.IE, '10'), read-only
innerHeight → int
@DocsEditable(), @DomName('Window.innerHeight'), read-only

The height of the viewport including scrollbars.

innerWidth → int
@DocsEditable(), @DomName('Window.innerWidth'), read-only

The width of the viewport including scrollbars.

isSecureContext → bool
@DocsEditable(), @DomName('Window.isSecureContext'), @Experimental(), read-only
localStorage → Storage
@DocsEditable(), @DomName('Window.localStorage'), read-only

Storage for this window that persists across sessions.

location → Location
@DocsEditable(), @DomName('Window.location'), read-only
locationbar → BarProp
@DocsEditable(), @DomName('Window.locationbar'), read-only

This window's location bar, which displays the URL.

This window's menu bar, which displays menu commands.

name → String
@DocsEditable(), @DomName('Window.name'), read / write

The name of this window.

The user agent accessing this window.

offscreenBuffering → bool
@DocsEditable(), @DomName('Window.offscreenBuffering'), @Experimental(), read-only

Whether objects are drawn offscreen before being displayed.

onAbort → Stream<Event>
@DocsEditable(), @DomName('Window.onabort'), read-only

Stream of abort events handled by this Window.

onAnimationEnd → Stream<AnimationEvent>
@DocsEditable(), @DomName('Window.onwebkitAnimationEnd'), @Experimental(), read-only

Stream of animationend events handled by this Window.

onAnimationIteration → Stream<AnimationEvent>
@DocsEditable(), @DomName('Window.onwebkitAnimationIteration'), @Experimental(), read-only

Stream of animationiteration events handled by this Window.

onAnimationStart → Stream<AnimationEvent>
@DocsEditable(), @DomName('Window.onwebkitAnimationStart'), @Experimental(), read-only

Stream of animationstart events handled by this Window.

onBeforeUnload → Stream<Event>
@DomName('Window.onbeforeunload'), read-only

Stream of beforeunload events handled by this Window.

onBlur → Stream<Event>
@DocsEditable(), @DomName('Window.onblur'), read-only

Stream of blur events handled by this Window.

onCanPlay → Stream<Event>
@DocsEditable(), @DomName('Window.oncanplay'), read-only
onCanPlayThrough → Stream<Event>
@DocsEditable(), @DomName('Window.oncanplaythrough'), read-only
onChange → Stream<Event>
@DocsEditable(), @DomName('Window.onchange'), read-only

Stream of change events handled by this Window.

onClick → Stream<MouseEvent>
@DocsEditable(), @DomName('Window.onclick'), read-only

Stream of click events handled by this Window.

onContentLoaded → Stream<Event>
@DocsEditable(), @DomName('Window.onDOMContentLoaded'), read-only

Stream of contentloaded events handled by this Window.

onContextMenu → Stream<MouseEvent>
@DocsEditable(), @DomName('Window.oncontextmenu'), read-only

Stream of contextmenu events handled by this Window.

onDeviceMotion → Stream<DeviceMotionEvent>
@DocsEditable(), @DomName('Window.ondevicemotion'), @Experimental(), read-only

Stream of devicemotion events handled by this Window.

onDeviceOrientation → Stream<DeviceOrientationEvent>
@DocsEditable(), @DomName('Window.ondeviceorientation'), @Experimental(), read-only

Stream of deviceorientation events handled by this Window.

onDoubleClick → Stream<Event>
@DocsEditable(), @DomName('Window.ondblclick'), read-only

Stream of doubleclick events handled by this Window.

onDrag → Stream<MouseEvent>
@DocsEditable(), @DomName('Window.ondrag'), read-only

Stream of drag events handled by this Window.

onDragEnd → Stream<MouseEvent>
@DocsEditable(), @DomName('Window.ondragend'), read-only

Stream of dragend events handled by this Window.

onDragEnter → Stream<MouseEvent>
@DocsEditable(), @DomName('Window.ondragenter'), read-only

Stream of dragenter events handled by this Window.

onDragLeave → Stream<MouseEvent>
@DocsEditable(), @DomName('Window.ondragleave'), read-only

Stream of dragleave events handled by this Window.

onDragOver → Stream<MouseEvent>
@DocsEditable(), @DomName('Window.ondragover'), read-only

Stream of dragover events handled by this Window.

onDragStart → Stream<MouseEvent>
@DocsEditable(), @DomName('Window.ondragstart'), read-only

Stream of dragstart events handled by this Window.

onDrop → Stream<MouseEvent>
@DocsEditable(), @DomName('Window.ondrop'), read-only

Stream of drop events handled by this Window.

onDurationChange → Stream<Event>
@DocsEditable(), @DomName('Window.ondurationchange'), read-only
onEmptied → Stream<Event>
@DocsEditable(), @DomName('Window.onemptied'), read-only
onEnded → Stream<Event>
@DocsEditable(), @DomName('Window.onended'), read-only
onError → Stream<Event>
@DocsEditable(), @DomName('Window.onerror'), read-only

Stream of error events handled by this Window.

onFocus → Stream<Event>
@DocsEditable(), @DomName('Window.onfocus'), read-only

Stream of focus events handled by this Window.

onHashChange → Stream<Event>
@DocsEditable(), @DomName('Window.onhashchange'), read-only

Stream of hashchange events handled by this Window.

onInput → Stream<Event>
@DocsEditable(), @DomName('Window.oninput'), read-only

Stream of input events handled by this Window.

onInvalid → Stream<Event>
@DocsEditable(), @DomName('Window.oninvalid'), read-only

Stream of invalid events handled by this Window.

onKeyDown → Stream<KeyboardEvent>
@DocsEditable(), @DomName('Window.onkeydown'), read-only

Stream of keydown events handled by this Window.

onKeyPress → Stream<KeyboardEvent>
@DocsEditable(), @DomName('Window.onkeypress'), read-only

Stream of keypress events handled by this Window.

onKeyUp → Stream<KeyboardEvent>
@DocsEditable(), @DomName('Window.onkeyup'), read-only

Stream of keyup events handled by this Window.

onLoad → Stream<Event>
@DocsEditable(), @DomName('Window.onload'), read-only

Stream of load events handled by this Window.

onLoadedData → Stream<Event>
@DocsEditable(), @DomName('Window.onloadeddata'), read-only
onLoadedMetadata → Stream<Event>
@DocsEditable(), @DomName('Window.onloadedmetadata'), read-only
onLoadStart → Stream<Event>
@DocsEditable(), @DomName('Window.onloadstart'), read-only
onMessage → Stream<MessageEvent>
@DocsEditable(), @DomName('Window.onmessage'), read-only

Stream of message events handled by this Window.

onMouseDown → Stream<MouseEvent>
@DocsEditable(), @DomName('Window.onmousedown'), read-only

Stream of mousedown events handled by this Window.

onMouseEnter → Stream<MouseEvent>
@DocsEditable(), @DomName('Window.onmouseenter'), @Experimental(), read-only

Stream of mouseenter events handled by this Window.

onMouseLeave → Stream<MouseEvent>
@DocsEditable(), @DomName('Window.onmouseleave'), @Experimental(), read-only

Stream of mouseleave events handled by this Window.

onMouseMove → Stream<MouseEvent>
@DocsEditable(), @DomName('Window.onmousemove'), read-only

Stream of mousemove events handled by this Window.

onMouseOut → Stream<MouseEvent>
@DocsEditable(), @DomName('Window.onmouseout'), read-only

Stream of mouseout events handled by this Window.

onMouseOver → Stream<MouseEvent>
@DocsEditable(), @DomName('Window.onmouseover'), read-only

Stream of mouseover events handled by this Window.

onMouseUp → Stream<MouseEvent>
@DocsEditable(), @DomName('Window.onmouseup'), read-only

Stream of mouseup events handled by this Window.

onMouseWheel → Stream<WheelEvent>
@DocsEditable(), @DomName('Window.onmousewheel'), read-only

Stream of mousewheel events handled by this Window.

onOffline → Stream<Event>
@DocsEditable(), @DomName('Window.onoffline'), read-only

Stream of offline events handled by this Window.

onOnline → Stream<Event>
@DocsEditable(), @DomName('Window.ononline'), read-only

Stream of online events handled by this Window.

onPageHide → Stream<Event>
@DocsEditable(), @DomName('Window.onpagehide'), read-only

Stream of pagehide events handled by this Window.

onPageShow → Stream<Event>
@DocsEditable(), @DomName('Window.onpageshow'), read-only

Stream of pageshow events handled by this Window.

onPause → Stream<Event>
@DocsEditable(), @DomName('Window.onpause'), read-only
onPlay → Stream<Event>
@DocsEditable(), @DomName('Window.onplay'), read-only
onPlaying → Stream<Event>
@DocsEditable(), @DomName('Window.onplaying'), read-only
onPopState → Stream<PopStateEvent>
@DocsEditable(), @DomName('Window.onpopstate'), read-only

Stream of popstate events handled by this Window.

onProgress → Stream<Event>
@DocsEditable(), @DomName('Window.onprogress'), read-only
onRateChange → Stream<Event>
@DocsEditable(), @DomName('Window.onratechange'), read-only
onReset → Stream<Event>
@DocsEditable(), @DomName('Window.onreset'), read-only

Stream of reset events handled by this Window.

onResize → Stream<Event>
@DocsEditable(), @DomName('Window.onresize'), read-only

Stream of resize events handled by this Window.

onScroll → Stream<Event>
@DocsEditable(), @DomName('Window.onscroll'), read-only

Stream of scroll events handled by this Window.

onSearch → Stream<Event>
@DocsEditable(), @DomName('Window.onsearch'), @Experimental(), read-only

Stream of search events handled by this Window.

onSeeked → Stream<Event>
@DocsEditable(), @DomName('Window.onseeked'), read-only
onSeeking → Stream<Event>
@DocsEditable(), @DomName('Window.onseeking'), read-only
onSelect → Stream<Event>
@DocsEditable(), @DomName('Window.onselect'), read-only

Stream of select events handled by this Window.

onStalled → Stream<Event>
@DocsEditable(), @DomName('Window.onstalled'), read-only
onStorage → Stream<StorageEvent>
@DocsEditable(), @DomName('Window.onstorage'), read-only

Stream of storage events handled by this Window.

onSubmit → Stream<Event>
@DocsEditable(), @DomName('Window.onsubmit'), read-only

Stream of submit events handled by this Window.

onSuspend → Stream<Event>
@DocsEditable(), @DomName('Window.onsuspend'), read-only
onTimeUpdate → Stream<Event>
@DocsEditable(), @DomName('Window.ontimeupdate'), read-only
onTouchCancel → Stream<TouchEvent>
@DocsEditable(), @DomName('Window.ontouchcancel'), @Experimental(), read-only

Stream of touchcancel events handled by this Window.

onTouchEnd → Stream<TouchEvent>
@DocsEditable(), @DomName('Window.ontouchend'), @Experimental(), read-only

Stream of touchend events handled by this Window.

onTouchMove → Stream<TouchEvent>
@DocsEditable(), @DomName('Window.ontouchmove'), @Experimental(), read-only

Stream of touchmove events handled by this Window.

onTouchStart → Stream<TouchEvent>
@DocsEditable(), @DomName('Window.ontouchstart'), @Experimental(), read-only

Stream of touchstart events handled by this Window.

onTransitionEnd → Stream<TransitionEvent>
@DocsEditable(), @DomName('Window.ontransitionend'), read-only

Stream of transitionend events handled by this Window.

onUnload → Stream<Event>
@DocsEditable(), @DomName('Window.onunload'), read-only

Stream of unload events handled by this Window.

onVolumeChange → Stream<Event>
@DocsEditable(), @DomName('Window.onvolumechange'), read-only
onWaiting → Stream<Event>
@DocsEditable(), @DomName('Window.onwaiting'), read-only
opener → WindowBase
@DocsEditable(), @DomName('Window.opener'), read / write
orientation → int
@DocsEditable(), @DomName('Window.orientation'), @Experimental(), read-only
outerHeight → int
@DocsEditable(), @DomName('Window.outerHeight'), read-only

The height of this window including all user interface elements.

outerWidth → int
@DocsEditable(), @DomName('Window.outerWidth'), read-only

The width of the window including all user interface elements.

pageXOffset → int
@DocsEditable(), @DomName('Window.pageXOffset'), read-only
pageYOffset → int
@DocsEditable(), @DomName('Window.pageYOffset'), read-only
parent → WindowBase
@DocsEditable(), @DomName('Window.parent'), read-only
performance → Performance
@DocsEditable(), @DomName('Window.performance'), @SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.FIREFOX), @SupportedBrowser(SupportedBrowser.IE), read-only

Timing and navigation data for this window.

renderWorklet → _Worklet
@DocsEditable(), @DomName('Window.renderWorklet'), @Experimental(), read-only
screen → Screen
@DocsEditable(), @DomName('Window.screen'), read-only

Information about the screen displaying this window.

screenLeft → int
@DocsEditable(), @DomName('Window.screenLeft'), read-only

The distance from the left side of the screen to the left side of this window.

screenTop → int
@DocsEditable(), @DomName('Window.screenTop'), read-only

The distance from the top of the screen to the top of this window.

screenX → int
@DocsEditable(), @DomName('Window.screenX'), read-only

The distance from the left side of the screen to the mouse pointer.

screenY → int
@DocsEditable(), @DomName('Window.screenY'), read-only

The distance from the top of the screen to the mouse pointer.

scrollbars → BarProp
@DocsEditable(), @DomName('Window.scrollbars'), read-only

This window's scroll bars.

scrollX → int
@DocsEditable(), @DomName('Window.scrollX'), read-only
scrollY → int
@DocsEditable(), @DomName('Window.scrollY'), read-only
self → WindowBase
@DocsEditable(), @DomName('Window.self'), read-only

The current window.

sessionStorage → Storage
@DocsEditable(), @DomName('Window.sessionStorage'), read-only

Storage for this window that is cleared when this session ends.

speechSynthesis → SpeechSynthesis
@DocsEditable(), @DomName('Window.speechSynthesis'), @Experimental(), read-only

Access to speech synthesis in the browser.

status → String
@DocsEditable(), @DomName('Window.status'), read / write

Deprecated*.

statusbar → BarProp
@DocsEditable(), @DomName('Window.statusbar'), read-only

This window's status bar.

styleMedia → StyleMedia
@DocsEditable(), @DomName('Window.styleMedia'), @Experimental(), read-only

Access to CSS media queries.

toolbar → BarProp
@DocsEditable(), @DomName('Window.toolbar'), read-only

This window's tool bar.

top → WindowBase
@DocsEditable(), @DomName('Window.top'), read-only
window → WindowBase
@DocsEditable(), @DomName('Window.window'), read-only

The current window.

hashCode → int
read-only, inherited
on → Events
read-only, inherited

This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.

runtimeType → Type
read-only, inherited

A representation of the runtime type of the object.

Operators

operator ==(other) → bool
inherited

The equality operator.

Methods

alert([String message ]) → void
atob(String atob) → String
@DocsEditable(), @DomName('Window.atob')
btoa(String btoa) → String
@DocsEditable(), @DomName('Window.btoa')
cancelAnimationFrame(int handle) → void
@DocsEditable(), @DomName('Window.cancelAnimationFrame')
cancelIdleCallback(int handle) → void
@DocsEditable(), @DomName('Window.cancelIdleCallback'), @Experimental()
close() → void
@DocsEditable(), @DomName('Window.close')

Closes the window.

confirm([String message ]) → bool
fetch(input, [ Map init ]) → Future
find(String string, bool caseSensitive, bool backwards, bool wrap, bool wholeWord, bool searchInFrames, bool showDialog) → bool
@DocsEditable(), @DomName('Window.find'), @Experimental()

Finds text in this window.

getMatchedCssRules(Element element, String pseudoElement) → List<CssRule>
@DocsEditable(), @DomName('Window.getMatchedCSSRules'), @Experimental()

Returns all CSS rules that apply to the element's pseudo-element.

getSelection() → Selection
@DocsEditable(), @DomName('Window.getSelection')

Returns the currently selected text.

matchMedia(String query) → MediaQueryList
@DocsEditable(), @DomName('Window.matchMedia')

Returns a list of media queries for the given query string.

moveBy(int x, int y) → void
@DocsEditable(), @DomName('Window.moveBy')

Moves this window.

moveTo(Point p) → void

Moves this window to a specific position.

open(String url, String target, [ String features ]) → WindowBase
@DocsEditable(), @DomName('Window.open')
openDatabase(String name, String version, String displayName, int estimatedSize, [ DatabaseCallback creationCallback ]) → SqlDatabase
postMessage(Object message, String targetOrigin, [ List<MessagePort> transfer ]) → void
@DocsEditable(), @DomName('Window.postMessage')

Sends a cross-origin message.

print() → void
@DocsEditable(), @DomName('Window.print')

Opens the print dialog for this window.

requestAnimationFrame(FrameRequestCallback callback) → int
@DomName('Window.requestAnimationFrame')

Called to draw an animation frame and then request the window to repaint after callback has finished (creating the animation).

requestFileSystem(int size, { bool persistent: false }) → Future<FileSystem>

Access a sandboxed file system of the specified size. If persistent is true, the application will request permission from the user to create lasting storage. This storage cannot be freed without the user's permission. Returns a Future whose value stores a reference to the sandboxed file system for use. Because the file system is sandboxed, applications cannot access file systems created in other web pages.

requestIdleCallback(IdleRequestCallback callback, [ Map options ]) → int
resizeBy(int x, int y) → void
@DocsEditable(), @DomName('Window.resizeBy')

Resizes this window by an offset.

resizeTo(int x, int y) → void
@DocsEditable(), @DomName('Window.resizeTo')

Resizes this window to a specific width and height.

resolveLocalFileSystemUrl(String url) → Future<Entry>
scroll([options_OR_x, y, Map scrollOptions ]) → void
scrollBy([options_OR_x, y, Map scrollOptions ]) → void
scrollTo([options_OR_x, y, Map scrollOptions ]) → void
stop() → void
@DocsEditable(), @DomName('Window.stop')

Stops the window from loading.

addEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
dispatchEvent(Event event) → bool
@DocsEditable(), @DomName('EventTarget.dispatchEvent'), inherited
noSuchMethod(Invocation invocation) → dynamic
inherited

Invoked when a non-existent method or property is accessed.

removeEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
toString() → String
inherited

Returns the result of the JavaScript objects toString method.

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/Window-class.html