| 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 html; | 7 part of html; |
| 8 | 8 |
| 9 /// @domName $DOMNAME | 9 /// @domName $DOMNAME |
| 10 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 10 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
| 11 $!MEMBERS | 11 $!MEMBERS |
| 12 /** @domName Document.body */ | 12 /** @domName Document.body */ |
| 13 BodyElement get body => document.$dom_body; | 13 BodyElement get body => document.$dom_body; |
| 14 | 14 |
| 15 /** @domName Document.body */ | 15 /** @domName Document.body */ |
| 16 void set body(BodyElement value) { | 16 void set body(BodyElement value) { |
| 17 document.$dom_body = value; | 17 document.$dom_body = value; |
| 18 } | 18 } |
| 19 | 19 |
| 20 /** @domName Document.caretRangeFromPoint */ | 20 /** @domName Document.caretRangeFromPoint */ |
| 21 Range caretRangeFromPoint(int x, int y) { | 21 Range caretRangeFromPoint(int x, int y) { |
| 22 return document.$dom_caretRangeFromPoint(x, y); | 22 return document.$dom_caretRangeFromPoint(x, y); |
| 23 } | 23 } |
| 24 | 24 |
| 25 /** @domName Document.elementFromPoint */ | 25 /** @domName Document.elementFromPoint */ |
| 26 Element elementFromPoint(int x, int y) { | 26 Element elementFromPoint(int x, int y) { |
| 27 return document.$dom_elementFromPoint(x, y); | 27 return document.$dom_elementFromPoint(x, y); |
| 28 } | 28 } |
| 29 | 29 |
| 30 /** @domName Document.getCSSCanvasContext */ | 30 /** |
| 31 * Checks if the getCssCanvasContext API is supported on the current platform. |
| 32 * |
| 33 * See also: |
| 34 * |
| 35 * * [getCssCanvasContext] |
| 36 */ |
| 37 $if DART2JS |
| 38 static bool get supportsCssCanvasContext => |
| 39 JS('bool', '!!(document.getCSSCanvasContext)'); |
| 40 $else |
| 41 static bool get supportsCssCanvasContext => true; |
| 42 $endif |
| 43 |
| 44 |
| 45 /** |
| 46 * Gets a CanvasRenderingContext which can be used as the CSS background of an |
| 47 * element. |
| 48 * |
| 49 * CSS: |
| 50 * |
| 51 * background: -webkit-canvas(backgroundCanvas) |
| 52 * |
| 53 * Generate the canvas: |
| 54 * |
| 55 * var context = document.getCssCanvasContext('2d', 'backgroundCanvas', |
| 56 * 100, 100); |
| 57 * context.fillStyle = 'red'; |
| 58 * context.fillRect(0, 0, 100, 100); |
| 59 * |
| 60 * See also: |
| 61 * |
| 62 * * [supportsCssCanvasContext] |
| 63 * * [CanvasElement.getContext] |
| 64 */ |
| 65 @SupportedBrowser(SupportedBrowser.CHROME) |
| 66 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 67 @Experimental() |
| 31 CanvasRenderingContext getCssCanvasContext(String contextId, String name, | 68 CanvasRenderingContext getCssCanvasContext(String contextId, String name, |
| 32 int width, int height) { | 69 int width, int height) { |
| 33 return document.$dom_getCssCanvasContext(contextId, name, width, height); | 70 return document.$dom_getCssCanvasContext(contextId, name, width, height); |
| 34 } | 71 } |
| 35 | 72 |
| 36 /** @domName Document.head */ | 73 /** @domName Document.head */ |
| 37 HeadElement get head => document.$dom_head; | 74 HeadElement get head => document.$dom_head; |
| 38 | 75 |
| 39 /** @domName Document.lastModified */ | 76 /** @domName Document.lastModified */ |
| 40 String get lastModified => document.$dom_lastModified; | 77 String get lastModified => document.$dom_lastModified; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 /** @domName Document.webkitIsFullScreen */ | 126 /** @domName Document.webkitIsFullScreen */ |
| 90 bool get webkitIsFullScreen => document.$dom_webkitIsFullScreen; | 127 bool get webkitIsFullScreen => document.$dom_webkitIsFullScreen; |
| 91 | 128 |
| 92 /** @domName Document.webkitPointerLockElement */ | 129 /** @domName Document.webkitPointerLockElement */ |
| 93 Element get webkitPointerLockElement => | 130 Element get webkitPointerLockElement => |
| 94 document.$dom_webkitPointerLockElement; | 131 document.$dom_webkitPointerLockElement; |
| 95 | 132 |
| 96 /** @domName Document.webkitVisibilityState */ | 133 /** @domName Document.webkitVisibilityState */ |
| 97 String get webkitVisibilityState => document.$dom_webkitVisibilityState; | 134 String get webkitVisibilityState => document.$dom_webkitVisibilityState; |
| 98 } | 135 } |
| OLD | NEW |