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

Unified Diff: lib/dom/templates/dom/dart2js/impl_DOMWindow.darttemplate

Issue 10913114: Don't generate dom_deprecated files at all. (Closed) Base URL: http://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/dom/dart2js/impl_DOMWindow.darttemplate
===================================================================
--- lib/dom/templates/dom/dart2js/impl_DOMWindow.darttemplate (revision 11969)
+++ lib/dom/templates/dom/dart2js/impl_DOMWindow.darttemplate (working copy)
@@ -1,30 +0,0 @@
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
-
- Window get _top() native "return this.top;";
-
- // Override top to return secure wrapper.
- Window get top() => _DOMWindowCrossFrameImpl._createSafe(_top);
-
- int requestAnimationFrame(RequestAnimationFrameCallback callback) native '''
- if (!window.requestAnimationFrame) {
- window.requestAnimationFrame =
- window.webkitRequestAnimationFrame ||
- window.mozRequestAnimationFrame ||
- window.msRequestAnimationFrame ||
- window.oRequestAnimationFrame ||
- function (callback) {
- window.setTimeout(callback, 16 /* 16ms ~= 60fps */);
- };
- }
- return window.requestAnimationFrame(callback);
-''';
-
- // Protect member 'requestAnimationFrame'.
- _requestAnimationFrame() native 'requestAnimationFrame';
-
-$!MEMBERS
-}

Powered by Google App Engine
This is Rietveld 408576698