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

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

Issue 2080173003: DevTools: pass theme name to the extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test rebaselined Created 4 years, 5 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/extensions/ExtensionServer.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 1702 matching lines...) Expand 10 before | Expand all | Expand 10 after
1713 WebInspector.ThemeSupport.prototype = { 1713 WebInspector.ThemeSupport.prototype = {
1714 /** 1714 /**
1715 * @return {boolean} 1715 * @return {boolean}
1716 */ 1716 */
1717 hasTheme: function() 1717 hasTheme: function()
1718 { 1718 {
1719 return this._themeName !== "default"; 1719 return this._themeName !== "default";
1720 }, 1720 },
1721 1721
1722 /** 1722 /**
1723 * @return {string}
1724 */
1725 themeName: function()
1726 {
1727 return this._themeName;
1728 },
1729
1730 /**
1723 * @param {!Element} element 1731 * @param {!Element} element
1724 */ 1732 */
1725 injectHighlightStyleSheets: function(element) 1733 injectHighlightStyleSheets: function(element)
1726 { 1734 {
1727 this._injectingStyleSheet = true; 1735 this._injectingStyleSheet = true;
1728 WebInspector.appendStyle(element, "ui/inspectorSyntaxHighlight.css"); 1736 WebInspector.appendStyle(element, "ui/inspectorSyntaxHighlight.css");
1729 if (this._themeName === "dark") 1737 if (this._themeName === "dark")
1730 WebInspector.appendStyle(element, "ui/inspectorSyntaxHighlightDark.c ss"); 1738 WebInspector.appendStyle(element, "ui/inspectorSyntaxHighlightDark.c ss");
1731 this._injectingStyleSheet = false; 1739 this._injectingStyleSheet = false;
1732 }, 1740 },
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
1978 * @param {string} title 1986 * @param {string} title
1979 * @return {!Element} 1987 * @return {!Element}
1980 */ 1988 */
1981 WebInspector.linkifyDocumentationURLAsNode = function(article, title) 1989 WebInspector.linkifyDocumentationURLAsNode = function(article, title)
1982 { 1990 {
1983 return WebInspector.linkifyURLAsNode("https://developers.google.com/web/tool s/chrome-devtools/" + article, title, undefined, true); 1991 return WebInspector.linkifyURLAsNode("https://developers.google.com/web/tool s/chrome-devtools/" + article, title, undefined, true);
1984 } 1992 }
1985 1993
1986 /** @type {!WebInspector.ThemeSupport} */ 1994 /** @type {!WebInspector.ThemeSupport} */
1987 WebInspector.themeSupport; 1995 WebInspector.themeSupport;
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/extensions/ExtensionServer.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698