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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js

Issue 2562453003: [DevTools] Remove Common.Event.target field. (Closed)
Patch Set: works 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 _processCachedResources(error, mainFramePayload) { 100 _processCachedResources(error, mainFramePayload) {
101 if (!error) { 101 if (!error) {
102 this.dispatchEventToListeners(SDK.ResourceTreeModel.Events.WillLoadCachedR esources); 102 this.dispatchEventToListeners(SDK.ResourceTreeModel.Events.WillLoadCachedR esources);
103 this._addFramesRecursively(null, mainFramePayload); 103 this._addFramesRecursively(null, mainFramePayload);
104 this.target().setInspectedURL(mainFramePayload.frame.url); 104 this.target().setInspectedURL(mainFramePayload.frame.url);
105 } 105 }
106 this._cachedResourcesProcessed = true; 106 this._cachedResourcesProcessed = true;
107 this.target().runtimeModel.setExecutionContextComparator(this._executionCont extComparator.bind(this)); 107 this.target().runtimeModel.setExecutionContextComparator(this._executionCont extComparator.bind(this));
108 this.target().runtimeModel.fireExecutionContextOrderChanged(); 108 this.target().runtimeModel.fireExecutionContextOrderChanged();
109 this.dispatchEventToListeners(SDK.ResourceTreeModel.Events.CachedResourcesLo aded); 109 this.dispatchEventToListeners(SDK.ResourceTreeModel.Events.CachedResourcesLo aded, this);
110 } 110 }
111 111
112 /** 112 /**
113 * @return {boolean} 113 * @return {boolean}
114 */ 114 */
115 cachedResourcesLoaded() { 115 cachedResourcesLoaded() {
116 return this._cachedResourcesProcessed; 116 return this._cachedResourcesProcessed;
117 } 117 }
118 118
119 /** 119 /**
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 this._resourceTreeModel.dispatchEventToListeners(SDK.ResourceTreeModel.Event s.InterstitialHidden); 893 this._resourceTreeModel.dispatchEventToListeners(SDK.ResourceTreeModel.Event s.InterstitialHidden);
894 } 894 }
895 895
896 /** 896 /**
897 * @override 897 * @override
898 */ 898 */
899 navigationRequested() { 899 navigationRequested() {
900 // Frontend is not interested in when navigations are requested. 900 // Frontend is not interested in when navigations are requested.
901 } 901 }
902 }; 902 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698