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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js

Issue 2537223003: [DevTools] Introduce Project.isServiceProject method. (Closed)
Patch Set: rebased Created 4 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 10 *
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 this._workspace.addEventListener(Workspace.Workspace.Events.UISourceCodeAdde d, this._uiSourceCodeAdded, this); 229 this._workspace.addEventListener(Workspace.Workspace.Events.UISourceCodeAdde d, this._uiSourceCodeAdded, this);
230 this._workspace.addEventListener(Workspace.Workspace.Events.UISourceCodeRemo ved, this._uiSourceCodeRemoved, this); 230 this._workspace.addEventListener(Workspace.Workspace.Events.UISourceCodeRemo ved, this._uiSourceCodeRemoved, this);
231 this._workspace.addEventListener(Workspace.Workspace.Events.ProjectRemoved, this._projectRemoved.bind(this), this); 231 this._workspace.addEventListener(Workspace.Workspace.Events.ProjectRemoved, this._projectRemoved.bind(this), this);
232 } 232 }
233 233
234 /** 234 /**
235 * @param {!Workspace.UISourceCode} uiSourceCode 235 * @param {!Workspace.UISourceCode} uiSourceCode
236 * @return {boolean} 236 * @return {boolean}
237 */ 237 */
238 accept(uiSourceCode) { 238 accept(uiSourceCode) {
239 return !uiSourceCode.isFromServiceProject(); 239 return !uiSourceCode.project().isServiceProject();
240 } 240 }
241 241
242 /** 242 /**
243 * @param {!Workspace.UISourceCode} uiSourceCode 243 * @param {!Workspace.UISourceCode} uiSourceCode
244 * @return {?SDK.ResourceTreeFrame} 244 * @return {?SDK.ResourceTreeFrame}
245 */ 245 */
246 _uiSourceCodeFrame(uiSourceCode) { 246 _uiSourceCodeFrame(uiSourceCode) {
247 var frame = Bindings.NetworkProject.frameForProject(uiSourceCode.project()); 247 var frame = Bindings.NetworkProject.frameForProject(uiSourceCode.project());
248 if (!frame) { 248 if (!frame) {
249 var target = Bindings.NetworkProject.targetForProject(uiSourceCode.project ()); 249 var target = Bindings.NetworkProject.targetForProject(uiSourceCode.project ());
(...skipping 1344 matching lines...) Expand 10 before | Expand all | Expand 10 after
1594 /** 1594 /**
1595 * @param {string} title 1595 * @param {string} title
1596 * @override 1596 * @override
1597 */ 1597 */
1598 setTitle(title) { 1598 setTitle(title) {
1599 this._title = title; 1599 this._title = title;
1600 if (this._treeElement) 1600 if (this._treeElement)
1601 this._treeElement.title = this._title; 1601 this._treeElement.title = this._title;
1602 } 1602 }
1603 }; 1603 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698