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

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

Issue 2851213005: DevTools: brush up audits 2 launcher UI, allow multiple audit runs, introduce landing page. (Closed)
Patch Set: for landing Created 3 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
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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 this._pendingReloadOptions = [bypassCache, scriptToEvaluateOnLoad]; 370 this._pendingReloadOptions = [bypassCache, scriptToEvaluateOnLoad];
371 return; 371 return;
372 } 372 }
373 this._pendingReloadOptions = null; 373 this._pendingReloadOptions = null;
374 this.dispatchEventToListeners(SDK.ResourceTreeModel.Events.WillReloadPage); 374 this.dispatchEventToListeners(SDK.ResourceTreeModel.Events.WillReloadPage);
375 this._agent.reload(bypassCache, scriptToEvaluateOnLoad); 375 this._agent.reload(bypassCache, scriptToEvaluateOnLoad);
376 } 376 }
377 377
378 /** 378 /**
379 * @param {string} url 379 * @param {string} url
380 * @return {!Promise}
380 */ 381 */
381 navigate(url) { 382 navigate(url) {
382 this._agent.navigate(url, undefined, (error, frameId) => undefined); 383 return this._agent.navigate(url, undefined, (error, frameId) => undefined);
383 } 384 }
384 385
385 /** 386 /**
386 * @return {!Promise<?{currentIndex: number, entries: !Protocol.Page.Navigatio nEntry}>} 387 * @return {!Promise<?{currentIndex: number, entries: !Protocol.Page.Navigatio nEntry}>}
387 */ 388 */
388 navigationHistory() { 389 navigationHistory() {
389 return this._agent.getNavigationHistory((error, currentIndex, entries) => { 390 return this._agent.getNavigationHistory((error, currentIndex, entries) => {
390 if (error) 391 if (error)
391 return null; 392 return null;
392 return {currentIndex: currentIndex, entries: entries}; 393 return {currentIndex: currentIndex, entries: entries};
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 this._resourceTreeModel.dispatchEventToListeners(SDK.ResourceTreeModel.Event s.InterstitialHidden); 884 this._resourceTreeModel.dispatchEventToListeners(SDK.ResourceTreeModel.Event s.InterstitialHidden);
884 } 885 }
885 886
886 /** 887 /**
887 * @override 888 * @override
888 */ 889 */
889 navigationRequested() { 890 navigationRequested() {
890 // Frontend is not interested in when navigations are requested. 891 // Frontend is not interested in when navigations are requested.
891 } 892 }
892 }; 893 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698