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

Unified Diff: lib/dom/templates/html/dart2js/impl_Window.darttemplate

Issue 10928060: Partially migrate from old getter syntax to new one. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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
Index: lib/dom/templates/html/dart2js/impl_Window.darttemplate
diff --git a/lib/dom/templates/html/dart2js/impl_Window.darttemplate b/lib/dom/templates/html/dart2js/impl_Window.darttemplate
index f776d87ee5d4e6311955d89eee99d234e47e84bc..cc3899a4b6beaccfcf906e3d81d2fd6cb56527f7 100644
--- a/lib/dom/templates/html/dart2js/impl_Window.darttemplate
+++ b/lib/dom/templates/html/dart2js/impl_Window.darttemplate
@@ -4,12 +4,12 @@
class $CLASSNAME$EXTENDS$IMPLEMENTS native "@*DOMWindow" {
- _DocumentImpl get document() native "return this.document;";
+ _DocumentImpl get document native "return this.document;";
- Window get _top() native "return this.top;";
+ Window get _top native "return this.top;";
// Override top to return secure wrapper.
- Window get top() => _DOMWindowCrossFrameImpl._createSafe(_top);
+ Window get top => _DOMWindowCrossFrameImpl._createSafe(_top);
Window _open2(url, name) native "return this.open(url, name);";
@@ -26,7 +26,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS native "@*DOMWindow" {
// API level getter and setter for Location.
// TODO: The cross domain safe wrapper can be inserted here or folded into
// _LocationWrapper.
- Location get location() => _get_location();
+ Location get location => _get_location();
// TODO: consider forcing users to do: window.location.assign('string').
/**
@@ -58,7 +58,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS native "@*DOMWindow" {
var _location_wrapper; // Cached wrapped Location object.
// Native getter and setter to access raw Location object.
- Location get _location() native 'return this.location';
+ Location get _location native 'return this.location';
void set _location(Location value) native 'this.location = value';
// Prevent compiled from thinking 'location' property is available for a Dart
// member.
@@ -113,7 +113,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS native "@*DOMWindow" {
''';
- _IDBFactoryImpl get indexedDB() => _get_indexedDB();
+ _IDBFactoryImpl get indexedDB => _get_indexedDB();
_IDBFactoryImpl _get_indexedDB() native
'return this.indexedDB || this.webkitIndexedDB || this.mozIndexedDB';

Powered by Google App Engine
This is Rietveld 408576698