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

Side by Side Diff: Source/devtools/front_end/TabbedPane.js

Issue 81983002: DevTools: tab selection after tabclose should not be a user gesture (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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) 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
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
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 }
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