| 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 /** | |
| 173 * @param {!Array.<!{fileSystemName: string, rootURL: string, fileSystemPath
: string}>} fileSystems | 164 * @param {!Array.<!{fileSystemName: string, rootURL: string, fileSystemPath
: string}>} fileSystems |
| 174 */ | 165 */ |
| 175 fileSystemsLoaded: function(fileSystems) | 166 fileSystemsLoaded: function(fileSystems) |
| 176 { | 167 { |
| 177 this._dispatchOnInspectorFrontendAPI("fileSystemsLoaded", [fileSystems])
; | 168 this._dispatchOnInspectorFrontendAPI("fileSystemsLoaded", [fileSystems])
; |
| 178 }, | 169 }, |
| 179 | 170 |
| 180 /** | 171 /** |
| 181 * @param {string} fileSystemPath | 172 * @param {string} fileSystemPath |
| 182 */ | 173 */ |
| (...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1022 | 1013 |
| 1023 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { | 1014 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { |
| 1024 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype
.toggle; | 1015 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype
.toggle; |
| 1025 DOMTokenList.prototype.toggle = function(token, force) | 1016 DOMTokenList.prototype.toggle = function(token, force) |
| 1026 { | 1017 { |
| 1027 if (arguments.length === 1) | 1018 if (arguments.length === 1) |
| 1028 force = !this.contains(token); | 1019 force = !this.contains(token); |
| 1029 return this.__originalDOMTokenListToggle(token, !!force); | 1020 return this.__originalDOMTokenListToggle(token, !!force); |
| 1030 } | 1021 } |
| 1031 } | 1022 } |
| OLD | NEW |