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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
120 * * [Fullscreen specification](http://www.w3.org/TR/fullscreen/) from W3C. | 120 * * [Fullscreen specification](http://www.w3.org/TR/fullscreen/) from W3C. |
121 */ | 121 */ |
122 @DomName('Document.webkitExitFullscreen') | 122 @DomName('Document.webkitExitFullscreen') |
123 @SupportedBrowser(SupportedBrowser.CHROME) | 123 @SupportedBrowser(SupportedBrowser.CHROME) |
124 @SupportedBrowser(SupportedBrowser.SAFARI) | 124 @SupportedBrowser(SupportedBrowser.SAFARI) |
125 @Experimental() | 125 @Experimental() |
126 void exitFullscreen() { | 126 void exitFullscreen() { |
127 _webkitExitFullscreen(); | 127 _webkitExitFullscreen(); |
128 } | 128 } |
129 | 129 |
130 /** | |
131 * Returns the element, if any, that is currently displayed in fullscreen. | |
Alan Knight
2016/04/19 18:24:34
Are these removed? I don't see them being added ba
Jacob
2016/04/19 21:50:46
These were also in Document... somewhat accidental
Alan Knight
2016/04/19 22:04:08
OK
| |
132 * | |
133 * Returns null if there is currently no fullscreen element. You can use | |
134 * this to determine if the page is in fullscreen mode. | |
135 * | |
136 * myVideo = new VideoElement(); | |
137 * if (document.fullscreenElement == null) { | |
138 * myVideo.requestFullscreen(); | |
139 * print(document.fullscreenElement == myVideo); // true | |
140 * } | |
141 * | |
142 * ## Other resources | |
143 * | |
144 * * [Using the fullscreen | |
145 * API](http://docs.webplatform.org/wiki/tutorials/using_the_full-screen_api ) | |
146 * from WebPlatform.org. | |
147 * * [Fullscreen specification](http://www.w3.org/TR/fullscreen/) from W3C. | |
148 */ | |
149 @DomName('Document.webkitFullscreenElement') | |
150 @SupportedBrowser(SupportedBrowser.CHROME) | |
151 @SupportedBrowser(SupportedBrowser.SAFARI) | |
152 @Experimental() | |
153 Element get fullscreenElement => _webkitFullscreenElement; | |
154 | |
155 /** | |
156 * Returns true if this document can display elements in fullscreen mode. | |
157 * | |
158 * ## Other resources | |
159 * | |
160 * * [Using the fullscreen | |
161 * API](http://docs.webplatform.org/wiki/tutorials/using_the_full-screen_api ) | |
162 * from WebPlatform.org. | |
163 * * [Fullscreen specification](http://www.w3.org/TR/fullscreen/) from W3C. | |
164 */ | |
165 @DomName('Document.webkitFullscreenEnabled') | |
166 @SupportedBrowser(SupportedBrowser.CHROME) | |
167 @SupportedBrowser(SupportedBrowser.SAFARI) | |
168 @Experimental() | |
169 bool get fullscreenEnabled => _webkitFullscreenEnabled; | |
170 | |
171 @DomName('Document.webkitHidden') | |
172 @SupportedBrowser(SupportedBrowser.CHROME) | |
173 @SupportedBrowser(SupportedBrowser.SAFARI) | |
174 @Experimental() | |
175 bool get hidden => _webkitHidden; | |
176 | |
177 @DomName('Document.visibilityState') | |
178 @SupportedBrowser(SupportedBrowser.CHROME) | |
179 @SupportedBrowser(SupportedBrowser.FIREFOX) | |
180 @SupportedBrowser(SupportedBrowser.IE, '10') | |
181 @Experimental() | |
182 $if DART2JS | |
183 String get visibilityState => JS('String', | |
184 '(#.visibilityState || #.mozVisibilityState || #.msVisibilityState ||' | |
185 '#.webkitVisibilityState)', this, this, this, this); | |
186 $else | |
187 String get visibilityState => _webkitVisibilityState; | |
188 $endif | |
189 $if DARTIUM | 130 $if DARTIUM |
190 | 131 |
191 /** | 132 /** |
192 * Internal routine to find the DOM JS class name being extended for custom | 133 * Internal routine to find the DOM JS class name being extended for custom |
193 * elements. | 134 * elements. |
194 */ | 135 */ |
195 String _getJSClassName(ClassMirror classMirror) { | 136 String _getJSClassName(ClassMirror classMirror) { |
196 var jsClassName = null; | 137 var jsClassName = null; |
197 var isElement = false; | 138 var isElement = false; |
198 | 139 |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
525 /// parameter must be provided. | 466 /// parameter must be provided. |
526 @Experimental() | 467 @Experimental() |
527 ElementUpgrader createElementUpgrader(Type type, {String extendsTag}) { | 468 ElementUpgrader createElementUpgrader(Type type, {String extendsTag}) { |
528 $if DART2JS | 469 $if DART2JS |
529 return new _JSElementUpgrader(this, type, extendsTag); | 470 return new _JSElementUpgrader(this, type, extendsTag); |
530 $else | 471 $else |
531 return new _VMElementUpgrader(this, type, extendsTag); | 472 return new _VMElementUpgrader(this, type, extendsTag); |
532 $endif | 473 $endif |
533 } | 474 } |
534 } | 475 } |
OLD | NEW |