Commit 23724c3a authored by Ben Reich's avatar Ben Reich Committed by Commit Bot

[filesapp] Append sourceURL to JavaScript foreground elements

Append sourceURL comment to allow Devtools to map parsed scripts back to
their source location. This new source location is surfaced in the
Sources tab in Devtools as well as the Chrome Devtools Protocol event
Debugger.scriptParsed which is used during JavaScript code coverage.

This also updates 2 of the vars to const's for the FilesToggleRipple and
the FilesRipple.

Bug: 1113941
Test: None
Change-Id: I3344dc18ec678bd76190ede3a5ee80f440db4e43
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2505743
Commit-Queue: Ben Reich <benreich@chromium.org>
Reviewed-by: default avatarLuciano Pacheco <lucmult@chromium.org>
Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#823055}
parent 1dd82dd3
...@@ -175,3 +175,5 @@ Polymer({ ...@@ -175,3 +175,5 @@ Polymer({
this.$.dialog.showModal(); this.$.dialog.showModal();
}, },
}); });
//# sourceURL=//ui/file_manager/file_manager/foreground/elements/files_format_dialog.js
...@@ -27,3 +27,5 @@ Polymer({ ...@@ -27,3 +27,5 @@ Polymer({
} }
} }
}); });
//# sourceURL=//ui/file_manager/file_manager/foreground/elements/files_icon_button.js
...@@ -245,3 +245,5 @@ class FilesMessage extends HTMLElement { ...@@ -245,3 +245,5 @@ class FilesMessage extends HTMLElement {
} }
customElements.define('files-message', FilesMessage); customElements.define('files-message', FilesMessage);
//# sourceURL=//ui/file_manager/file_manager/foreground/elements/files_message.js
...@@ -362,3 +362,5 @@ const FilesMetadataBox = Polymer({ ...@@ -362,3 +362,5 @@ const FilesMetadataBox = Polymer({
return result.trimEnd(); return result.trimEnd();
}, },
}); });
//# sourceURL=//ui/file_manager/file_manager/foreground/elements/files_metadata_box.js
...@@ -85,3 +85,5 @@ const FilesMetadataEntry = Polymer({ ...@@ -85,3 +85,5 @@ const FilesMetadataEntry = Polymer({
} }
}, },
}); });
//# sourceURL=//ui/file_manager/file_manager/foreground/elements/files_metadata_entry.js
...@@ -217,3 +217,5 @@ class FilesPasswordDialog extends HTMLElement { ...@@ -217,3 +217,5 @@ class FilesPasswordDialog extends HTMLElement {
FilesPasswordDialog.USER_CANCELLED = new Error('Cancelled by user'); FilesPasswordDialog.USER_CANCELLED = new Error('Cancelled by user');
window.customElements.define('files-password-dialog', FilesPasswordDialog); window.customElements.define('files-password-dialog', FilesPasswordDialog);
//# sourceURL=//ui/file_manager/file_manager/foreground/elements/files_password_dialog.js
...@@ -292,3 +292,5 @@ const FilesQuickView = Polymer({ ...@@ -292,3 +292,5 @@ const FilesQuickView = Polymer({
this.fire('close'); this.fire('close');
} }
}); });
//# sourceURL=//ui/file_manager/file_manager/foreground/elements/files_quick_view.js
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* Circle ripple effect with burst animation. * Circle ripple effect with burst animation.
*/ */
var FilesRipple = Polymer({ const FilesRipple = Polymer({
is: 'files-ripple', is: 'files-ripple',
properties: { properties: {
...@@ -120,3 +120,5 @@ var FilesRipple = Polymer({ ...@@ -120,3 +120,5 @@ var FilesRipple = Polymer({
}); });
} }
}); });
//# sourceURL=//ui/file_manager/file_manager/foreground/elements/files_ripple.js
...@@ -113,3 +113,5 @@ const FilesSafeMedia = Polymer({ ...@@ -113,3 +113,5 @@ const FilesSafeMedia = Polymer({
}); });
} }
}); });
//# sourceURL=//ui/file_manager/file_manager/foreground/elements/files_safe_media.js
...@@ -97,3 +97,5 @@ window.onload = () => { ...@@ -97,3 +97,5 @@ window.onload = () => {
content.removeAttribute('hidden'); content.removeAttribute('hidden');
}, 500); }, 500);
}; };
//# sourceURL=//ui/file_manager/file_manager/foreground/elements/files_safe_media_webview_content.js
...@@ -82,3 +82,5 @@ class FilesSpinner extends HTMLElement { ...@@ -82,3 +82,5 @@ class FilesSpinner extends HTMLElement {
} }
customElements.define('files-spinner', FilesSpinner); customElements.define('files-spinner', FilesSpinner);
//# sourceURL=//ui/file_manager/file_manager/foreground/elements/files_spinner.js
...@@ -125,3 +125,5 @@ const FilesToast = Polymer({ ...@@ -125,3 +125,5 @@ const FilesToast = Polymer({
} }
} }
}); });
//# sourceURL=//ui/file_manager/file_manager/foreground/elements/files_toast.js
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* *
* Ripple size of the activated state is same with the size of this element. * Ripple size of the activated state is same with the size of this element.
*/ */
var FilesToggleRipple = Polymer({ const FilesToggleRipple = Polymer({
is: 'files-toggle-ripple', is: 'files-toggle-ripple',
properties: { properties: {
...@@ -132,3 +132,5 @@ var FilesToggleRipple = Polymer({ ...@@ -132,3 +132,5 @@ var FilesToggleRipple = Polymer({
], 150); ], 150);
} }
}); });
//# sourceURL=//ui/file_manager/file_manager/foreground/elements/files_toggle_ripple.js
...@@ -322,3 +322,5 @@ const FilesTooltip = Polymer({ ...@@ -322,3 +322,5 @@ const FilesTooltip = Polymer({
this.$.label.className = ''; this.$.label.className = '';
} }
}); });
//# sourceURL=//ui/file_manager/file_manager/foreground/elements/files_tooltip.js
...@@ -118,3 +118,5 @@ class PanelButton extends HTMLElement { ...@@ -118,3 +118,5 @@ class PanelButton extends HTMLElement {
} }
window.customElements.define('xf-button', PanelButton); window.customElements.define('xf-button', PanelButton);
//# sourceURL=//ui/file_manager/file_manager/foreground/elements/xf_button.js
...@@ -245,3 +245,5 @@ class CircularProgress extends HTMLElement { ...@@ -245,3 +245,5 @@ class CircularProgress extends HTMLElement {
} }
window.customElements.define('xf-circular-progress', CircularProgress); window.customElements.define('xf-circular-progress', CircularProgress);
//# sourceURL=//ui/file_manager/file_manager/foreground/elements/xf_circular_progress.js
...@@ -466,3 +466,5 @@ class DisplayPanel extends HTMLElement { ...@@ -466,3 +466,5 @@ class DisplayPanel extends HTMLElement {
} }
window.customElements.define('xf-display-panel', DisplayPanel); window.customElements.define('xf-display-panel', DisplayPanel);
//# sourceURL=//ui/file_manager/file_manager/foreground/elements/xf_display_panel.js
...@@ -678,3 +678,5 @@ class PanelItem extends HTMLElement { ...@@ -678,3 +678,5 @@ class PanelItem extends HTMLElement {
} }
window.customElements.define('xf-panel-item', PanelItem); window.customElements.define('xf-panel-item', PanelItem);
//# sourceURL=//ui/file_manager/file_manager/foreground/elements/xf_panel_item.js
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment