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

Side by Side Diff: Source/WebCore/inspector/front-end/inspector.js

Issue 10009039: Merge 113336 - Web Inspector: CSS file revisions are not restored upon front-end reopen. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 years, 8 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com).
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 this.searchController = new WebInspector.SearchController(); 418 this.searchController = new WebInspector.SearchController();
419 this.advancedSearchController = new WebInspector.AdvancedSearchController(); 419 this.advancedSearchController = new WebInspector.AdvancedSearchController();
420 420
421 if (Capabilities.nativeInstrumentationEnabled) 421 if (Capabilities.nativeInstrumentationEnabled)
422 this.domBreakpointsSidebarPane = new WebInspector.DOMBreakpointsSidebarP ane(); 422 this.domBreakpointsSidebarPane = new WebInspector.DOMBreakpointsSidebarP ane();
423 423
424 this._zoomLevel = WebInspector.settings.zoomLevel.get(); 424 this._zoomLevel = WebInspector.settings.zoomLevel.get();
425 if (this._zoomLevel) 425 if (this._zoomLevel)
426 this._requestZoom(); 426 this._requestZoom();
427 427
428 WebInspector.CSSCompletions.requestCSSNameCompletions();
428 this._createPanels(); 429 this._createPanels();
429 this._createGlobalStatusBarItems(); 430 this._createGlobalStatusBarItems();
430 431
431 this.toolbar = new WebInspector.Toolbar(); 432 this.toolbar = new WebInspector.Toolbar();
432 WebInspector._installDockToRight(); 433 WebInspector._installDockToRight();
433 434
434 for (var panelName in this.panels) 435 for (var panelName in this.panels)
435 this.addPanel(this.panels[panelName]); 436 this.addPanel(this.panels[panelName]);
436 437
437 this.addMainEventListeners(document); 438 this.addMainEventListeners(document);
(...skipping 19 matching lines...) Expand all
457 WebInspector.showPanel(WebInspector.settings.lastActivePanel.get()); 458 WebInspector.showPanel(WebInspector.settings.lastActivePanel.get());
458 } 459 }
459 460
460 InspectorAgent.enable(showInitialPanel); 461 InspectorAgent.enable(showInitialPanel);
461 DatabaseAgent.enable(); 462 DatabaseAgent.enable();
462 DOMStorageAgent.enable(); 463 DOMStorageAgent.enable();
463 464
464 if (WebInspector.settings.showPaintRects.get()) 465 if (WebInspector.settings.showPaintRects.get())
465 PageAgent.setShowPaintRects(true); 466 PageAgent.setShowPaintRects(true);
466 467
467 WebInspector.CSSCompletions.requestCSSNameCompletions();
468 WebInspector.WorkerManager.loadCompleted(); 468 WebInspector.WorkerManager.loadCompleted();
469 InspectorFrontendAPI.loadCompleted(); 469 InspectorFrontendAPI.loadCompleted();
470 } 470 }
471 471
472 WebInspector._installDockToRight = function() 472 WebInspector._installDockToRight = function()
473 { 473 {
474 // Re-use Settings infrastructure for the dock-to-right settings UI 474 // Re-use Settings infrastructure for the dock-to-right settings UI
475 WebInspector.settings.dockToRight.set(WebInspector.queryParamsObject.dockSid e === "right"); 475 WebInspector.settings.dockToRight.set(WebInspector.queryParamsObject.dockSid e === "right");
476 476
477 if (WebInspector.settings.dockToRight.get()) 477 if (WebInspector.settings.dockToRight.get())
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
1003 WebInspector.frontendReused = function() 1003 WebInspector.frontendReused = function()
1004 { 1004 {
1005 this.resourceTreeModel.frontendReused(); 1005 this.resourceTreeModel.frontendReused();
1006 } 1006 }
1007 1007
1008 WebInspector._toolbarItemClicked = function(event) 1008 WebInspector._toolbarItemClicked = function(event)
1009 { 1009 {
1010 var toolbarItem = event.currentTarget; 1010 var toolbarItem = event.currentTarget;
1011 WebInspector.inspectorView.setCurrentPanel(toolbarItem.panel); 1011 WebInspector.inspectorView.setCurrentPanel(toolbarItem.panel);
1012 } 1012 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698