| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/ui/touch/tabs/touch_tab.h" | |
| 6 | |
| 7 //////////////////////////////////////////////////////////////////////////////// | |
| 8 // TouchTab, public: | |
| 9 | |
| 10 TouchTab::TouchTab(TabController* controller) | |
| 11 : Tab(controller) { | |
| 12 } | |
| 13 | |
| 14 TouchTab::~TouchTab() { | |
| 15 } | |
| 16 | |
| 17 // We only show the close button for the active tab. | |
| 18 bool TouchTab::ShouldShowCloseBox() const { | |
| 19 return IsCloseable() && IsActive(); | |
| 20 } | |
| OLD | NEW |