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

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

Issue 2543633009: [Devtools] Template fromTarget() function calls to model (Closed)
Patch Set: fix 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 * 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 this._mainFrameNavigated(); 50 this._mainFrameNavigated();
51 this._onLine = true; 51 this._onLine = true;
52 } 52 }
53 53
54 /** 54 /**
55 * @param {!SDK.Target} target 55 * @param {!SDK.Target} target
56 * @return {?SDK.ApplicationCacheModel} 56 * @return {?SDK.ApplicationCacheModel}
57 */ 57 */
58 static fromTarget(target) { 58 static fromTarget(target) {
59 return /** @type {?SDK.ApplicationCacheModel} */ (target.model(SDK.Applicati onCacheModel)); 59 return target.model(SDK.ApplicationCacheModel);
60 } 60 }
61 61
62 _frameNavigated(event) { 62 _frameNavigated(event) {
63 var frame = /** @type {!SDK.ResourceTreeFrame} */ (event.data); 63 var frame = /** @type {!SDK.ResourceTreeFrame} */ (event.data);
64 if (frame.isMainFrame()) { 64 if (frame.isMainFrame()) {
65 this._mainFrameNavigated(); 65 this._mainFrameNavigated();
66 return; 66 return;
67 } 67 }
68 68
69 this._agent.getManifestForFrame(frame.id, this._manifestForFrameLoaded.bind( this, frame.id)); 69 this._agent.getManifestForFrame(frame.id, this._manifestForFrameLoaded.bind( this, frame.id));
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 } 252 }
253 253
254 /** 254 /**
255 * @override 255 * @override
256 * @param {boolean} isNowOnline 256 * @param {boolean} isNowOnline
257 */ 257 */
258 networkStateUpdated(isNowOnline) { 258 networkStateUpdated(isNowOnline) {
259 this._applicationCacheModel._networkStateUpdated(isNowOnline); 259 this._applicationCacheModel._networkStateUpdated(isNowOnline);
260 } 260 }
261 }; 261 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698