| Index: views/controls/table/group_table_view.cc
|
| diff --git a/views/controls/table/group_table_view.cc b/views/controls/table/group_table_view.cc
|
| index efef1a52eb4d8901742a73f426dd73892eddacff..4d34c564e32920a5ebdafa477bc0830119e9f009 100644
|
| --- a/views/controls/table/group_table_view.cc
|
| +++ b/views/controls/table/group_table_view.cc
|
| @@ -21,10 +21,12 @@ GroupTableView::GroupTableView(GroupTableModel* model,
|
| TableTypes table_type,
|
| bool single_selection,
|
| bool resizable_columns,
|
| - bool autosize_columns)
|
| + bool autosize_columns,
|
| + bool draw_group_separators)
|
| : TableView(model, columns, table_type, false, resizable_columns,
|
| autosize_columns),
|
| model_(model),
|
| + draw_group_separators_(draw_group_separators),
|
| ALLOW_THIS_IN_INITIALIZER_LIST(sync_selection_factory_(this)) {
|
| }
|
|
|
| @@ -168,6 +170,9 @@ void GroupTableView::OnSelectedStateChanged() {
|
| // Draws the line separator betweens the groups.
|
| void GroupTableView::PostPaint(int model_row, int column, bool selected,
|
| const gfx::Rect& bounds, HDC hdc) {
|
| + if (!draw_group_separators_)
|
| + return;
|
| +
|
| GroupRange group_range;
|
| model_->GetGroupRangeForItem(model_row, &group_range);
|
|
|
|
|