| 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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 /** | 406 /** |
| 407 * @param {string} name | 407 * @param {string} name |
| 408 * @param {string} value | 408 * @param {string} value |
| 409 * @param {function(?Protocol.Error)=} callback | 409 * @param {function(?Protocol.Error)=} callback |
| 410 */ | 410 */ |
| 411 setAttributeValue(name, value, callback) { | 411 setAttributeValue(name, value, callback) { |
| 412 this._agent.setAttributeValue(this.id, name, value, this._domModel._markRevi
sion(this, callback)); | 412 this._agent.setAttributeValue(this.id, name, value, this._domModel._markRevi
sion(this, callback)); |
| 413 } | 413 } |
| 414 | 414 |
| 415 /** | 415 /** |
| 416 * @param {string} name |
| 417 * @param {string} value |
| 418 * @return {!Promise<?Protocol.Error>} |
| 419 */ |
| 420 setAttributeValuePromise(name, value) { |
| 421 return new Promise(fulfill => this.setAttributeValue(name, value, fulfill)); |
| 422 } |
| 423 |
| 424 /** |
| 416 * @return {!Array<!SDK.DOMNode.Attribute>} | 425 * @return {!Array<!SDK.DOMNode.Attribute>} |
| 417 */ | 426 */ |
| 418 attributes() { | 427 attributes() { |
| 419 return this._attributes; | 428 return this._attributes; |
| 420 } | 429 } |
| 421 | 430 |
| 422 /** | 431 /** |
| 423 * @param {string} name | 432 * @param {string} name |
| 424 * @param {function(?Protocol.Error)=} callback | 433 * @param {function(?Protocol.Error)=} callback |
| 425 */ | 434 */ |
| (...skipping 1718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2144 /** | 2153 /** |
| 2145 * @override | 2154 * @override |
| 2146 * @param {!Protocol.Page.FrameId} frameId | 2155 * @param {!Protocol.Page.FrameId} frameId |
| 2147 */ | 2156 */ |
| 2148 highlightFrame(frameId) { | 2157 highlightFrame(frameId) { |
| 2149 this._agent.highlightFrame( | 2158 this._agent.highlightFrame( |
| 2150 frameId, Common.Color.PageHighlight.Content.toProtocolRGBA(), | 2159 frameId, Common.Color.PageHighlight.Content.toProtocolRGBA(), |
| 2151 Common.Color.PageHighlight.ContentOutline.toProtocolRGBA()); | 2160 Common.Color.PageHighlight.ContentOutline.toProtocolRGBA()); |
| 2152 } | 2161 } |
| 2153 }; | 2162 }; |
| OLD | NEW |