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

Unified Diff: sdk/lib/svg/dart2js/svg_dart2js.dart

Issue 11299220: Add @JSName annotation for native fields and methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/svg/dart2js/svg_dart2js.dart
diff --git a/sdk/lib/svg/dart2js/svg_dart2js.dart b/sdk/lib/svg/dart2js/svg_dart2js.dart
index d018a6db5a929a6117d7bc764291f5aa78c6c481..c5330aa24589f8ab97cd319e8e57a49a5bd5f104 100644
--- a/sdk/lib/svg/dart2js/svg_dart2js.dart
+++ b/sdk/lib/svg/dart2js/svg_dart2js.dart
@@ -96,6 +96,7 @@ class AElement extends SvgElement implements Transformable, Tests, UriReference,
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -772,6 +773,7 @@ class CircleElement extends SvgElement implements Transformable, Tests, Stylable
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -848,6 +850,7 @@ class ClipPathElement extends SvgElement implements Transformable, Tests, Stylab
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -1033,6 +1036,7 @@ class DefsElement extends SvgElement implements Transformable, Tests, Stylable,
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -1081,6 +1085,7 @@ class DescElement extends SvgElement implements Stylable, LangSpace native "*SVG
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -1268,6 +1273,7 @@ class EllipseElement extends SvgElement implements Transformable, Tests, Stylabl
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -1380,6 +1386,7 @@ class FEBlendElement extends SvgElement implements FilterPrimitiveStandardAttrib
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -1435,6 +1442,7 @@ class FEColorMatrixElement extends SvgElement implements FilterPrimitiveStandard
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -1474,6 +1482,7 @@ class FEComponentTransferElement extends SvgElement implements FilterPrimitiveSt
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -1545,6 +1554,7 @@ class FECompositeElement extends SvgElement implements FilterPrimitiveStandardAt
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -1625,6 +1635,7 @@ class FEConvolveMatrixElement extends SvgElement implements FilterPrimitiveStand
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -1676,6 +1687,7 @@ class FEDiffuseLightingElement extends SvgElement implements FilterPrimitiveStan
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -1737,6 +1749,7 @@ class FEDisplacementMapElement extends SvgElement implements FilterPrimitiveStan
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -1805,6 +1818,7 @@ class FEDropShadowElement extends SvgElement implements FilterPrimitiveStandardA
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -1841,6 +1855,7 @@ class FEFloodElement extends SvgElement implements FilterPrimitiveStandardAttrib
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -1921,6 +1936,7 @@ class FEGaussianBlurElement extends SvgElement implements FilterPrimitiveStandar
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -1973,6 +1989,7 @@ class FEImageElement extends SvgElement implements FilterPrimitiveStandardAttrib
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -2014,6 +2031,7 @@ class FEMergeElement extends SvgElement implements FilterPrimitiveStandardAttrib
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -2082,6 +2100,7 @@ class FEMorphologyElement extends SvgElement implements FilterPrimitiveStandardA
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -2127,6 +2146,7 @@ class FEOffsetElement extends SvgElement implements FilterPrimitiveStandardAttri
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -2192,6 +2212,7 @@ class FESpecularLightingElement extends SvgElement implements FilterPrimitiveSta
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -2263,6 +2284,7 @@ class FETileElement extends SvgElement implements FilterPrimitiveStandardAttribu
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -2329,6 +2351,7 @@ class FETurbulenceElement extends SvgElement implements FilterPrimitiveStandardA
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -2390,6 +2413,7 @@ class FilterElement extends SvgElement implements UriReference, ExternalResource
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -2424,7 +2448,7 @@ abstract class FilterPrimitiveStandardAttributes implements Stylable {
// From SVGStylable
- AnimatedString className;
+ AnimatedString $dom_svgClassName;
CSSStyleDeclaration style;
@@ -2560,6 +2584,7 @@ class ForeignObjectElement extends SvgElement implements Transformable, Tests, S
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -2633,6 +2658,7 @@ class GElement extends SvgElement implements Transformable, Tests, Stylable, Ext
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -2699,6 +2725,7 @@ class GlyphRefElement extends SvgElement implements UriReference, Stylable nativ
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -2745,6 +2772,7 @@ class GradientElement extends SvgElement implements UriReference, ExternalResour
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -2829,6 +2857,7 @@ class ImageElement extends SvgElement implements Transformable, Tests, UriRefere
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -3096,6 +3125,7 @@ class LineElement extends SvgElement implements Transformable, Tests, Stylable,
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -3262,6 +3292,7 @@ class MarkerElement extends SvgElement implements FitToViewBox, ExternalResource
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -3314,6 +3345,7 @@ class MaskElement extends SvgElement implements Tests, Stylable, ExternalResourc
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -3706,6 +3738,7 @@ class PathElement extends SvgElement implements Transformable, Tests, Stylable,
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -4285,6 +4318,7 @@ class PatternElement extends SvgElement implements FitToViewBox, Tests, UriRefer
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -4416,6 +4450,7 @@ class PolygonElement extends SvgElement implements Transformable, Tests, Stylabl
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -4495,6 +4530,7 @@ class PolylineElement extends SvgElement implements Transformable, Tests, Stylab
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -4676,6 +4712,7 @@ class RectElement extends SvgElement implements Transformable, Tests, Stylable,
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -4772,6 +4809,7 @@ class StopElement extends SvgElement implements Stylable native "*SVGStopElement
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -4906,7 +4944,7 @@ class StringList implements JavaScriptIndexingBehavior, List<String> native "*SV
/// @domName SVGStylable
abstract class Stylable {
- AnimatedString className;
+ AnimatedString $dom_svgClassName;
CSSStyleDeclaration style;
@@ -4961,7 +4999,8 @@ class SvgDocument extends Document native "*SVGDocument" {
final SvgSvgElement rootElement;
/// @domName SVGDocument.createEvent; @docsEditable true
- Event $dom_createEvent(String eventType) native "createEvent";
+ @JSName('createEvent')
+ Event $dom_createEvent(String eventType) native;
}
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -5235,6 +5274,7 @@ class SvgSvgElement extends SvgElement implements FitToViewBox, Tests, Stylable,
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -5309,6 +5349,7 @@ class SwitchElement extends SvgElement implements Transformable, Tests, Stylable
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -5370,6 +5411,7 @@ class SymbolElement extends SvgElement implements FitToViewBox, ExternalResource
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -5483,6 +5525,7 @@ class TextContentElement extends SvgElement implements Tests, Stylable, External
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -5618,6 +5661,7 @@ class TitleElement extends SvgElement implements Stylable, LangSpace native "*SV
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);
@@ -5914,6 +5958,7 @@ class UseElement extends SvgElement implements Transformable, Tests, UriReferenc
// From SVGStylable
+ // Shadowing definition.
/// @domName SVGStylable.className; @docsEditable true
AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", this);

Powered by Google App Engine
This is Rietveld 408576698