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

Side by Side Diff: chrome/browser/ui/touch/tabs/tab_strip_factory.cc

Issue 8678015: Touch constants and dead code removal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Applied Sadrul's comments Created 9 years, 1 month 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
OLDNEW
(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
OLDNEW
« no previous file with comments | « chrome/browser/ui/touch/frame/touch_browser_frame_view.cc ('k') | chrome/browser/ui/touch/tabs/touch_tab.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698