Chromium Code Reviews| 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 1811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1822 setHighlighter(highlighter) { | 1822 setHighlighter(highlighter) { |
| 1823 this._highlighter = highlighter || this._defaultHighlighter; | 1823 this._highlighter = highlighter || this._defaultHighlighter; |
| 1824 } | 1824 } |
| 1825 | 1825 |
| 1826 /** | 1826 /** |
| 1827 * @param {number} x | 1827 * @param {number} x |
| 1828 * @param {number} y | 1828 * @param {number} y |
| 1829 * @param {function(?SDK.DOMNode)} callback | 1829 * @param {function(?SDK.DOMNode)} callback |
| 1830 */ | 1830 */ |
| 1831 nodeForLocation(x, y, callback) { | 1831 nodeForLocation(x, y, callback) { |
| 1832 this._agent.getNodeForLocation(x, y, mycallback.bind(this)); | 1832 var showUAShadowDOM = Common.moduleSetting('showUAShadowDOM').get(); |
| 1833 this._agent.getNodeForLocation(x, y, showUAShadowDOM, mycallback.bind(this)) ; | |
|
peleg
2017/03/22 06:29:03
Is this what you had in mind for using moduleSetti
pfeldman
2017/03/22 17:32:46
I meant that you pass the boolean into DOMModel an
| |
| 1833 | 1834 |
| 1834 /** | 1835 /** |
| 1835 * @param {?Protocol.Error} error | 1836 * @param {?Protocol.Error} error |
| 1836 * @param {number} nodeId | 1837 * @param {number} nodeId |
| 1837 * @this {SDK.DOMModel} | 1838 * @this {SDK.DOMModel} |
| 1838 */ | 1839 */ |
| 1839 function mycallback(error, nodeId) { | 1840 function mycallback(error, nodeId) { |
| 1840 if (error) { | 1841 if (error) { |
| 1841 callback(null); | 1842 callback(null); |
| 1842 return; | 1843 return; |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2148 /** | 2149 /** |
| 2149 * @override | 2150 * @override |
| 2150 * @param {!Protocol.Page.FrameId} frameId | 2151 * @param {!Protocol.Page.FrameId} frameId |
| 2151 */ | 2152 */ |
| 2152 highlightFrame(frameId) { | 2153 highlightFrame(frameId) { |
| 2153 this._agent.highlightFrame( | 2154 this._agent.highlightFrame( |
| 2154 frameId, Common.Color.PageHighlight.Content.toProtocolRGBA(), | 2155 frameId, Common.Color.PageHighlight.Content.toProtocolRGBA(), |
| 2155 Common.Color.PageHighlight.ContentOutline.toProtocolRGBA()); | 2156 Common.Color.PageHighlight.ContentOutline.toProtocolRGBA()); |
| 2156 } | 2157 } |
| 2157 }; | 2158 }; |
| OLD | NEW |