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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js

Issue 2782773002: [DevTools] Remove SDKModels' fromTarget methods (Closed)
Patch Set: Created 3 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
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 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 28 matching lines...) Expand all
39 constructor(targetManager, workspace) { 39 constructor(targetManager, workspace) {
40 this._workspace = workspace; 40 this._workspace = workspace;
41 targetManager.observeTargets(this); 41 targetManager.observeTargets(this);
42 } 42 }
43 43
44 /** 44 /**
45 * @override 45 * @override
46 * @param {!SDK.Target} target 46 * @param {!SDK.Target} target
47 */ 47 */
48 targetAdded(target) { 48 targetAdded(target) {
49 new Bindings.NetworkProject(target, this._workspace, SDK.ResourceTreeModel.f romTarget(target)); 49 new Bindings.NetworkProject(target, this._workspace, target.model(SDK.Resour ceTreeModel));
50 } 50 }
51 51
52 /** 52 /**
53 * @override 53 * @override
54 * @param {!SDK.Target} target 54 * @param {!SDK.Target} target
55 */ 55 */
56 targetRemoved(target) { 56 targetRemoved(target) {
57 Bindings.NetworkProject.forTarget(target)._dispose(); 57 Bindings.NetworkProject.forTarget(target)._dispose();
58 } 58 }
59 }; 59 };
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 return workspace.uiSourceCode(Bindings.NetworkProject.projectId(header.targe t(), header.frameId, false), url); 429 return workspace.uiSourceCode(Bindings.NetworkProject.projectId(header.targe t(), header.frameId, false), url);
430 } 430 }
431 }; 431 };
432 432
433 Bindings.NetworkProject._networkProjectSymbol = Symbol('networkProject'); 433 Bindings.NetworkProject._networkProjectSymbol = Symbol('networkProject');
434 Bindings.NetworkProject._resourceSymbol = Symbol('resource'); 434 Bindings.NetworkProject._resourceSymbol = Symbol('resource');
435 Bindings.NetworkProject._scriptSymbol = Symbol('script'); 435 Bindings.NetworkProject._scriptSymbol = Symbol('script');
436 Bindings.NetworkProject._styleSheetSymbol = Symbol('styleSheet'); 436 Bindings.NetworkProject._styleSheetSymbol = Symbol('styleSheet');
437 Bindings.NetworkProject._targetSymbol = Symbol('target'); 437 Bindings.NetworkProject._targetSymbol = Symbol('target');
438 Bindings.NetworkProject._frameSymbol = Symbol('frame'); 438 Bindings.NetworkProject._frameSymbol = Symbol('frame');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698