Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

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

Issue 437089: Remove Content-Type workaround for cached resources (Closed)
Patch Set: Test Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 WebInspector.ConsoleMessage.prototype.setMessageBody = function(args) { 442 WebInspector.ConsoleMessage.prototype.setMessageBody = function(args) {
443 for (var i = 0; i < args.length; ++i) { 443 for (var i = 0; i < args.length; ++i) {
444 if (typeof args[i] == "string") { 444 if (typeof args[i] == "string") {
445 args[i] = WebInspector.ObjectProxy.wrapPrimitiveValue(args[i]); 445 args[i] = WebInspector.ObjectProxy.wrapPrimitiveValue(args[i]);
446 } 446 }
447 } 447 }
448 orig.call(this, args); 448 orig.call(this, args);
449 }; 449 };
450 })(); 450 })();
451 451
452 // Temporary fix for http://crbug/23260.
453 (function() {
454 var orig = WebInspector.ResourcesPanel.prototype._createResourceView;
455 WebInspector.ResourcesPanel.prototype._createResourceView = function(
456 resource) {
457 if (resource.type == undefined && resource.url) {
458 if (resource.url.search('\.js$') != -1) {
459 resource.type = WebInspector.Resource.Type.Script;
460 } else if (resource.url.search('\.html$') != -1) {
461 resource.type = WebInspector.Resource.Type.Document;
462 }
463 }
464
465 return orig.apply(this, arguments);
466 };
467 })();
468
469 452
470 (function() { 453 (function() {
471 var orig = InjectedScriptAccess.getCompletions; 454 var orig = InjectedScriptAccess.getCompletions;
472 InjectedScriptAccess.getCompletions = function(expressionString, 455 InjectedScriptAccess.getCompletions = function(expressionString,
473 includeInspectorCommandLineAPI, callFrameId, reportCompletions) { 456 includeInspectorCommandLineAPI, callFrameId, reportCompletions) {
474 if (goog.isDef(callFrameId)) { 457 if (goog.isDef(callFrameId)) {
475 devtools.tools.getDebuggerAgent().resolveCompletionsOnFrame( 458 devtools.tools.getDebuggerAgent().resolveCompletionsOnFrame(
476 expressionString, callFrameId, reportCompletions); 459 expressionString, callFrameId, reportCompletions);
477 } else { 460 } else {
478 return orig.apply(this, arguments); 461 return orig.apply(this, arguments);
479 } 462 }
480 }; 463 };
481 })(); 464 })();
482 465
483 466
484 (function() { 467 (function() {
485 WebInspector.ElementsPanel.prototype._nodeSearchButtonClicked = function( 468 WebInspector.ElementsPanel.prototype._nodeSearchButtonClicked = function(
486 event) { 469 event) {
487 InspectorController.toggleNodeSearch(); 470 InspectorController.toggleNodeSearch();
488 this.nodeSearchButton.toggled = !this.nodeSearchButton.toggled; 471 this.nodeSearchButton.toggled = !this.nodeSearchButton.toggled;
489 }; 472 };
490 })(); 473 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698