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

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

Issue 2763833004: [DO NOT LAND] For Konrad: classes pane widget (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/elements/ClassesPaneWidget.js ('k') | no next file » | 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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 /** 407 /**
408 * @param {string} name 408 * @param {string} name
409 * @param {string} value 409 * @param {string} value
410 * @param {function(?Protocol.Error)=} callback 410 * @param {function(?Protocol.Error)=} callback
411 */ 411 */
412 setAttributeValue(name, value, callback) { 412 setAttributeValue(name, value, callback) {
413 this._agent.setAttributeValue(this.id, name, value, this._domModel._markRevi sion(this, callback)); 413 this._agent.setAttributeValue(this.id, name, value, this._domModel._markRevi sion(this, callback));
414 } 414 }
415 415
416 /** 416 /**
417 * @param {string} name
418 * @param {string} value
419 * @return {!Promise<?Protocol.Error>}
420 */
421 setAttributeValuePromise(name, value) {
422 return new Promise(fulfill => this.setAttributeValue(name, value, fulfill));
423 }
424
425 /**
417 * @return {!Array<!SDK.DOMNode.Attribute>} 426 * @return {!Array<!SDK.DOMNode.Attribute>}
418 */ 427 */
419 attributes() { 428 attributes() {
420 return this._attributes; 429 return this._attributes;
421 } 430 }
422 431
423 /** 432 /**
424 * @param {string} name 433 * @param {string} name
425 * @param {function(?Protocol.Error)=} callback 434 * @param {function(?Protocol.Error)=} callback
426 */ 435 */
(...skipping 1721 matching lines...) Expand 10 before | Expand all | Expand 10 after
2148 /** 2157 /**
2149 * @override 2158 * @override
2150 * @param {!Protocol.Page.FrameId} frameId 2159 * @param {!Protocol.Page.FrameId} frameId
2151 */ 2160 */
2152 highlightFrame(frameId) { 2161 highlightFrame(frameId) {
2153 this._agent.highlightFrame( 2162 this._agent.highlightFrame(
2154 frameId, Common.Color.PageHighlight.Content.toProtocolRGBA(), 2163 frameId, Common.Color.PageHighlight.Content.toProtocolRGBA(),
2155 Common.Color.PageHighlight.ContentOutline.toProtocolRGBA()); 2164 Common.Color.PageHighlight.ContentOutline.toProtocolRGBA());
2156 } 2165 }
2157 }; 2166 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/elements/ClassesPaneWidget.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698