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

Side by Side Diff: Source/devtools/front_end/sdk/DOMModel.js

Issue 1286483003: Devtools UI: Update inspect element node description label UI (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase tests 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
« no previous file with comments | « Source/core/inspector/InspectorOverlayPage.html ('k') | Source/devtools/protocol.json » ('j') | 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) 2009, 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Google Inc. All rights reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 1781 matching lines...) Expand 10 before | Expand all | Expand 10 after
1792 highlightConfig.borderColor = WebInspector.Color.PageHighlight.Borde r.toProtocolRGBA(); 1792 highlightConfig.borderColor = WebInspector.Color.PageHighlight.Borde r.toProtocolRGBA();
1793 1793
1794 if (mode === "all" || mode === "margin") 1794 if (mode === "all" || mode === "margin")
1795 highlightConfig.marginColor = WebInspector.Color.PageHighlight.Margi n.toProtocolRGBA(); 1795 highlightConfig.marginColor = WebInspector.Color.PageHighlight.Margi n.toProtocolRGBA();
1796 1796
1797 if (mode === "all") { 1797 if (mode === "all") {
1798 highlightConfig.eventTargetColor = WebInspector.Color.PageHighlight. EventTarget.toProtocolRGBA(); 1798 highlightConfig.eventTargetColor = WebInspector.Color.PageHighlight. EventTarget.toProtocolRGBA();
1799 highlightConfig.shapeColor = WebInspector.Color.PageHighlight.Shape. toProtocolRGBA(); 1799 highlightConfig.shapeColor = WebInspector.Color.PageHighlight.Shape. toProtocolRGBA();
1800 highlightConfig.shapeMarginColor = WebInspector.Color.PageHighlight. ShapeMargin.toProtocolRGBA(); 1800 highlightConfig.shapeMarginColor = WebInspector.Color.PageHighlight. ShapeMargin.toProtocolRGBA();
1801 highlightConfig.showLayoutEditor = Runtime.experiments.isEnabled("la youtEditor"); 1801 highlightConfig.showLayoutEditor = Runtime.experiments.isEnabled("la youtEditor");
1802 highlightConfig.displayAsMaterial = Runtime.experiments.isEnabled("m aterialDesign");
1802 } 1803 }
1803 return highlightConfig; 1804 return highlightConfig;
1804 }, 1805 },
1805 1806
1806 /** 1807 /**
1807 * @param {!WebInspector.DOMNode} node 1808 * @param {!WebInspector.DOMNode} node
1808 * @param {function(?Protocol.Error, ...)=} callback 1809 * @param {function(?Protocol.Error, ...)=} callback
1809 * @return {function(...)} 1810 * @return {function(...)}
1810 * @template T 1811 * @template T
1811 */ 1812 */
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
2164 } 2165 }
2165 2166
2166 /** 2167 /**
2167 * @param {!WebInspector.Target} target 2168 * @param {!WebInspector.Target} target
2168 * @return {?WebInspector.DOMModel} 2169 * @return {?WebInspector.DOMModel}
2169 */ 2170 */
2170 WebInspector.DOMModel.fromTarget = function(target) 2171 WebInspector.DOMModel.fromTarget = function(target)
2171 { 2172 {
2172 return /** @type {?WebInspector.DOMModel} */ (target.model(WebInspector.DOMM odel)); 2173 return /** @type {?WebInspector.DOMModel} */ (target.model(WebInspector.DOMM odel));
2173 } 2174 }
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorOverlayPage.html ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698