| OLD | NEW |
| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 /** | 164 /** |
| 165 * @param {Array.<string>} ids | 165 * @param {Array.<string>} ids |
| 166 * @param {boolean=} userGesture | 166 * @param {boolean=} userGesture |
| 167 */ | 167 */ |
| 168 closeTabs: function(ids, userGesture) | 168 closeTabs: function(ids, userGesture) |
| 169 { | 169 { |
| 170 for (var i = 0; i < ids.length; ++i) | 170 for (var i = 0; i < ids.length; ++i) |
| 171 this._innerCloseTab(ids[i], userGesture); | 171 this._innerCloseTab(ids[i], userGesture); |
| 172 this._updateTabElements(); | 172 this._updateTabElements(); |
| 173 if (this._tabsHistory.length) | 173 if (this._tabsHistory.length) |
| 174 this.selectTab(this._tabsHistory[0].id, userGesture); | 174 this.selectTab(this._tabsHistory[0].id, false); |
| 175 }, | 175 }, |
| 176 | 176 |
| 177 /** | 177 /** |
| 178 * @param {string} id | 178 * @param {string} id |
| 179 * @param {boolean=} userGesture | 179 * @param {boolean=} userGesture |
| 180 */ | 180 */ |
| 181 _innerCloseTab: function(id, userGesture) | 181 _innerCloseTab: function(id, userGesture) |
| 182 { | 182 { |
| 183 if (!this._tabsById[id]) | 183 if (!this._tabsById[id]) |
| 184 return; | 184 return; |
| (...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 980 { | 980 { |
| 981 } | 981 } |
| 982 | 982 |
| 983 WebInspector.TabbedPaneTabDelegate.prototype = { | 983 WebInspector.TabbedPaneTabDelegate.prototype = { |
| 984 /** | 984 /** |
| 985 * @param {WebInspector.TabbedPane} tabbedPane | 985 * @param {WebInspector.TabbedPane} tabbedPane |
| 986 * @param {Array.<string>} ids | 986 * @param {Array.<string>} ids |
| 987 */ | 987 */ |
| 988 closeTabs: function(tabbedPane, ids) { } | 988 closeTabs: function(tabbedPane, ids) { } |
| 989 } | 989 } |
| OLD | NEW |