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

Side by Side Diff: Source/devtools/front_end/elements/Spectrum.js

Issue 1300703004: DevTools: only set title w/ shortcut via Tooltip manager API. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaselined Created 5 years, 4 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
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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 * @param {string} colorText 218 * @param {string} colorText
219 * @param {number=} animationDelay 219 * @param {number=} animationDelay
220 * @return {!Element} 220 * @return {!Element}
221 */ 221 */
222 _createPaletteColor: function(colorText, animationDelay) 222 _createPaletteColor: function(colorText, animationDelay)
223 { 223 {
224 var element = createElementWithClass("div", "spectrum-palette-color"); 224 var element = createElementWithClass("div", "spectrum-palette-color");
225 element.style.background = String.sprintf("linear-gradient(%s, %s), url( Images/checker.png)", colorText, colorText); 225 element.style.background = String.sprintf("linear-gradient(%s, %s), url( Images/checker.png)", colorText, colorText);
226 if (animationDelay) 226 if (animationDelay)
227 element.animate([{ opacity: 0 }, { opacity: 1 }], { duration: 100, d elay: animationDelay, fill: "backwards" }); 227 element.animate([{ opacity: 0 }, { opacity: 1 }], { duration: 100, d elay: animationDelay, fill: "backwards" });
228 WebInspector.Tooltip.install(element, colorText); 228 element.title = colorText;
229 return element; 229 return element;
230 }, 230 },
231 231
232 /** 232 /**
233 * @param {!WebInspector.Spectrum.Palette} palette 233 * @param {!WebInspector.Spectrum.Palette} palette
234 * @param {boolean} animate 234 * @param {boolean} animate
235 * @param {!Event=} event 235 * @param {!Event=} event
236 */ 236 */
237 _showPalette: function(palette, animate, event) 237 _showPalette: function(palette, animate, event)
238 { 238 {
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 "#8BC34A", 819 "#8BC34A",
820 "#CDDC39", 820 "#CDDC39",
821 "#FFEB3B", 821 "#FFEB3B",
822 "#FFC107", 822 "#FFC107",
823 "#FF9800", 823 "#FF9800",
824 "#FF5722", 824 "#FF5722",
825 "#795548", 825 "#795548",
826 "#9E9E9E", 826 "#9E9E9E",
827 "#607D8B" 827 "#607D8B"
828 ]}; 828 ]};
OLDNEW
« no previous file with comments | « Source/devtools/front_end/console/ConsoleViewMessage.js ('k') | Source/devtools/front_end/elements/StylesPopoverHelper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698