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

Side by Side Diff: Source/devtools/front_end/ui/UIUtils.js

Issue 756913002: DevTools: Rename WI.Color's toString(format) -> asString(format) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix tests Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineFlameChart.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). 4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com).
5 * Copyright (C) 2009 Joseph Pecoraro 5 * Copyright (C) 2009 Joseph Pecoraro
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 10 *
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 * @param {string} backgroundColor 752 * @param {string} backgroundColor
753 * @param {string} color 753 * @param {string} color
754 */ 754 */
755 WebInspector.setToolbarColors = function(document, backgroundColor, color) 755 WebInspector.setToolbarColors = function(document, backgroundColor, color)
756 { 756 {
757 if (!WebInspector._themeStyleElement) { 757 if (!WebInspector._themeStyleElement) {
758 WebInspector._themeStyleElement = createElement("style"); 758 WebInspector._themeStyleElement = createElement("style");
759 document.head.appendChild(WebInspector._themeStyleElement); 759 document.head.appendChild(WebInspector._themeStyleElement);
760 } 760 }
761 var parsedColor = WebInspector.Color.parse(color); 761 var parsedColor = WebInspector.Color.parse(color);
762 var shadowColor = parsedColor ? parsedColor.invert().setAlpha(0.33).toString (WebInspector.Color.Format.RGBA) : "white"; 762 var shadowColor = parsedColor ? parsedColor.invert().setAlpha(0.33).asString (WebInspector.Color.Format.RGBA) : "white";
763 var prefix = WebInspector.isMac() ? "body:not(.undocked)" : ""; 763 var prefix = WebInspector.isMac() ? "body:not(.undocked)" : "";
764 WebInspector._themeStyleElement.textContent = 764 WebInspector._themeStyleElement.textContent =
765 String.sprintf( 765 String.sprintf(
766 "%s .toolbar-colors {" + 766 "%s .toolbar-colors {" +
767 " background-image: none !important;" + 767 " background-image: none !important;" +
768 " background-color: %s !important;" + 768 " background-color: %s !important;" +
769 " color: %s !important;" + 769 " color: %s !important;" +
770 "}", prefix, backgroundColor, color) + 770 "}", prefix, backgroundColor, color) +
771 String.sprintf( 771 String.sprintf(
772 "%s .toolbar-colors button.status-bar-item .glyph, %s .toolbar-colo rs button.status-bar-item .long-click-glyph {" + 772 "%s .toolbar-colors button.status-bar-item .glyph, %s .toolbar-colo rs button.status-bar-item .long-click-glyph {" +
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
1251 } 1251 }
1252 1252
1253 /** 1253 /**
1254 * @param {string} name 1254 * @param {string} name
1255 * @return {string} 1255 * @return {string}
1256 */ 1256 */
1257 WebInspector.beautifyFunctionName = function(name) 1257 WebInspector.beautifyFunctionName = function(name)
1258 { 1258 {
1259 return name || WebInspector.UIString("(anonymous function)"); 1259 return name || WebInspector.UIString("(anonymous function)");
1260 } 1260 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineFlameChart.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698