OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2014 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2014 The Chromium Authors. All rights reserved. |
4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
5 found in the LICENSE file. | 5 found in the LICENSE file. |
6 --> | 6 --> |
7 <link rel="import" href="/tracing/base/base.html"> | 7 <link rel="import" href="/tracing/base/base.html"> |
8 <link rel="import" href="/tracing/base/color.html"> | 8 <link rel="import" href="/tracing/base/color.html"> |
9 <link rel="import" href="/tracing/base/iteration_helpers.html"> | 9 <link rel="import" href="/tracing/base/utils.html"> |
10 <script> | 10 <script> |
11 'use strict'; | 11 'use strict'; |
12 | 12 |
13 /** | 13 /** |
14 * @fileoverview Provides color scheme related functions. | 14 * @fileoverview Provides color scheme related functions. |
15 */ | 15 */ |
16 tr.exportTo('tr.b', function() { | 16 tr.exportTo('tr.b', function() { |
17 // Basic constants... | 17 // Basic constants... |
18 const generalPurposeColors = [ | 18 const generalPurposeColors = [ |
19 new tr.b.Color(122, 98, 135), | 19 new tr.b.Color(122, 98, 135), |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 */ | 250 */ |
251 ColorScheme.getVariantColorId = function(colorId, offset) { | 251 ColorScheme.getVariantColorId = function(colorId, offset) { |
252 return colorId + offset; | 252 return colorId + offset; |
253 }; | 253 }; |
254 | 254 |
255 return { | 255 return { |
256 ColorScheme, | 256 ColorScheme, |
257 }; | 257 }; |
258 }); | 258 }); |
259 </script> | 259 </script> |
OLD | NEW |