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: gm/rebaseline_server/static/loader.js

Issue 156773003: rebaseline_server: add "show only"/"show all" buttons to some columns (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 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 | « no previous file | gm/rebaseline_server/static/view.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/rebaseline_server/static/loader.js
diff --git a/gm/rebaseline_server/static/loader.js b/gm/rebaseline_server/static/loader.js
index 71972d16008e49e93463f91687f651d4f2cd6faf..9ae84d613c9444411c81a260e69bcbeac3cad9ac 100644
--- a/gm/rebaseline_server/static/loader.js
+++ b/gm/rebaseline_server/static/loader.js
@@ -417,6 +417,15 @@ Loader.controller(
}
/**
+ * Update $scope.hiddenResultTypes so that ALL resultTypes are showing,
+ * and update the visible results.
+ */
+ $scope.showAllResultTypes = function() {
+ $scope.hiddenResultTypes = {};
+ $scope.updateResults();
+ }
+
+ /**
* Update $scope.hiddenConfigs so that ONLY this config is showing,
* and update the visible results.
*
@@ -429,6 +438,15 @@ Loader.controller(
$scope.updateResults();
}
+ /**
+ * Update $scope.hiddenConfigs so that ALL configs are showing,
+ * and update the visible results.
+ */
+ $scope.showAllConfigs = function() {
+ $scope.hiddenConfigs = {};
+ $scope.updateResults();
+ }
+
//
// Operations for sending info back to the server.
@@ -532,6 +550,15 @@ Loader.controller(
//
/**
+ * Returns the number of values present within set "set".
+ *
+ * @param set an Object which we use to mimic set semantics
+ */
+ $scope.setSize = function(set) {
+ return Object.keys(set).length;
+ }
+
+ /**
* Returns true if value "value" is present within set "set".
*
* @param value a value of any type
« no previous file with comments | « no previous file | gm/rebaseline_server/static/view.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698