OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> | 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> |
4 * Copyright (C) 2011 Google Inc. All rights reserved. | 4 * Copyright (C) 2011 Google Inc. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * | 9 * |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
929 iconElement.appendChild(previewImage); | 929 iconElement.appendChild(previewImage); |
930 } else { | 930 } else { |
931 iconElement = createElementWithClass('img', 'icon'); | 931 iconElement = createElementWithClass('img', 'icon'); |
932 } | 932 } |
933 iconElement.classList.add(this._request.resourceType().name()); | 933 iconElement.classList.add(this._request.resourceType().name()); |
934 | 934 |
935 cell.appendChild(iconElement); | 935 cell.appendChild(iconElement); |
936 if (!this._nameBadgeElement) | 936 if (!this._nameBadgeElement) |
937 this._nameBadgeElement = this.parentView().badgePool.badgeForURL(this._req
uest.parsedURL); | 937 this._nameBadgeElement = this.parentView().badgePool.badgeForURL(this._req
uest.parsedURL); |
938 cell.appendChild(this._nameBadgeElement); | 938 cell.appendChild(this._nameBadgeElement); |
939 cell.createTextChild(this._request.networkManager().target().decorateLabel(t
his._request.name())); | 939 cell.createTextChild(this._request.networkManager().target().decorateLabel(t
his._request.name().trimMiddle(100))); |
940 this._appendSubtitle(cell, this._request.path()); | 940 this._appendSubtitle(cell, this._request.path()); |
941 cell.title = this._request.url(); | 941 cell.title = this._request.url(); |
942 } | 942 } |
943 | 943 |
944 /** | 944 /** |
945 * @override | 945 * @override |
946 * @return {!Promise<?Network.NetworkNode._ProductEntryInfo>} | 946 * @return {!Promise<?Network.NetworkNode._ProductEntryInfo>} |
947 */ | 947 */ |
948 productEntry() { | 948 productEntry() { |
949 return ProductRegistry.instance().then(productRegistry => { | 949 return ProductRegistry.instance().then(productRegistry => { |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1132 * @param {boolean=} supressSelectedEvent | 1132 * @param {boolean=} supressSelectedEvent |
1133 */ | 1133 */ |
1134 select(supressSelectedEvent) { | 1134 select(supressSelectedEvent) { |
1135 if (this.expanded) { | 1135 if (this.expanded) { |
1136 this.collapse(); | 1136 this.collapse(); |
1137 return; | 1137 return; |
1138 } | 1138 } |
1139 this.expand(); | 1139 this.expand(); |
1140 } | 1140 } |
1141 }; | 1141 }; |
OLD | NEW |