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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 12964003: Allowing renaming on DOM members on a per-method basis (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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:
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index 7b763024492daee694295d5a872ea84829b6c07d..34076568742b5a95a7670cb2307cc406097ebcf2 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -1223,26 +1223,27 @@ class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen
@DomName('CanvasRenderingContext2D.createImageData')
@DocsEditable
@Creates('ImageData|=Object')
- ImageData createImageData(imagedata_OR_sw, [num sh]) {
- if ((imagedata_OR_sw is ImageData || imagedata_OR_sw == null) && !?sh) {
- var imagedata_1 = _convertDartToNative_ImageData(imagedata_OR_sw);
- return _convertNativeToDart_ImageData(_createImageData_1(imagedata_1));
- }
- if ((imagedata_OR_sw is num || imagedata_OR_sw == null)) {
- return _convertNativeToDart_ImageData(_createImageData_2(imagedata_OR_sw, sh));
- }
- throw new ArgumentError("Incorrect number or type of arguments");
+ ImageData createImageData(num sw, num sh) {
+ return _convertNativeToDart_ImageData(_createImageData_1(sw, sh));
}
@JSName('createImageData')
@DomName('CanvasRenderingContext2D.createImageData')
@DocsEditable
@Creates('ImageData|=Object')
- _createImageData_1(imagedata) native;
+ _createImageData_1(sw, sh) native;
+
+ @DomName('CanvasRenderingContext2D.createImageData')
+ @DocsEditable
+ @Creates('ImageData|=Object')
+ ImageData createImageDataFromImageData(ImageData imagedata) {
+ var imagedata_1 = _convertDartToNative_ImageData(imagedata);
+ return _convertNativeToDart_ImageData(_createImageDataFromImageData_1(imagedata_1));
+ }
@JSName('createImageData')
@DomName('CanvasRenderingContext2D.createImageData')
@DocsEditable
@Creates('ImageData|=Object')
- _createImageData_2(num sw, sh) native;
+ _createImageDataFromImageData_1(imagedata) native;
@DomName('CanvasRenderingContext2D.createLinearGradient')
@DocsEditable
@@ -2491,6 +2492,11 @@ class CssStyleDeclaration native "*CSSStyleDeclaration" {
@DocsEditable
final CssRule parentRule;
+ @JSName('getPropertyValue')
+ @DomName('CSSStyleDeclaration.getPropertyValue')
+ @DocsEditable
+ String _getPropertyValue(String propertyName) native;
+
@JSName('getPropertyCSSValue')
@DomName('CSSStyleDeclaration.getPropertyCSSValue')
@DocsEditable
@@ -2504,11 +2510,6 @@ class CssStyleDeclaration native "*CSSStyleDeclaration" {
@DocsEditable
String getPropertyShorthand(String propertyName) native;
- @JSName('getPropertyValue')
- @DomName('CSSStyleDeclaration.getPropertyValue')
- @DocsEditable
- String _getPropertyValue(String propertyName) native;
-
@DomName('CSSStyleDeclaration.isPropertyImplicit')
@DocsEditable
bool isPropertyImplicit(String propertyName) native;
@@ -17288,10 +17289,6 @@ class MutationEvent extends Event native "*MutationEvent" {
@Experimental
class MutationObserver native "*MutationObserver" {
- @DomName('MutationObserver.disconnect')
- @DocsEditable
- void disconnect() native;
-
@DomName('MutationObserver.observe')
@DocsEditable
void _observe(Node target, Map options) {
@@ -17304,6 +17301,10 @@ class MutationObserver native "*MutationObserver" {
@DocsEditable
void __observe_1(Node target, options) native;
+ @DomName('MutationObserver.disconnect')
+ @DocsEditable
+ void disconnect() native;
+
@DomName('MutationObserver.takeRecords')
@DocsEditable
List<MutationRecord> takeRecords() native;
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698