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

Unified Diff: client/base/Env.dart

Issue 9382027: Move client/{base, observable, layout, touch, util, view} to samples/ui_lib . (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 10 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 | « client/base/DomWrapper.dart ('k') | client/base/Size.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/base/Env.dart
===================================================================
--- client/base/Env.dart (revision 4144)
+++ client/base/Env.dart (working copy)
@@ -1,40 +0,0 @@
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-/**
- * This class has static fields that hold objects that this isolate
- * uses to interact with the environment. Which objects are available
- * depend on how the isolate was started. In the UI isolate
- * of the browser, the window object is available.
- */
-class Env {
- static AnimationScheduler _animationScheduler;
-
- /**
- * Provides functionality similar to [:window.requestAnimationFrame:] for
- * all platforms. [callback] is executed on the next animation frame that
- * occurs at or after [minTime]. If [minTime] is not specified, the first
- * available animation frame is used. Returns an id that can be used to
- * cancel the pending callback.
- */
- static int requestAnimationFrame(AnimationCallback callback,
- [Element element = null,
- num minTime = null]) {
- if (_animationScheduler == null) {
- _animationScheduler = new AnimationScheduler();
- }
- return _animationScheduler.requestAnimationFrame(
- callback, element, minTime);
- }
-
- /**
- * Cancel the pending callback callback matching the specified [id].
- */
- static void cancelRequestAnimationFrame(int id) {
- window.clearTimeout(id);
- _animationScheduler.cancelRequestAnimationFrame(id);
- }
-}
-
-typedef void XMLHttpRequestCompleted(XMLHttpRequest req);
« no previous file with comments | « client/base/DomWrapper.dart ('k') | client/base/Size.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698