OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/touch/tabs/touch_tab_strip.h" | 5 #include "chrome/browser/ui/touch/tabs/touch_tab_strip.h" |
6 | 6 |
7 #include "chrome/browser/ui/touch/tabs/touch_tab.h" | 7 #include "chrome/browser/ui/touch/tabs/touch_tab.h" |
8 #include "chrome/browser/ui/view_ids.h" | 8 #include "chrome/browser/ui/view_ids.h" |
9 #include "gfx/canvas_skia.h" | 9 #include "ui/gfx/canvas_skia.h" |
10 #include "views/window/non_client_view.h" | 10 #include "views/window/non_client_view.h" |
11 #include "views/window/window.h" | 11 #include "views/window/window.h" |
12 | 12 |
13 static const int kTouchTabStripHeight = 64; | 13 static const int kTouchTabStripHeight = 64; |
14 static const int kTouchTabWidth = 64; | 14 static const int kTouchTabWidth = 64; |
15 static const int kTouchTabHeight = 64; | 15 static const int kTouchTabHeight = 64; |
16 | 16 |
17 TouchTabStrip::TouchTabStrip(TabStripController* controller) | 17 TouchTabStrip::TouchTabStrip(TabStripController* controller) |
18 : BaseTabStrip(controller, BaseTabStrip::HORIZONTAL_TAB_STRIP), | 18 : BaseTabStrip(controller, BaseTabStrip::HORIZONTAL_TAB_STRIP), |
19 in_tab_close_(false) { | 19 in_tab_close_(false) { |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 return static_cast<TouchTab*>(base_tab_at_tab_index(tab_data_index)); | 191 return static_cast<TouchTab*>(base_tab_at_tab_index(tab_data_index)); |
192 } | 192 } |
193 | 193 |
194 //////////////////////////////////////////////////////////////////////////////// | 194 //////////////////////////////////////////////////////////////////////////////// |
195 // TouchTabStrip, private: | 195 // TouchTabStrip, private: |
196 | 196 |
197 void TouchTabStrip::Init() { | 197 void TouchTabStrip::Init() { |
198 SetID(VIEW_ID_TAB_STRIP); | 198 SetID(VIEW_ID_TAB_STRIP); |
199 } | 199 } |
200 | 200 |
OLD | NEW |