diff options
Diffstat (limited to 'chrome/browser/resources/net_internals/tabswitcherview.js')
-rw-r--r-- | chrome/browser/resources/net_internals/tabswitcherview.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/resources/net_internals/tabswitcherview.js b/chrome/browser/resources/net_internals/tabswitcherview.js index 18cfa7a..97eca54 100644 --- a/chrome/browser/resources/net_internals/tabswitcherview.js +++ b/chrome/browser/resources/net_internals/tabswitcherview.js @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -67,7 +67,8 @@ TabSwitcherView.prototype.show = function(isVisible) { * "tab". * @param {!View} view The tab's actual contents. */ -TabSwitcherView.prototype.addTab = function(id, contentView, switchOnClick) { +TabSwitcherView.prototype.addTab = function(id, contentView, switchOnClick, + visible) { var tab = new TabEntry(id, contentView); this.tabs_.push(tab); @@ -81,6 +82,8 @@ TabSwitcherView.prototype.addTab = function(id, contentView, switchOnClick) { // Start tabs off as hidden. tab.contentView.show(false); + + this.showTabHandleNode(id, visible); }; /** |