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

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

Issue 12857006: Removing CssValue APIs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « tools/dom/templates/html/impl/impl_SVGColor.darttemplate ('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 $if DART2JS 7 $if DART2JS
8 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS native "@*DOMWindow" { 8 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS native "@*DOMWindow" {
9 $else 9 $else
10 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { 10 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 * Access a sandboxed file system of the specified `size`. If `persistent` is 229 * Access a sandboxed file system of the specified `size`. If `persistent` is
230 * true, the application will request permission from the user to create 230 * true, the application will request permission from the user to create
231 * lasting storage. This storage cannot be freed without the user's 231 * lasting storage. This storage cannot be freed without the user's
232 * permission. Returns a [Future] whose value stores a reference to the 232 * permission. Returns a [Future] whose value stores a reference to the
233 * sandboxed file system for use. Because the file system is sandboxed, 233 * sandboxed file system for use. Because the file system is sandboxed,
234 * applications cannot access file systems created in other web pages. 234 * applications cannot access file systems created in other web pages.
235 */ 235 */
236 Future<FileSystem> requestFileSystem(int size, {bool persistent: false}) { 236 Future<FileSystem> requestFileSystem(int size, {bool persistent: false}) {
237 return _requestFileSystem(persistent? 1 : 0, size); 237 return _requestFileSystem(persistent? 1 : 0, size);
238 } 238 }
239
240 @DomName('DOMWindow.convertPointFromNodeToPage')
241 @SupportedBrowser(SupportedBrowser.CHROME)
242 @SupportedBrowser(SupportedBrowser.SAFARI)
243 @Experimental
244 Point convertPointFromNodeToPage(Node node, Point point) {
245 var result = _convertPointFromNodeToPage(node,
246 new _DomPoint(point.x, point.y));
247 return new Point(result.x, result.y);
248 }
249
250 @DomName('DOMWindow.convertPointFromPageToNode')
251 @SupportedBrowser(SupportedBrowser.CHROME)
252 @SupportedBrowser(SupportedBrowser.SAFARI)
253 @Experimental
254 Point convertPointFromPageToNode(Node node, Point point) {
255 var result = _convertPointFromPageToNode(node,
256 new _DomPoint(point.x, point.y));
257 return new Point(result.x, result.y);
258 }
259
260 /**
261 * Checks whether [convertPointFromNodeToPage] and
262 * [convertPointFromPageToNode] are supported on the current platform.
263 */
264 static bool get supportsPointConversions => _DomPoint.supported;
239 $!MEMBERS 265 $!MEMBERS
240 266
241 @DomName('DOMWindow.beforeunloadEvent') 267 @DomName('DOMWindow.beforeunloadEvent')
242 @DocsEditable 268 @DocsEditable
243 static const EventStreamProvider<BeforeUnloadEvent> beforeUnloadEvent = 269 static const EventStreamProvider<BeforeUnloadEvent> beforeUnloadEvent =
244 const _BeforeUnloadEventStreamProvider('beforeunload'); 270 const _BeforeUnloadEventStreamProvider('beforeunload');
245 271
246 @DomName('DOMWindow.onbeforeunload') 272 @DomName('DOMWindow.onbeforeunload')
247 @DocsEditable 273 @DocsEditable
248 Stream<Event> get onBeforeUnload => beforeUnloadEvent.forTarget(this); 274 Stream<Event> get onBeforeUnload => beforeUnloadEvent.forTarget(this);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 return wrapped.returnValue; 323 return wrapped.returnValue;
298 }); 324 });
299 325
300 return controller.stream; 326 return controller.stream;
301 } 327 }
302 328
303 String getEventType(EventTarget target) { 329 String getEventType(EventTarget target) {
304 return _eventType; 330 return _eventType;
305 } 331 }
306 } 332 }
OLDNEW
« no previous file with comments | « tools/dom/templates/html/impl/impl_SVGColor.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698