| 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 // This file is only compiled when touchui is defined. | |
| 6 | |
| 7 #include "chrome/browser/ui/views/tabs/tab_strip_factory.h" | |
| 8 | |
| 9 #include "chrome/browser/ui/touch/tabs/touch_tab_strip.h" | |
| 10 #include "chrome/browser/ui/touch/tabs/touch_tab_strip_controller.h" | |
| 11 | |
| 12 // The implementation of CreateTabStrip for touchui creates a TouchTabStrip | |
| 13 AbstractTabStripView* CreateTabStrip(Browser* browser, | |
| 14 views::View* parent, | |
| 15 TabStripModel* model) { | |
| 16 TouchTabStripController* tabstrip_controller = | |
| 17 new TouchTabStripController(browser, model); | |
| 18 // Ownership of this controller is given to a specific tabstrip when we | |
| 19 // construct it below. | |
| 20 | |
| 21 TouchTabStrip* tabstrip = new TouchTabStrip(tabstrip_controller); | |
| 22 parent->AddChildView(tabstrip); | |
| 23 tabstrip_controller->InitFromModel(tabstrip); | |
| 24 return tabstrip; | |
| 25 } | |
| 26 | |
| OLD | NEW |