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

Unified Diff: appengine_apps/chromium_status/static/js/status_viewer/list_view.js

Issue 778533003: Moved chromium_status to appengine/ (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 6 years 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: appengine_apps/chromium_status/static/js/status_viewer/list_view.js
diff --git a/appengine_apps/chromium_status/static/js/status_viewer/list_view.js b/appengine_apps/chromium_status/static/js/status_viewer/list_view.js
deleted file mode 100644
index b272ae7c6c5aabb5a46fc44ca5f6f46634d1ec6e..0000000000000000000000000000000000000000
--- a/appengine_apps/chromium_status/static/js/status_viewer/list_view.js
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright (c) 2009 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.
-
-/**
- * Factory function to create a View for seeing closure/open events as a flat
- * list.
- */
-var CreateListView;
-
-// -----------------------------------------------------------------------------
-// Private implementation
-// -----------------------------------------------------------------------------
-
-(function() {
-
-CreateListView = function(timeRange, entries) {
- return new ListView(timeRange, entries);
-}
-
-function ListView(timeRange, entries) {
- var parent = document.getElementById("list_tbody");
- DrawListView(parent, timeRange, entries);
-}
-
-ListView.prototype.Show = function(visible) {
- gViewerApp.ShowViewContentAndTabArea('list', visible);
-}
-
-function DrawListView(parent, timeRange, entries) {
- parent.innerHTML = "";
-
- var runs = MakeRuns(entries, timeRange);
-
- for (var i = 0; i < runs.length; ++i) {
- var entry = runs[i].entry;
-
- // Skip the magic entry we added to the run to fill gap.
- if (entry.IsOracle())
- continue;
-
- var tr = DomUtil.AddNode(parent, "tr");
- var tdDate = DomUtil.AddNode(tr, "td");
- var tdAuthor = DomUtil.AddNode(tr, "td");
- var tdMessage = DomUtil.AddNode(tr, "td");
- var tdType = DomUtil.AddNode(tr, "td");
-
- DomUtil.AddText(tdDate, DateUtil.FormatAsLocalDate(entry.timestamp));
- DomUtil.AddText(tdAuthor, entry.author);
- DomUtil.AddText(tdMessage, entry.message);
- DomUtil.AddText(tdType, entry.GetTreeState());
-
- tdType.className = entry.GetTreeState();
- }
-}
-
-})(); // Private implementation.

Powered by Google App Engine
This is Rietveld 408576698