| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }; |
| OLD | NEW |