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

Side by Side Diff: Source/devtools/front_end/timeline/TimelinePanel.js

Issue 627413002: [Devtools] Do not switch tabs by default when adding a tab. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after
1165 * @param {string} id 1165 * @param {string} id
1166 * @param {string} tabTitle 1166 * @param {string} tabTitle
1167 * @param {!WebInspector.View} view 1167 * @param {!WebInspector.View} view
1168 * @param {string=} tabTooltip 1168 * @param {string=} tabTooltip
1169 * @param {boolean=} userGesture 1169 * @param {boolean=} userGesture
1170 * @param {boolean=} isCloseable 1170 * @param {boolean=} isCloseable
1171 */ 1171 */
1172 appendTab: function(id, tabTitle, view, tabTooltip, userGesture, isCloseable ) 1172 appendTab: function(id, tabTitle, view, tabTooltip, userGesture, isCloseable )
1173 { 1173 {
1174 WebInspector.TabbedPane.prototype.appendTab.call(this, id, tabTitle, vie w, tabTooltip); 1174 WebInspector.TabbedPane.prototype.appendTab.call(this, id, tabTitle, vie w, tabTooltip);
1175 if (this._lastUserSelectedTabId !== this.selectedTabId) 1175 if (this._lastUserSelectedTabId && this._lastUserSelectedTabId !== this. selectedTabId)
pfeldman 2014/10/06 04:56:14 Is (was) this showing all the tabs as they were ad
1176 this.selectTab(id); 1176 this.selectTab(id);
1177 }, 1177 },
1178 1178
1179 _tabSelected: function(event) 1179 _tabSelected: function(event)
1180 { 1180 {
1181 if (!event.data.isUserGesture) 1181 if (!event.data.isUserGesture)
1182 return; 1182 return;
1183 1183
1184 this._lastUserSelectedTabId = event.data.tabId; 1184 this._lastUserSelectedTabId = event.data.tabId;
1185 }, 1185 },
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
1456 1456
1457 WebInspector.TimelinePanelFactory.prototype = { 1457 WebInspector.TimelinePanelFactory.prototype = {
1458 /** 1458 /**
1459 * @return {!WebInspector.Panel} 1459 * @return {!WebInspector.Panel}
1460 */ 1460 */
1461 createPanel: function() 1461 createPanel: function()
1462 { 1462 {
1463 return WebInspector.TimelinePanel._instance(); 1463 return WebInspector.TimelinePanel._instance();
1464 } 1464 }
1465 } 1465 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698