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

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

Issue 2550563002: [DevTools] Remove obsolete experiment flags. (Closed)
Patch Set: rebased 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) 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 1747 matching lines...) Expand 10 before | Expand all | Expand 10 after
1758 if (mode === 'all' || mode === 'border') 1758 if (mode === 'all' || mode === 'border')
1759 highlightConfig.borderColor = Common.Color.PageHighlight.Border.toProtocol RGBA(); 1759 highlightConfig.borderColor = Common.Color.PageHighlight.Border.toProtocol RGBA();
1760 1760
1761 if (mode === 'all' || mode === 'margin') 1761 if (mode === 'all' || mode === 'margin')
1762 highlightConfig.marginColor = Common.Color.PageHighlight.Margin.toProtocol RGBA(); 1762 highlightConfig.marginColor = Common.Color.PageHighlight.Margin.toProtocol RGBA();
1763 1763
1764 if (mode === 'all') { 1764 if (mode === 'all') {
1765 highlightConfig.eventTargetColor = Common.Color.PageHighlight.EventTarget. toProtocolRGBA(); 1765 highlightConfig.eventTargetColor = Common.Color.PageHighlight.EventTarget. toProtocolRGBA();
1766 highlightConfig.shapeColor = Common.Color.PageHighlight.Shape.toProtocolRG BA(); 1766 highlightConfig.shapeColor = Common.Color.PageHighlight.Shape.toProtocolRG BA();
1767 highlightConfig.shapeMarginColor = Common.Color.PageHighlight.ShapeMargin. toProtocolRGBA(); 1767 highlightConfig.shapeMarginColor = Common.Color.PageHighlight.ShapeMargin. toProtocolRGBA();
1768 highlightConfig.displayAsMaterial = Runtime.experiments.isEnabled('inspect Tooltip'); 1768 highlightConfig.displayAsMaterial = true;
1769 } 1769 }
1770 return highlightConfig; 1770 return highlightConfig;
1771 } 1771 }
1772 1772
1773 /** 1773 /**
1774 * @param {!SDK.DOMNode} node 1774 * @param {!SDK.DOMNode} node
1775 * @param {function(?Protocol.Error, ...)=} callback 1775 * @param {function(?Protocol.Error, ...)=} callback
1776 * @return {function(...)} 1776 * @return {function(...)}
1777 * @template T 1777 * @template T
1778 */ 1778 */
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
2162 /** 2162 /**
2163 * @override 2163 * @override
2164 * @param {!Protocol.Page.FrameId} frameId 2164 * @param {!Protocol.Page.FrameId} frameId
2165 */ 2165 */
2166 highlightFrame(frameId) { 2166 highlightFrame(frameId) {
2167 this._agent.highlightFrame( 2167 this._agent.highlightFrame(
2168 frameId, Common.Color.PageHighlight.Content.toProtocolRGBA(), 2168 frameId, Common.Color.PageHighlight.Content.toProtocolRGBA(),
2169 Common.Color.PageHighlight.ContentOutline.toProtocolRGBA()); 2169 Common.Color.PageHighlight.ContentOutline.toProtocolRGBA());
2170 } 2170 }
2171 }; 2171 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698