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

Side by Side Diff: experimental/skpdiff/diff_viewer.js

Issue 18132007: add diff viewer website (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: test -> actual Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « experimental/skpdiff/SkPMetric.cpp ('k') | experimental/skpdiff/viewer.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 function DiffViewController($scope) {
2 $scope.differs = [
3 {
4 "title": "Different Pixels"
5 },
6 {
7 "title": "Perceptual Difference"
8 }
9 ];
10 $scope.sortIndex = 1;
11 $scope.records = SkPDiffRecords.records;
12 $scope.highlight = function(differName) {
13 console.debug(differName);
14 }
15 $scope.setSortIndex = function(a) {
16 $scope.sortIndex = a;
17 }
18 $scope.sortingDiffer = function(a) {
19 console.debug($scope.sortIndex);
20 return a.diffs[$scope.sortIndex].result;
21 }
22 }
OLDNEW
« no previous file with comments | « experimental/skpdiff/SkPMetric.cpp ('k') | experimental/skpdiff/viewer.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698