| 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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 }; |
| OLD | NEW |