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

Side by Side Diff: Source/devtools/front_end/resources/ResourcesPanel.js

Issue 396993003: DevTools: get rid of WebInspector.cssModel, use target models instead (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * Copyright (C) 2013 Samsung Electronics. All rights reserved. 4 * Copyright (C) 2013 Samsung Electronics. All rights reserved.
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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 137
138 wasShown: function() 138 wasShown: function()
139 { 139 {
140 WebInspector.Panel.prototype.wasShown.call(this); 140 WebInspector.Panel.prototype.wasShown.call(this);
141 this._initialize(); 141 this._initialize();
142 }, 142 },
143 143
144 _initialize: function() 144 _initialize: function()
145 { 145 {
146 if (!this._initialized && this.isShowing() && this._cachedResourcesWereL oaded) { 146 if (!this._initialized && this.isShowing() && this._cachedResourcesWereL oaded) {
147 var target = /** @type {!WebInspector.Target} */ (WebInspector.targe tManager.activeTarget()); 147 var target = /** @type {!WebInspector.Target} */ (WebInspector.targe tManager.mainTarget());
148 this._populateResourceTree(); 148 this._populateResourceTree();
149 this._populateDOMStorageTree(); 149 this._populateDOMStorageTree();
150 this._populateApplicationCacheTree(target); 150 this._populateApplicationCacheTree(target);
151 this.indexedDBListTreeElement._initialize(); 151 this.indexedDBListTreeElement._initialize();
152 if (WebInspector.experimentsSettings.fileSystemInspection.isEnabled( )) 152 if (WebInspector.experimentsSettings.fileSystemInspection.isEnabled( ))
153 this.fileSystemListTreeElement._initialize(); 153 this.fileSystemListTreeElement._initialize();
154 this._initDefaultSelection(); 154 this._initDefaultSelection();
155 this._initialized = true; 155 this._initialized = true;
156 } 156 }
157 }, 157 },
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after
932 * @param {string} settingsKey 932 * @param {string} settingsKey
933 * @param {?Array.<string>=} iconClasses 933 * @param {?Array.<string>=} iconClasses
934 * @param {boolean=} noIcon 934 * @param {boolean=} noIcon
935 */ 935 */
936 WebInspector.StorageCategoryTreeElement = function(storagePanel, categoryName, s ettingsKey, iconClasses, noIcon) 936 WebInspector.StorageCategoryTreeElement = function(storagePanel, categoryName, s ettingsKey, iconClasses, noIcon)
937 { 937 {
938 WebInspector.BaseStorageTreeElement.call(this, storagePanel, null, categoryN ame, iconClasses, false, noIcon); 938 WebInspector.BaseStorageTreeElement.call(this, storagePanel, null, categoryN ame, iconClasses, false, noIcon);
939 this._expandedSettingKey = "resources" + settingsKey + "Expanded"; 939 this._expandedSettingKey = "resources" + settingsKey + "Expanded";
940 WebInspector.settings[this._expandedSettingKey] = WebInspector.settings.crea teSetting(this._expandedSettingKey, settingsKey === "Frames"); 940 WebInspector.settings[this._expandedSettingKey] = WebInspector.settings.crea teSetting(this._expandedSettingKey, settingsKey === "Frames");
941 this._categoryName = categoryName; 941 this._categoryName = categoryName;
942 this._target = /** @type {!WebInspector.Target} */ (WebInspector.targetManag er.activeTarget()); 942 this._target = /** @type {!WebInspector.Target} */ (WebInspector.targetManag er.mainTarget());
943 } 943 }
944 944
945 WebInspector.StorageCategoryTreeElement.prototype = { 945 WebInspector.StorageCategoryTreeElement.prototype = {
946 /** 946 /**
947 * @return {!WebInspector.Target} 947 * @return {!WebInspector.Target}
948 */ 948 */
949 target: function() 949 target: function()
950 { 950 {
951 return this._target; 951 return this._target;
952 }, 952 },
(...skipping 1151 matching lines...) Expand 10 before | Expand all | Expand 10 after
2104 } 2104 }
2105 2105
2106 WebInspector.StorageCategoryView.prototype = { 2106 WebInspector.StorageCategoryView.prototype = {
2107 setText: function(text) 2107 setText: function(text)
2108 { 2108 {
2109 this._emptyView.text = text; 2109 this._emptyView.text = text;
2110 }, 2110 },
2111 2111
2112 __proto__: WebInspector.VBox.prototype 2112 __proto__: WebInspector.VBox.prototype
2113 } 2113 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/profiler/ProfilesPanel.js ('k') | Source/devtools/front_end/sdk/CPUProfilerModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698