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

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

Issue 1153503010: Devtools: Margin resizer in overlay experiment (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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/devtools/front_end/sdk/CSSStyleModel.js ('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 2118 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sdk/CSSStyleModel.js ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698