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

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

Issue 16636002: Partial support for new getters/setters declaration. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
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 336c379adfb7a8b341c4d1e929d4d1e7c8b9c23b..367774f4aeef77318f6fa12dac0e2c4b2bd09033 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -2058,13 +2058,10 @@ class CssKeyframesRule extends CssRule native "WebKitCSSKeyframesRule" {
@DocsEditable
String name;
- @JSName('None')
- @DomName('WebKitCSSKeyframesRule')
- @SupportedBrowser(SupportedBrowser.CHROME)
- @SupportedBrowser(SupportedBrowser.SAFARI)
- @Experimental
- // http://www.w3.org/TR/css3-animations/#csskeyframesrule
- CssKeyframeRule item(int index) native;
+ @DomName('WebKitCSSKeyframesRule.__getter__')
+ @DocsEditable
+ @Experimental // untriaged
+ CssKeyframeRule __getter__(int index) native;
@DomName('WebKitCSSKeyframesRule.deleteRule')
@DocsEditable
@@ -7129,9 +7126,10 @@ class DomSettableTokenList extends DomTokenList native "DOMSettableTokenList" {
@DocsEditable
String value;
- @JSName('None')
- @DomName('DOMSettableTokenList')
- String item(int index) native;
+ @DomName('DOMSettableTokenList.__getter__')
+ @DocsEditable
+ @Experimental // untriaged
+ String __getter__(int index) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -7206,7 +7204,7 @@ class DomStringList extends Interceptor with ListMixin<String>, ImmutableListMix
@DomName('DOMStringMap')
abstract class DomStringMap {
- String None(String name);
+ String __getter__(String name);
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -10599,9 +10597,10 @@ class FormElement extends Element native "HTMLFormElement" {
@DocsEditable
String target;
- @JSName('None')
- @DomName('HTMLFormElement')
- Node item(int index) native;
+ @DomName('HTMLFormElement.__getter__')
+ @DocsEditable
+ @Experimental // untriaged
+ Node __getter__(int index) native;
@DomName('HTMLFormElement.checkValidity')
@DocsEditable
@@ -11283,9 +11282,10 @@ class HtmlElement extends Element native "HTMLHtmlElement" {
@DomName('HTMLFormControlsCollection')
class HtmlFormControlsCollection extends HtmlCollection native "HTMLFormControlsCollection" {
- @JSName('None')
- @DomName('HTMLFormControlsCollection')
- Node item(int index) native;
+ @DomName('HTMLFormControlsCollection.__getter__')
+ @DocsEditable
+ @Experimental // untriaged
+ Node __getter__(int index) native;
@DomName('HTMLFormControlsCollection.namedItem')
@DocsEditable
@@ -19909,10 +19909,10 @@ class Storage implements Map<String, String>
@DocsEditable
final int $dom_length;
- @JSName('None')
- @DomName('Storage')
- @Unstable
- String anonymousIndexedGetter(index_OR_name) native;
+ @DomName('Storage.__getter__')
+ @DocsEditable
+ @Experimental // untriaged
+ String __getter__(index_OR_name) native;
@JSName('clear')
@DomName('Storage.clear')
@@ -22904,17 +22904,21 @@ class Window extends EventTarget implements WindowBase native "Window,DOMWindow"
@Returns('Window|=Object')
final dynamic _get_window;
- @DomName('Window')
+ @DomName('Window.__getter__')
+ @DocsEditable
+ @Experimental // untriaged
@Creates('Window|=Object')
@Returns('Window|=Object')
- WindowBase anonymousIndexedGetter(int index) {
- return _convertNativeToDart_Window(_anonymousIndexedGetter_1(index));
+ WindowBase __getter__(int index) {
+ return _convertNativeToDart_Window(___getter___1(index));
}
- @JSName('None')
- @DomName('Window')
+ @JSName('__getter__')
+ @DomName('Window.__getter__')
+ @DocsEditable
+ @Experimental // untriaged
@Creates('Window|=Object')
@Returns('Window|=Object')
- _anonymousIndexedGetter_1(index) native;
+ ___getter___1(index) native;
@JSName('addEventListener')
@DomName('Window.addEventListener')
« 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