OLD | NEW |
1 // Copyright (c) 2006-2008 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 "views/controls/table/group_table_view.h" | 5 #include "views/controls/table/group_table_view.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/task.h" | 9 #include "base/task.h" |
10 #include "ui/gfx/canvas.h" | 10 #include "ui/gfx/canvas.h" |
11 | 11 |
12 namespace views { | 12 namespace views { |
13 | 13 |
14 static const COLORREF kSeparatorLineColor = RGB(208, 208, 208); | 14 static const COLORREF kSeparatorLineColor = RGB(208, 208, 208); |
15 static const int kSeparatorLineThickness = 1; | 15 static const int kSeparatorLineThickness = 1; |
16 | 16 |
17 const char GroupTableView::kViewClassName[] = "views/GroupTableView"; | 17 const char GroupTableView::kViewClassName[] = "views/GroupTableView"; |
18 | 18 |
19 GroupTableView::GroupTableView(GroupTableModel* model, | 19 GroupTableView::GroupTableView(GroupTableModel* model, |
20 const std::vector<TableColumn>& columns, | 20 const std::vector<ui::TableColumn>& columns, |
21 TableTypes table_type, | 21 TableTypes table_type, |
22 bool single_selection, | 22 bool single_selection, |
23 bool resizable_columns, | 23 bool resizable_columns, |
24 bool autosize_columns, | 24 bool autosize_columns, |
25 bool draw_group_separators) | 25 bool draw_group_separators) |
26 : TableView(model, columns, table_type, false, resizable_columns, | 26 : TableView(model, columns, table_type, false, resizable_columns, |
27 autosize_columns), | 27 autosize_columns), |
28 model_(model), | 28 model_(model), |
29 draw_group_separators_(draw_group_separators), | 29 draw_group_separators_(draw_group_separators), |
30 ALLOW_THIS_IN_INITIALIZER_LIST(sync_selection_factory_(this)) { | 30 ALLOW_THIS_IN_INITIALIZER_LIST(sync_selection_factory_(this)) { |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 } | 191 } |
192 SelectObject(hdc, hPenOld); | 192 SelectObject(hdc, hPenOld); |
193 DeleteObject(hPen); | 193 DeleteObject(hPen); |
194 } | 194 } |
195 | 195 |
196 std::string GroupTableView::GetClassName() const { | 196 std::string GroupTableView::GetClassName() const { |
197 return kViewClassName; | 197 return kViewClassName; |
198 } | 198 } |
199 | 199 |
200 } // namespace views | 200 } // namespace views |
OLD | NEW |