zachr@google.com | 9432c0c | 2013-07-09 21:08:28 +0000 | [diff] [blame] | 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 | } |