Chromium Code Reviews

Side by Side Diff: webkit/glue/devtools/js/devtools.js

Issue 355012: DevTools: prepare for WebKit change 50460. (Closed)
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
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 414 matching lines...)
425 } else if (resource.url.search('\.html$') != -1) { 425 } else if (resource.url.search('\.html$') != -1) {
426 resource.type = WebInspector.Resource.Type.Document; 426 resource.type = WebInspector.Resource.Type.Document;
427 } 427 }
428 } 428 }
429 429
430 return orig.apply(this, arguments); 430 return orig.apply(this, arguments);
431 }; 431 };
432 })(); 432 })();
433 433
434 434
435 // Temporary workaround for a patch from WebKit bug 30328.
436 // TODO(mnaganov): Remove when after WebKit roll.
437 if (!('addProfile' in WebInspector)) {
438 WebInspector.addProfile = function(profile) {
439 WebInspector.__fullProfiles = WebInspector.__fullProfiles || {};
440 WebInspector.__fullProfiles[profile.uid] = profile;
441 WebInspector.addProfileHeader(profile);
442 };
443 }
444
445
446 (function() { 435 (function() {
447 var orig = InjectedScriptAccess.getCompletions; 436 var orig = InjectedScriptAccess.getCompletions;
448 InjectedScriptAccess.getCompletions = function(expressionString, 437 InjectedScriptAccess.getCompletions = function(expressionString,
449 includeInspectorCommandLineAPI, callFrameId, reportCompletions) { 438 includeInspectorCommandLineAPI, callFrameId, reportCompletions) {
450 if (goog.isDef(callFrameId)) { 439 if (goog.isDef(callFrameId)) {
451 devtools.tools.getDebuggerAgent().resolveCompletionsOnFrame( 440 devtools.tools.getDebuggerAgent().resolveCompletionsOnFrame(
452 expressionString, callFrameId, reportCompletions); 441 expressionString, callFrameId, reportCompletions);
453 } else { 442 } else {
454 return orig.apply(this, arguments); 443 return orig.apply(this, arguments);
455 } 444 }
456 }; 445 };
457 })(); 446 })();
458 447
OLDNEW
« no previous file with comments | « webkit/glue/devtools/js/debugger_agent.js ('k') | webkit/glue/devtools/js/heap_profiler_panel.js » ('j') | no next file with comments »

Powered by Google App Engine