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

Side by Side Diff: Source/devtools/front_end/network/NetworkItemView.js

Issue 311073002: DevTools: Preserve tab selection in NetworkItemView (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | Source/devtools/front_end/ui/TabbedPane.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 }, 84 },
85 85
86 /** 86 /**
87 * @param {string=} tabId 87 * @param {string=} tabId
88 */ 88 */
89 _selectTab: function(tabId) 89 _selectTab: function(tabId)
90 { 90 {
91 if (!tabId) 91 if (!tabId)
92 tabId = WebInspector.settings.resourceViewTab.get(); 92 tabId = WebInspector.settings.resourceViewTab.get();
93 93
94 if (!this.selectTab(tabId)) { 94 if (!this.selectTab(tabId))
95 this._isInFallbackSelection = true;
96 this.selectTab("headers"); 95 this.selectTab("headers");
97 delete this._isInFallbackSelection;
98 }
99 }, 96 },
100 97
101 _tabSelected: function(event) 98 _tabSelected: function(event)
102 { 99 {
103 if (!event.data.isUserGesture) 100 if (!event.data.isUserGesture)
104 return; 101 return;
105 102
106 WebInspector.settings.resourceViewTab.set(event.data.tabId); 103 WebInspector.settings.resourceViewTab.set(event.data.tabId);
107 104
108 WebInspector.notifications.dispatchEventToListeners(WebInspector.UserMet rics.UserAction, { 105 WebInspector.notifications.dispatchEventToListeners(WebInspector.UserMet rics.UserAction, {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 this.request.requestContent(callback.bind(this)); 176 this.request.requestContent(callback.bind(this));
180 }, 177 },
181 178
182 contentLoaded: function() 179 contentLoaded: function()
183 { 180 {
184 // Should be implemented by subclasses. 181 // Should be implemented by subclasses.
185 }, 182 },
186 183
187 __proto__: WebInspector.RequestView.prototype 184 __proto__: WebInspector.RequestView.prototype
188 } 185 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/ui/TabbedPane.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698