Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: tools/dom/templates/html/impl/impl_Window.darttemplate

Issue 1580203002: Mark supportsPointConversions deprecated and always true rather than testing DOMPoint (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests/html/html.status ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 part of $LIBRARYNAME; 5 part of $LIBRARYNAME;
6 6
7 @DocsEditable() 7 @DocsEditable()
8 $if DART2JS 8 $if DART2JS
9 $(ANNOTATIONS)@Native("Window,DOMWindow") 9 $(ANNOTATIONS)@Native("Window,DOMWindow")
10 $(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS { 10 $(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 * true, the application will request permission from the user to create 210 * true, the application will request permission from the user to create
211 * lasting storage. This storage cannot be freed without the user's 211 * lasting storage. This storage cannot be freed without the user's
212 * permission. Returns a [Future] whose value stores a reference to the 212 * permission. Returns a [Future] whose value stores a reference to the
213 * sandboxed file system for use. Because the file system is sandboxed, 213 * sandboxed file system for use. Because the file system is sandboxed,
214 * applications cannot access file systems created in other web pages. 214 * applications cannot access file systems created in other web pages.
215 */ 215 */
216 Future<FileSystem> requestFileSystem(int size, {bool persistent: false}) { 216 Future<FileSystem> requestFileSystem(int size, {bool persistent: false}) {
217 return _requestFileSystem(persistent? 1 : 0, size); 217 return _requestFileSystem(persistent? 1 : 0, size);
218 } 218 }
219 219
220 /** 220 /// Obsolete API for testing if Geometry APIs supported.
221 * convertPointFromNodeToPage and convertPointFromPageToNode are removed. 221 @Deprecated("Obsolete")
222 * see http://dev.w3.org/csswg/cssom-view/#geometry 222 static bool get supportsPointConversions => true;
223 */
224 static bool get supportsPointConversions => DomPoint.supported;
225 $!MEMBERS 223 $!MEMBERS
226 224
227 /** 225 /**
228 * Static factory designed to expose `beforeunload` events to event 226 * Static factory designed to expose `beforeunload` events to event
229 * handlers that are not necessarily instances of [Window]. 227 * handlers that are not necessarily instances of [Window].
230 * 228 *
231 * See [EventStreamProvider] for usage information. 229 * See [EventStreamProvider] for usage information.
232 */ 230 */
233 @DomName('Window.beforeunloadEvent') 231 @DomName('Window.beforeunloadEvent')
234 static const EventStreamProvider<BeforeUnloadEvent> beforeUnloadEvent = 232 static const EventStreamProvider<BeforeUnloadEvent> beforeUnloadEvent =
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 359
362 ElementStream<BeforeUnloadEvent> forElement(Element e, {bool useCapture: false }) { 360 ElementStream<BeforeUnloadEvent> forElement(Element e, {bool useCapture: false }) {
363 return new _ElementEventStreamImpl(e, _eventType, useCapture); 361 return new _ElementEventStreamImpl(e, _eventType, useCapture);
364 } 362 }
365 363
366 ElementStream<BeforeUnloadEvent> _forElementList(ElementList e, 364 ElementStream<BeforeUnloadEvent> _forElementList(ElementList e,
367 {bool useCapture: false}) { 365 {bool useCapture: false}) {
368 return new _ElementListEventStreamImpl(e, _eventType, useCapture); 366 return new _ElementListEventStreamImpl(e, _eventType, useCapture);
369 } 367 }
370 } 368 }
OLDNEW
« no previous file with comments | « tests/html/html.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698