| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 part of $LIBRARYNAME; | 7 part of $LIBRARYNAME; |
| 8 | 8 |
| 9 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 9 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
| 10 $!MEMBERS | 10 $!MEMBERS |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 List<StyleSheet> get styleSheets => _styleSheets; | 98 List<StyleSheet> get styleSheets => _styleSheets; |
| 99 | 99 |
| 100 @DomName('Document.title') | 100 @DomName('Document.title') |
| 101 String get title => _title; | 101 String get title => _title; |
| 102 | 102 |
| 103 @DomName('Document.title') | 103 @DomName('Document.title') |
| 104 void set title(String value) { | 104 void set title(String value) { |
| 105 _title = value; | 105 _title = value; |
| 106 } | 106 } |
| 107 | 107 |
| 108 /** |
| 109 * Returns page to standard layout. |
| 110 * |
| 111 * Has no effect if the page is not in fullscreen mode. |
| 112 * |
| 113 * ## Other resources |
| 114 * |
| 115 * * [Using the fullscreen API] |
| 116 * (http://docs.webplatform.org/wiki/tutorials/using_the_full-screen_api) from |
| 117 * WebPlatform.org. |
| 118 * * [Fullscreen specification] |
| 119 * (http://www.w3.org/TR/fullscreen/) from W3C. |
| 120 */ |
| 108 @DomName('Document.webkitExitFullscreen') | 121 @DomName('Document.webkitExitFullscreen') |
| 109 @SupportedBrowser(SupportedBrowser.CHROME) | 122 @SupportedBrowser(SupportedBrowser.CHROME) |
| 110 @SupportedBrowser(SupportedBrowser.SAFARI) | 123 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 111 @Experimental() | 124 @Experimental() |
| 112 void exitFullscreen() { | 125 void exitFullscreen() { |
| 113 _webkitExitFullscreen(); | 126 _webkitExitFullscreen(); |
| 114 } | 127 } |
| 115 | 128 |
| 116 @DomName('Document.webkitExitPointerLock') | 129 @DomName('Document.webkitExitPointerLock') |
| 117 @SupportedBrowser(SupportedBrowser.CHROME) | 130 @SupportedBrowser(SupportedBrowser.CHROME) |
| 118 @SupportedBrowser(SupportedBrowser.SAFARI) | 131 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 119 @Experimental() | 132 @Experimental() |
| 120 void exitPointerLock() { | 133 void exitPointerLock() { |
| 121 _webkitExitPointerLock(); | 134 _webkitExitPointerLock(); |
| 122 } | 135 } |
| 123 | 136 |
| 137 /** |
| 138 * Returns the element, if any, that is currently displayed in fullscreen. |
| 139 * |
| 140 * Returns null if there is currently no fullscreen element. You can use |
| 141 * this to determine if the page is in fullscreen mode. |
| 142 * |
| 143 * myVideo = new VideoElement(); |
| 144 * if (document.fullscreenElement == null) { |
| 145 * myVideo.requestFullscreen(); |
| 146 * print(document.fullscreenElement == myVideo); // true |
| 147 * } |
| 148 * |
| 149 * ## Other resources |
| 150 * |
| 151 * * [Using the fullscreen API] |
| 152 * (http://docs.webplatform.org/wiki/tutorials/using_the_full-screen_api) from |
| 153 * WebPlatform.org. |
| 154 * * [Fullscreen specification] |
| 155 * (http://www.w3.org/TR/fullscreen/) from W3C. |
| 156 */ |
| 124 @DomName('Document.webkitFullscreenElement') | 157 @DomName('Document.webkitFullscreenElement') |
| 125 @SupportedBrowser(SupportedBrowser.CHROME) | 158 @SupportedBrowser(SupportedBrowser.CHROME) |
| 126 @SupportedBrowser(SupportedBrowser.SAFARI) | 159 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 127 @Experimental() | 160 @Experimental() |
| 128 Element get fullscreenElement => _webkitFullscreenElement; | 161 Element get fullscreenElement => _webkitFullscreenElement; |
| 129 | 162 |
| 163 /** |
| 164 * Returns true if this document can display elements in fullscreen mode. |
| 165 * |
| 166 * ## Other resources |
| 167 * |
| 168 * * [Using the fullscreen API] |
| 169 * (http://docs.webplatform.org/wiki/tutorials/using_the_full-screen_api) from |
| 170 * WebPlatform.org. |
| 171 * * [Fullscreen specification] |
| 172 * (http://www.w3.org/TR/fullscreen/) from W3C. |
| 173 */ |
| 130 @DomName('Document.webkitFullscreenEnabled') | 174 @DomName('Document.webkitFullscreenEnabled') |
| 131 @SupportedBrowser(SupportedBrowser.CHROME) | 175 @SupportedBrowser(SupportedBrowser.CHROME) |
| 132 @SupportedBrowser(SupportedBrowser.SAFARI) | 176 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 133 @Experimental() | 177 @Experimental() |
| 134 bool get fullscreenEnabled => _webkitFullscreenEnabled; | 178 bool get fullscreenEnabled => _webkitFullscreenEnabled; |
| 135 | 179 |
| 136 @DomName('Document.webkitHidden') | 180 @DomName('Document.webkitHidden') |
| 137 @SupportedBrowser(SupportedBrowser.CHROME) | 181 @SupportedBrowser(SupportedBrowser.CHROME) |
| 138 @SupportedBrowser(SupportedBrowser.SAFARI) | 182 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 139 @Experimental() | 183 @Experimental() |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 $endif | 315 $endif |
| 272 } | 316 } |
| 273 | 317 |
| 274 @SupportedBrowser(SupportedBrowser.CHROME) | 318 @SupportedBrowser(SupportedBrowser.CHROME) |
| 275 @SupportedBrowser(SupportedBrowser.FIREFOX) | 319 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 276 @SupportedBrowser(SupportedBrowser.IE, '10') | 320 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 277 @Experimental() | 321 @Experimental() |
| 278 Stream<Event> get onVisibilityChange => | 322 Stream<Event> get onVisibilityChange => |
| 279 visibilityChangeEvent.forTarget(this); | 323 visibilityChangeEvent.forTarget(this); |
| 280 } | 324 } |
| OLD | NEW |