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

Unified Diff: third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js

Issue 2873843003: [DevTools] Restore tree selection after reload (Closed)
Patch Set: [DevTools] Restore tree selection after reload 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/resources/CookieItemsView.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js b/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js
index 132bcdb1f932991816cfc8ec94b3c4f89d655300..071fb43875835926692a05cab5657ea2271f454c 100644
--- a/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js
@@ -7,7 +7,7 @@ Resources.ResourcesPanel = class extends UI.PanelWithSidebar {
super('resources');
this.registerRequiredCSS('resources/resourcesPanel.css');
- this._resourcesLastSelectedItemSetting = Common.settings.createSetting('resourcesLastSelectedItem', '');
+ this._resourcesLastSelectedItemSetting = Common.settings.createSetting('resourcesLastSelectedElementPath', []);
/** @type {?UI.Widget} */
this.visibleView = null;
@@ -60,14 +60,17 @@ Resources.ResourcesPanel = class extends UI.PanelWithSidebar {
}
/**
- * @return {string}
+ * @return {!Array<string>}
*/
- lastSelectedItemURL() {
+ lastSelectedItemPath() {
return this._resourcesLastSelectedItemSetting.get();
}
- setLastSelectedItemURL(url) {
- this._resourcesLastSelectedItemSetting.set(url);
+ /**
+ * @param {!Array<string>} path
+ */
+ setLastSelectedItemPath(path) {
+ this._resourcesLastSelectedItemSetting.set(path);
}
resetView() {
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/resources/CookieItemsView.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698