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

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

Issue 2867713006: [Devtools] Added report miss-match link to network product entries (Closed)
Patch Set: changes 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/product_registry_impl/ProductRegistryImpl.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 } 600 }
601 601
602 /** 602 /**
603 * @return {!Array.<!SDK.ResourceTreeFrame>} 603 * @return {!Array.<!SDK.ResourceTreeFrame>}
604 */ 604 */
605 get childFrames() { 605 get childFrames() {
606 return this._childFrames; 606 return this._childFrames;
607 } 607 }
608 608
609 /** 609 /**
610 * @return {?Protocol.Runtime.StackTrace} 610 * @param {function(!Protocol.Runtime.CallFrame):boolean} searchFn
611 * @return {?Protocol.Runtime.CallFrame}
611 */ 612 */
612 creationStackTrace() { 613 findCreationCallFrame(searchFn) {
613 return this._creationStackTrace; 614 var stackTrace = this._creationStackTrace;
615 while (stackTrace) {
616 var foundEntry = stackTrace.callFrames.find(searchFn);
617 if (foundEntry)
618 return foundEntry;
619 stackTrace = this.parent;
620 }
621 return null;
614 } 622 }
615 623
616 /** 624 /**
617 * @return {boolean} 625 * @return {boolean}
618 */ 626 */
619 isMainFrame() { 627 isMainFrame() {
620 return !this._parentFrame; 628 return !this._parentFrame;
621 } 629 }
622 630
623 /** 631 /**
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 this._resourceTreeModel.dispatchEventToListeners(SDK.ResourceTreeModel.Event s.InterstitialHidden); 897 this._resourceTreeModel.dispatchEventToListeners(SDK.ResourceTreeModel.Event s.InterstitialHidden);
890 } 898 }
891 899
892 /** 900 /**
893 * @override 901 * @override
894 */ 902 */
895 navigationRequested() { 903 navigationRequested() {
896 // Frontend is not interested in when navigations are requested. 904 // Frontend is not interested in when navigations are requested.
897 } 905 }
898 }; 906 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/product_registry_impl/ProductRegistryImpl.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698