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

Side by Side Diff: Source/devtools/front_end/ui/Context.js

Issue 268293003: DevTools: Get rid of WebInspector.panels (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 7 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 * @constructor 6 * @constructor
7 */ 7 */
8 WebInspector.Context = function() 8 WebInspector.Context = function()
9 { 9 {
10 this._flavors = new Map(); 10 this._flavors = new Map();
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 /** 101 /**
102 * @param {!Array.<!WebInspector.ModuleManager.Extension>} extensions 102 * @param {!Array.<!WebInspector.ModuleManager.Extension>} extensions
103 * @return {!Set.<!WebInspector.ModuleManager.Extension>} 103 * @return {!Set.<!WebInspector.ModuleManager.Extension>}
104 */ 104 */
105 applicableExtensions: function(extensions) 105 applicableExtensions: function(extensions)
106 { 106 {
107 var targetExtensionSet = new Set(); 107 var targetExtensionSet = new Set();
108 108
109 var availableFlavors = Set.fromArray(this.flavors()); 109 var availableFlavors = Set.fromArray(this.flavors());
110 extensions.forEach(function(extension) { 110 extensions.forEach(function(extension) {
111 if (WebInspector.ModuleManager.isExtensionApplicableToContextTypes(e xtension, availableFlavors)) 111 if (WebInspector.moduleManager.isExtensionApplicableToContextTypes(e xtension, availableFlavors))
112 targetExtensionSet.add(extension); 112 targetExtensionSet.add(extension);
113 }); 113 });
114 114
115 return targetExtensionSet; 115 return targetExtensionSet;
116 } 116 }
117 } 117 }
118 118
119 WebInspector.context = new WebInspector.Context(); 119 WebInspector.context = new WebInspector.Context();
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sources/module.json ('k') | Source/devtools/front_end/ui/InspectorView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698