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)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
{ | 9 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
{ |
10 $!MEMBERS | 10 $!MEMBERS |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 * (http://www.w3.org/TR/fullscreen/) from W3C. | 119 * (http://www.w3.org/TR/fullscreen/) from W3C. |
120 */ | 120 */ |
121 @DomName('Document.webkitExitFullscreen') | 121 @DomName('Document.webkitExitFullscreen') |
122 @SupportedBrowser(SupportedBrowser.CHROME) | 122 @SupportedBrowser(SupportedBrowser.CHROME) |
123 @SupportedBrowser(SupportedBrowser.SAFARI) | 123 @SupportedBrowser(SupportedBrowser.SAFARI) |
124 @Experimental() | 124 @Experimental() |
125 void exitFullscreen() { | 125 void exitFullscreen() { |
126 _webkitExitFullscreen(); | 126 _webkitExitFullscreen(); |
127 } | 127 } |
128 | 128 |
| 129 @DomName('Document.webkitExitPointerLock') |
| 130 @SupportedBrowser(SupportedBrowser.CHROME) |
| 131 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 132 @Experimental() |
| 133 void exitPointerLock() { |
| 134 _webkitExitPointerLock(); |
| 135 } |
| 136 |
129 /** | 137 /** |
130 * Returns the element, if any, that is currently displayed in fullscreen. | 138 * Returns the element, if any, that is currently displayed in fullscreen. |
131 * | 139 * |
132 * Returns null if there is currently no fullscreen element. You can use | 140 * Returns null if there is currently no fullscreen element. You can use |
133 * this to determine if the page is in fullscreen mode. | 141 * this to determine if the page is in fullscreen mode. |
134 * | 142 * |
135 * myVideo = new VideoElement(); | 143 * myVideo = new VideoElement(); |
136 * if (document.fullscreenElement == null) { | 144 * if (document.fullscreenElement == null) { |
137 * myVideo.requestFullscreen(); | 145 * myVideo.requestFullscreen(); |
138 * print(document.fullscreenElement == myVideo); // true | 146 * print(document.fullscreenElement == myVideo); // true |
(...skipping 29 matching lines...) Expand all Loading... |
168 @SupportedBrowser(SupportedBrowser.SAFARI) | 176 @SupportedBrowser(SupportedBrowser.SAFARI) |
169 @Experimental() | 177 @Experimental() |
170 bool get fullscreenEnabled => _webkitFullscreenEnabled; | 178 bool get fullscreenEnabled => _webkitFullscreenEnabled; |
171 | 179 |
172 @DomName('Document.webkitHidden') | 180 @DomName('Document.webkitHidden') |
173 @SupportedBrowser(SupportedBrowser.CHROME) | 181 @SupportedBrowser(SupportedBrowser.CHROME) |
174 @SupportedBrowser(SupportedBrowser.SAFARI) | 182 @SupportedBrowser(SupportedBrowser.SAFARI) |
175 @Experimental() | 183 @Experimental() |
176 bool get hidden => _webkitHidden; | 184 bool get hidden => _webkitHidden; |
177 | 185 |
| 186 @DomName('Document.webkitPointerLockElement') |
| 187 @SupportedBrowser(SupportedBrowser.CHROME) |
| 188 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 189 @Experimental() |
| 190 Element get pointerLockElement => |
| 191 _webkitPointerLockElement; |
| 192 |
178 @DomName('Document.visibilityState') | 193 @DomName('Document.visibilityState') |
179 @SupportedBrowser(SupportedBrowser.CHROME) | 194 @SupportedBrowser(SupportedBrowser.CHROME) |
180 @SupportedBrowser(SupportedBrowser.FIREFOX) | 195 @SupportedBrowser(SupportedBrowser.FIREFOX) |
181 @SupportedBrowser(SupportedBrowser.IE, '10') | 196 @SupportedBrowser(SupportedBrowser.IE, '10') |
182 @Experimental() | 197 @Experimental() |
183 $if DART2JS | 198 $if DART2JS |
184 String get visibilityState => JS('String', | 199 String get visibilityState => JS('String', |
185 '(#.visibilityState || #.mozVisibilityState || #.msVisibilityState ||' | 200 '(#.visibilityState || #.mozVisibilityState || #.msVisibilityState ||' |
186 '#.webkitVisibilityState)', this, this, this, this); | 201 '#.webkitVisibilityState)', this, this, this, this); |
187 $else | 202 $else |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 /// parameter must be provided. | 312 /// parameter must be provided. |
298 @Experimental() | 313 @Experimental() |
299 ElementUpgrader createElementUpgrader(Type type, {String extendsTag}) { | 314 ElementUpgrader createElementUpgrader(Type type, {String extendsTag}) { |
300 $if DART2JS | 315 $if DART2JS |
301 return new _JSElementUpgrader(this, type, extendsTag); | 316 return new _JSElementUpgrader(this, type, extendsTag); |
302 $else | 317 $else |
303 return new _VMElementUpgrader(this, type, extendsTag); | 318 return new _VMElementUpgrader(this, type, extendsTag); |
304 $endif | 319 $endif |
305 } | 320 } |
306 } | 321 } |
OLD | NEW |