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