Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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 } |
| OLD | NEW |