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

Unified Diff: views/controls/table/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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/table/table_view.cc
diff --git a/views/controls/table/table_view.cc b/views/controls/table/table_view.cc
index 2eaab2b6a9779a00c343c89cecdd92d07bcedda4..cd7541a29be64c7ea06ec91d874f7c1723be7e1f 100644
--- a/views/controls/table/table_view.cc
+++ b/views/controls/table/table_view.cc
@@ -1406,11 +1406,15 @@ void TableView::UpdateListViewCache0(int start, int length, bool add) {
LVITEM item = {0};
if (add) {
const bool has_groups = model_->HasGroups();
- item.mask = has_groups ? (LVIF_GROUPID | LVIF_PARAM) : LVIF_PARAM;
for (int i = start; i < start + length; ++i) {
+ item.mask = has_groups ? (LVIF_GROUPID | LVIF_PARAM) : LVIF_PARAM;
item.iItem = i;
if (has_groups)
item.iGroupId = model_->GetGroupID(i);
+ if (model_->ShouldIndent(i)) {
+ item.mask |= LVIF_INDENT;
+ item.iIndent = 1;
+ }
item.lParam = i;
ListView_InsertItem(list_view_, &item);
}
« no previous file with comments | « views/controls/table/group_table_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698