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

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

Issue 2515763003: DevTools: use shorthand syntax in interface definitions. (Closed)
Patch Set: Created 4 years, 1 month 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 2090 matching lines...) Expand 10 before | Expand all | Expand 10 after
2101 */ 2101 */
2102 SDK.DOMNodeHighlighter = function() {}; 2102 SDK.DOMNodeHighlighter = function() {};
2103 2103
2104 SDK.DOMNodeHighlighter.prototype = { 2104 SDK.DOMNodeHighlighter.prototype = {
2105 /** 2105 /**
2106 * @param {?SDK.DOMNode} node 2106 * @param {?SDK.DOMNode} node
2107 * @param {!Protocol.DOM.HighlightConfig} config 2107 * @param {!Protocol.DOM.HighlightConfig} config
2108 * @param {!Protocol.DOM.BackendNodeId=} backendNodeId 2108 * @param {!Protocol.DOM.BackendNodeId=} backendNodeId
2109 * @param {!Protocol.Runtime.RemoteObjectId=} objectId 2109 * @param {!Protocol.Runtime.RemoteObjectId=} objectId
2110 */ 2110 */
2111 highlightDOMNode: function(node, config, backendNodeId, objectId) {}, 2111 highlightDOMNode(node, config, backendNodeId, objectId) {},
2112 2112
2113 /** 2113 /**
2114 * @param {!Protocol.DOM.InspectMode} mode 2114 * @param {!Protocol.DOM.InspectMode} mode
2115 * @param {!Protocol.DOM.HighlightConfig} config 2115 * @param {!Protocol.DOM.HighlightConfig} config
2116 * @param {function(?Protocol.Error)=} callback 2116 * @param {function(?Protocol.Error)=} callback
2117 */ 2117 */
2118 setInspectMode: function(mode, config, callback) {}, 2118 setInspectMode(mode, config, callback) {},
2119 2119
2120 /** 2120 /**
2121 * @param {!Protocol.Page.FrameId} frameId 2121 * @param {!Protocol.Page.FrameId} frameId
2122 */ 2122 */
2123 highlightFrame: function(frameId) {} 2123 highlightFrame(frameId) {}
2124 }; 2124 };
2125 2125
2126 /** 2126 /**
2127 * @implements {SDK.DOMNodeHighlighter} 2127 * @implements {SDK.DOMNodeHighlighter}
2128 * @unrestricted 2128 * @unrestricted
2129 */ 2129 */
2130 SDK.DefaultDOMNodeHighlighter = class { 2130 SDK.DefaultDOMNodeHighlighter = class {
2131 /** 2131 /**
2132 * @param {!Protocol.DOMAgent} agent 2132 * @param {!Protocol.DOMAgent} agent
2133 */ 2133 */
(...skipping 28 matching lines...) Expand all
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