| 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 2118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2129 * @override | 2129 * @override |
| 2130 * @param {?WebInspector.DOMNode} node | 2130 * @param {?WebInspector.DOMNode} node |
| 2131 * @param {!DOMAgent.HighlightConfig} config | 2131 * @param {!DOMAgent.HighlightConfig} config |
| 2132 * @param {!DOMAgent.BackendNodeId=} backendNodeId | 2132 * @param {!DOMAgent.BackendNodeId=} backendNodeId |
| 2133 * @param {!RuntimeAgent.RemoteObjectId=} objectId | 2133 * @param {!RuntimeAgent.RemoteObjectId=} objectId |
| 2134 */ | 2134 */ |
| 2135 highlightDOMNode: function(node, config, backendNodeId, objectId) | 2135 highlightDOMNode: function(node, config, backendNodeId, objectId) |
| 2136 { | 2136 { |
| 2137 if (objectId || node || backendNodeId) | 2137 if (objectId || node || backendNodeId) |
| 2138 this._agent.highlightNode(config, (objectId || backendNodeId) ? unde
fined : node.id, backendNodeId, objectId); | 2138 this._agent.highlightNode(config, (objectId || backendNodeId) ? unde
fined : node.id, backendNodeId, objectId); |
| 2139 else | 2139 // else |
| 2140 this._agent.hideHighlight(); | 2140 // this._agent.hideHighlight(); |
| 2141 }, | 2141 }, |
| 2142 | 2142 |
| 2143 /** | 2143 /** |
| 2144 * @override | 2144 * @override |
| 2145 * @param {boolean} enabled | 2145 * @param {boolean} enabled |
| 2146 * @param {boolean} inspectUAShadowDOM | 2146 * @param {boolean} inspectUAShadowDOM |
| 2147 * @param {!DOMAgent.HighlightConfig} config | 2147 * @param {!DOMAgent.HighlightConfig} config |
| 2148 * @param {function(?Protocol.Error)=} callback | 2148 * @param {function(?Protocol.Error)=} callback |
| 2149 */ | 2149 */ |
| 2150 setInspectModeEnabled: function(enabled, inspectUAShadowDOM, config, callbac
k) | 2150 setInspectModeEnabled: function(enabled, inspectUAShadowDOM, config, callbac
k) |
| (...skipping 12 matching lines...) Expand all Loading... |
| 2163 } | 2163 } |
| 2164 | 2164 |
| 2165 /** | 2165 /** |
| 2166 * @param {!WebInspector.Target} target | 2166 * @param {!WebInspector.Target} target |
| 2167 * @return {?WebInspector.DOMModel} | 2167 * @return {?WebInspector.DOMModel} |
| 2168 */ | 2168 */ |
| 2169 WebInspector.DOMModel.fromTarget = function(target) | 2169 WebInspector.DOMModel.fromTarget = function(target) |
| 2170 { | 2170 { |
| 2171 return /** @type {?WebInspector.DOMModel} */ (target.model(WebInspector.DOMM
odel)); | 2171 return /** @type {?WebInspector.DOMModel} */ (target.model(WebInspector.DOMM
odel)); |
| 2172 } | 2172 } |
| OLD | NEW |