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

Unified Diff: views/controls/table/group_table_view.cc

Issue 4987001: Implement new task manager mocks on windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated per review feedback Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/controls/table/group_table_view.h ('k') | views/controls/table/table_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « views/controls/table/group_table_view.h ('k') | views/controls/table/table_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698