| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }; |
| OLD | NEW |