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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 _title = value; | 105 _title = value; |
106 } | 106 } |
107 | 107 |
108 /** | 108 /** |
109 * Returns page to standard layout. | 109 * Returns page to standard layout. |
110 * | 110 * |
111 * Has no effect if the page is not in fullscreen mode. | 111 * Has no effect if the page is not in fullscreen mode. |
112 * | 112 * |
113 * ## Other resources | 113 * ## Other resources |
114 * | 114 * |
115 * * [Using the fullscreen API] | 115 * * [Using the fullscreen |
116 * (http://docs.webplatform.org/wiki/tutorials/using_the_full-screen_api) from | 116 * API](http://docs.webplatform.org/wiki/tutorials/using_the_full-screen_api
) |
117 * WebPlatform.org. | 117 * from WebPlatform.org. |
118 * * [Fullscreen specification] | 118 * * [Fullscreen specification](http://www.w3.org/TR/fullscreen/) from W3C. |
119 * (http://www.w3.org/TR/fullscreen/) from W3C. | |
120 */ | 119 */ |
121 @DomName('Document.webkitExitFullscreen') | 120 @DomName('Document.webkitExitFullscreen') |
122 @SupportedBrowser(SupportedBrowser.CHROME) | 121 @SupportedBrowser(SupportedBrowser.CHROME) |
123 @SupportedBrowser(SupportedBrowser.SAFARI) | 122 @SupportedBrowser(SupportedBrowser.SAFARI) |
124 @Experimental() | 123 @Experimental() |
125 void exitFullscreen() { | 124 void exitFullscreen() { |
126 _webkitExitFullscreen(); | 125 _webkitExitFullscreen(); |
127 } | 126 } |
128 | 127 |
129 /** | 128 /** |
130 * Returns the element, if any, that is currently displayed in fullscreen. | 129 * Returns the element, if any, that is currently displayed in fullscreen. |
131 * | 130 * |
132 * Returns null if there is currently no fullscreen element. You can use | 131 * Returns null if there is currently no fullscreen element. You can use |
133 * this to determine if the page is in fullscreen mode. | 132 * this to determine if the page is in fullscreen mode. |
134 * | 133 * |
135 * myVideo = new VideoElement(); | 134 * myVideo = new VideoElement(); |
136 * if (document.fullscreenElement == null) { | 135 * if (document.fullscreenElement == null) { |
137 * myVideo.requestFullscreen(); | 136 * myVideo.requestFullscreen(); |
138 * print(document.fullscreenElement == myVideo); // true | 137 * print(document.fullscreenElement == myVideo); // true |
139 * } | 138 * } |
140 * | 139 * |
141 * ## Other resources | 140 * ## Other resources |
142 * | 141 * |
143 * * [Using the fullscreen API] | 142 * * [Using the fullscreen |
144 * (http://docs.webplatform.org/wiki/tutorials/using_the_full-screen_api) from | 143 * API](http://docs.webplatform.org/wiki/tutorials/using_the_full-screen_api
) |
145 * WebPlatform.org. | 144 * from WebPlatform.org. |
146 * * [Fullscreen specification] | 145 * * [Fullscreen specification](http://www.w3.org/TR/fullscreen/) from W3C. |
147 * (http://www.w3.org/TR/fullscreen/) from W3C. | |
148 */ | 146 */ |
149 @DomName('Document.webkitFullscreenElement') | 147 @DomName('Document.webkitFullscreenElement') |
150 @SupportedBrowser(SupportedBrowser.CHROME) | 148 @SupportedBrowser(SupportedBrowser.CHROME) |
151 @SupportedBrowser(SupportedBrowser.SAFARI) | 149 @SupportedBrowser(SupportedBrowser.SAFARI) |
152 @Experimental() | 150 @Experimental() |
153 Element get fullscreenElement => _webkitFullscreenElement; | 151 Element get fullscreenElement => _webkitFullscreenElement; |
154 | 152 |
155 /** | 153 /** |
156 * Returns true if this document can display elements in fullscreen mode. | 154 * Returns true if this document can display elements in fullscreen mode. |
157 * | 155 * |
158 * ## Other resources | 156 * ## Other resources |
159 * | 157 * |
160 * * [Using the fullscreen API] | 158 * * [Using the fullscreen |
161 * (http://docs.webplatform.org/wiki/tutorials/using_the_full-screen_api) from | 159 * API](http://docs.webplatform.org/wiki/tutorials/using_the_full-screen_api
) |
162 * WebPlatform.org. | 160 * from WebPlatform.org. |
163 * * [Fullscreen specification] | 161 * * [Fullscreen specification](http://www.w3.org/TR/fullscreen/) from W3C. |
164 * (http://www.w3.org/TR/fullscreen/) from W3C. | |
165 */ | 162 */ |
166 @DomName('Document.webkitFullscreenEnabled') | 163 @DomName('Document.webkitFullscreenEnabled') |
167 @SupportedBrowser(SupportedBrowser.CHROME) | 164 @SupportedBrowser(SupportedBrowser.CHROME) |
168 @SupportedBrowser(SupportedBrowser.SAFARI) | 165 @SupportedBrowser(SupportedBrowser.SAFARI) |
169 @Experimental() | 166 @Experimental() |
170 bool get fullscreenEnabled => _webkitFullscreenEnabled; | 167 bool get fullscreenEnabled => _webkitFullscreenEnabled; |
171 | 168 |
172 @DomName('Document.webkitHidden') | 169 @DomName('Document.webkitHidden') |
173 @SupportedBrowser(SupportedBrowser.CHROME) | 170 @SupportedBrowser(SupportedBrowser.CHROME) |
174 @SupportedBrowser(SupportedBrowser.SAFARI) | 171 @SupportedBrowser(SupportedBrowser.SAFARI) |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 /// parameter must be provided. | 564 /// parameter must be provided. |
568 @Experimental() | 565 @Experimental() |
569 ElementUpgrader createElementUpgrader(Type type, {String extendsTag}) { | 566 ElementUpgrader createElementUpgrader(Type type, {String extendsTag}) { |
570 $if DART2JS | 567 $if DART2JS |
571 return new _JSElementUpgrader(this, type, extendsTag); | 568 return new _JSElementUpgrader(this, type, extendsTag); |
572 $else | 569 $else |
573 return new _VMElementUpgrader(this, type, extendsTag); | 570 return new _VMElementUpgrader(this, type, extendsTag); |
574 $endif | 571 $endif |
575 } | 572 } |
576 } | 573 } |
OLD | NEW |