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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/components/Spectrum.js

Issue 2560043005: DevTools: Remove unused variables. Disallow unused variables with eslint (Closed)
Patch Set: A new unused variable was born Created 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Brian Grinstead All rights reserved. 2 * Copyright (C) 2011 Brian Grinstead All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 shadow.style.background = palette.colors[i]; 270 shadow.style.background = palette.colors[i];
271 shadow = colorElement.createChild('div', 'spectrum-palette-color spectru m-palette-color-shadow'); 271 shadow = colorElement.createChild('div', 'spectrum-palette-color spectru m-palette-color-shadow');
272 shadow.style.background = palette.colors[i]; 272 shadow.style.background = palette.colors[i];
273 colorElement.title = Common.UIString(palette.colors[i] + '. Long-click t o show alternate shades.'); 273 colorElement.title = Common.UIString(palette.colors[i] + '. Long-click t o show alternate shades.');
274 new UI.LongClickController(colorElement, this._showLightnessShades.bind( this, colorElement, palette.colors[i])); 274 new UI.LongClickController(colorElement, this._showLightnessShades.bind( this, colorElement, palette.colors[i]));
275 } 275 }
276 this._paletteContainer.appendChild(colorElement); 276 this._paletteContainer.appendChild(colorElement);
277 } 277 }
278 this._paletteContainerMutable = palette.mutable; 278 this._paletteContainerMutable = palette.mutable;
279 279
280 var numItems = palette.colors.length;
281 if (palette.mutable)
282 numItems++;
283 if (palette.mutable) { 280 if (palette.mutable) {
284 this._paletteContainer.appendChild(this._addColorToolbar.element); 281 this._paletteContainer.appendChild(this._addColorToolbar.element);
285 this._paletteContainer.appendChild(this._deleteIconToolbar.element); 282 this._paletteContainer.appendChild(this._deleteIconToolbar.element);
286 } else { 283 } else {
287 this._addColorToolbar.element.remove(); 284 this._addColorToolbar.element.remove();
288 this._deleteIconToolbar.element.remove(); 285 this._deleteIconToolbar.element.remove();
289 } 286 }
290 287
291 this._togglePalettePanel(false); 288 this._togglePalettePanel(false);
292 this._focus(); 289 this._focus();
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
1052 '#607D8B': 1049 '#607D8B':
1053 ['#ECEFF1', '#CFD8DC', '#B0BEC5', '#90A4AE', '#78909C', '#607D8B', '#546E7 A', '#455A64', '#37474F', '#263238'] 1050 ['#ECEFF1', '#CFD8DC', '#B0BEC5', '#90A4AE', '#78909C', '#607D8B', '#546E7 A', '#455A64', '#37474F', '#263238']
1054 }; 1051 };
1055 1052
1056 Components.Spectrum.MaterialPalette = { 1053 Components.Spectrum.MaterialPalette = {
1057 title: 'Material', 1054 title: 'Material',
1058 mutable: false, 1055 mutable: false,
1059 matchUserFormat: true, 1056 matchUserFormat: true,
1060 colors: Object.keys(Components.Spectrum.MaterialPaletteShades) 1057 colors: Object.keys(Components.Spectrum.MaterialPaletteShades)
1061 }; 1058 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698