OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 (function(window) { | 5 (function(window) { |
6 | 6 |
7 // DevToolsAPI ---------------------------------------------------------------- | 7 // DevToolsAPI ---------------------------------------------------------------- |
8 | 8 |
9 /** | 9 /** |
10 * @constructor | 10 * @constructor |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 { | 154 { |
155 this._dispatchOnInspectorFrontendAPI("dispatchMessageChunk", [messageChu
nk, messageSize]); | 155 this._dispatchOnInspectorFrontendAPI("dispatchMessageChunk", [messageChu
nk, messageSize]); |
156 }, | 156 }, |
157 | 157 |
158 enterInspectElementMode: function() | 158 enterInspectElementMode: function() |
159 { | 159 { |
160 this._dispatchOnInspectorFrontendAPI("enterInspectElementMode", []); | 160 this._dispatchOnInspectorFrontendAPI("enterInspectElementMode", []); |
161 }, | 161 }, |
162 | 162 |
163 /** | 163 /** |
| 164 * @param {number} callId |
| 165 * @param {string} script |
| 166 */ |
| 167 evaluateForTestInFrontend: function(callId, script) |
| 168 { |
| 169 this._dispatchOnInspectorFrontendAPI("evaluateForTestInFrontend", [callI
d, script]); |
| 170 }, |
| 171 |
| 172 /** |
164 * @param {!Array.<!{fileSystemName: string, rootURL: string, fileSystemPath
: string}>} fileSystems | 173 * @param {!Array.<!{fileSystemName: string, rootURL: string, fileSystemPath
: string}>} fileSystems |
165 */ | 174 */ |
166 fileSystemsLoaded: function(fileSystems) | 175 fileSystemsLoaded: function(fileSystems) |
167 { | 176 { |
168 this._dispatchOnInspectorFrontendAPI("fileSystemsLoaded", [fileSystems])
; | 177 this._dispatchOnInspectorFrontendAPI("fileSystemsLoaded", [fileSystems])
; |
169 }, | 178 }, |
170 | 179 |
171 /** | 180 /** |
172 * @param {string} fileSystemPath | 181 * @param {string} fileSystemPath |
173 */ | 182 */ |
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1018 | 1027 |
1019 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { | 1028 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { |
1020 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype
.toggle; | 1029 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype
.toggle; |
1021 DOMTokenList.prototype.toggle = function(token, force) | 1030 DOMTokenList.prototype.toggle = function(token, force) |
1022 { | 1031 { |
1023 if (arguments.length === 1) | 1032 if (arguments.length === 1) |
1024 force = !this.contains(token); | 1033 force = !this.contains(token); |
1025 return this.__originalDOMTokenListToggle(token, !!force); | 1034 return this.__originalDOMTokenListToggle(token, !!force); |
1026 } | 1035 } |
1027 } | 1036 } |
OLD | NEW |