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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 this.title = payload.title; | 633 this.title = payload.title; |
634 this.url = payload.url; | 634 this.url = payload.url; |
635 } | 635 } |
636 | 636 |
637 WebInspector.TargetInfo.prototype = { | 637 WebInspector.TargetInfo.prototype = { |
638 /** | 638 /** |
639 * @return {boolean} | 639 * @return {boolean} |
640 */ | 640 */ |
641 isWebContents: function() | 641 isWebContents: function() |
642 { | 642 { |
643 return this.type === "web_contents"; | 643 return this.type === "page"; |
644 }, | 644 }, |
645 /** | 645 /** |
646 * @return {boolean} | 646 * @return {boolean} |
647 */ | 647 */ |
648 isFrame: function() | 648 isFrame: function() |
649 { | 649 { |
650 return this.type === "frame"; | 650 return this.type === "frame"; |
651 }, | 651 }, |
652 } | 652 } |
653 | 653 |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
887 { | 887 { |
888 return this._isRedundant() && (!this.errors.length || this._deleting); | 888 return this._isRedundant() && (!this.errors.length || this._deleting); |
889 }, | 889 }, |
890 | 890 |
891 clearErrors: function() | 891 clearErrors: function() |
892 { | 892 { |
893 this._fingerprint = Symbol("fingerprint"); | 893 this._fingerprint = Symbol("fingerprint"); |
894 this.errors = []; | 894 this.errors = []; |
895 } | 895 } |
896 } | 896 } |
OLD | NEW |