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

Unified Diff: Tools/GardeningServer/lib/ct-scheduled-updater.html

Issue 728023004: Remove GardeningServer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
« no previous file with comments | « Tools/GardeningServer/lib/chart-loader.html ('k') | Tools/GardeningServer/lib/net.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/GardeningServer/lib/ct-scheduled-updater.html
diff --git a/Tools/GardeningServer/lib/ct-scheduled-updater.html b/Tools/GardeningServer/lib/ct-scheduled-updater.html
deleted file mode 100644
index 0d8ce31a2abbaf38f61d6f5a26424c8e2115e931..0000000000000000000000000000000000000000
--- a/Tools/GardeningServer/lib/ct-scheduled-updater.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!--
-Copyright 2014 The Chromium Authors. All rights reserved.
-Use of this source code is governed by a BSD-style license that can be
-found in the LICENSE file.
--->
-
-<script>
-// Schedule a repeated action with requestAnimationFrame to avoid doing work
-// when the tab is hidden.
-function CTScheduledUpdater(callback, interval) {
- this.callback = callback;
- this._isScheduled = false;
- this._intervalId = setInterval(this._schedule.bind(this), interval);
-}
-
-CTScheduledUpdater.prototype._schedule = function() {
- if (this._isScheduled)
- return;
-
- this._isScheduled = true;
- requestAnimationFrame(this._do.bind(this));
-}
-
-CTScheduledUpdater.prototype._do = function() {
- this._isScheduled = false;
- this.callback();
-}
-</script>
« no previous file with comments | « Tools/GardeningServer/lib/chart-loader.html ('k') | Tools/GardeningServer/lib/net.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698