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 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1030 SDK.DOMDocument = class extends SDK.DOMNode { | 1030 SDK.DOMDocument = class extends SDK.DOMNode { |
1031 /** | 1031 /** |
1032 * @param {!SDK.DOMModel} domModel | 1032 * @param {!SDK.DOMModel} domModel |
1033 * @param {!Protocol.DOM.Node} payload | 1033 * @param {!Protocol.DOM.Node} payload |
1034 */ | 1034 */ |
1035 constructor(domModel, payload) { | 1035 constructor(domModel, payload) { |
1036 super(domModel); | 1036 super(domModel); |
1037 this._init(this, false, payload); | 1037 this._init(this, false, payload); |
1038 this.documentURL = payload.documentURL || ''; | 1038 this.documentURL = payload.documentURL || ''; |
1039 this.baseURL = payload.baseURL || ''; | 1039 this.baseURL = payload.baseURL || ''; |
1040 this._listeners = {}; | |
1041 } | 1040 } |
1042 }; | 1041 }; |
1043 | 1042 |
1044 /** | 1043 /** |
1045 * @unrestricted | 1044 * @unrestricted |
1046 */ | 1045 */ |
1047 SDK.DOMModel = class extends SDK.SDKModel { | 1046 SDK.DOMModel = class extends SDK.SDKModel { |
1048 /** | 1047 /** |
1049 * @param {!SDK.Target} target | 1048 * @param {!SDK.Target} target |
1050 */ | 1049 */ |
(...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2147 /** | 2146 /** |
2148 * @override | 2147 * @override |
2149 * @param {!Protocol.Page.FrameId} frameId | 2148 * @param {!Protocol.Page.FrameId} frameId |
2150 */ | 2149 */ |
2151 highlightFrame(frameId) { | 2150 highlightFrame(frameId) { |
2152 this._agent.highlightFrame( | 2151 this._agent.highlightFrame( |
2153 frameId, Common.Color.PageHighlight.Content.toProtocolRGBA(), | 2152 frameId, Common.Color.PageHighlight.Content.toProtocolRGBA(), |
2154 Common.Color.PageHighlight.ContentOutline.toProtocolRGBA()); | 2153 Common.Color.PageHighlight.ContentOutline.toProtocolRGBA()); |
2155 } | 2154 } |
2156 }; | 2155 }; |
OLD | NEW |