OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 /** | 5 /** |
6 * @fileoverview Tools is a main class that wires all components of the | 6 * @fileoverview Tools is a main class that wires all components of the |
7 * DevTools frontend together. It is also responsible for overriding existing | 7 * DevTools frontend together. It is also responsible for overriding existing |
8 * WebInspector functionality while it is getting upstreamed into WebCore. | 8 * WebInspector functionality while it is getting upstreamed into WebCore. |
9 */ | 9 */ |
10 goog.provide('devtools.Tools'); | 10 goog.provide('devtools.Tools'); |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 } else if (objectProxy.isV8Ref) { | 372 } else if (objectProxy.isV8Ref) { |
373 devtools.tools.getDebuggerAgent().resolveChildren(objectProxy.objectId, | 373 devtools.tools.getDebuggerAgent().resolveChildren(objectProxy.objectId, |
374 callback, true); | 374 callback, true); |
375 } else { | 375 } else { |
376 orig.apply(this, arguments); | 376 orig.apply(this, arguments); |
377 } | 377 } |
378 }; | 378 }; |
379 })() | 379 })() |
380 | 380 |
381 | 381 |
| 382 InjectedScriptAccess.evaluateInCallFrame = function(callFrameId, code, |
| 383 callback) |
| 384 { |
| 385 devtools.tools.getDebuggerAgent().evaluateInCallFrame( |
| 386 callFrameId, code, callback); |
| 387 }; |
| 388 |
| 389 |
382 WebInspector.resourceTrackingWasEnabled = function() | 390 WebInspector.resourceTrackingWasEnabled = function() |
383 { | 391 { |
384 InspectorController.resourceTrackingEnabled_ = true; | 392 InspectorController.resourceTrackingEnabled_ = true; |
385 this.panels.resources.resourceTrackingWasEnabled(); | 393 this.panels.resources.resourceTrackingWasEnabled(); |
386 }; | 394 }; |
387 | 395 |
388 WebInspector.resourceTrackingWasDisabled = function() | 396 WebInspector.resourceTrackingWasDisabled = function() |
389 { | 397 { |
390 InspectorController.resourceTrackingEnabled_ = false; | 398 InspectorController.resourceTrackingEnabled_ = false; |
391 this.panels.resources.resourceTrackingWasDisabled(); | 399 this.panels.resources.resourceTrackingWasDisabled(); |
392 }; | 400 }; |
OLD | NEW |