diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-07 23:15:00 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-07 23:15:00 +0000 |
commit | 0f6ddca67e6adf84a63a88f8a35be0bc481aa9f2 (patch) | |
tree | ebe1a4d82f565994bf1f7c8fb7f16a4345f44b76 /views | |
parent | 88e6b6f3251af7092432c33b7d372a17c7169904 (diff) | |
download | chromium_src-0f6ddca67e6adf84a63a88f8a35be0bc481aa9f2.zip chromium_src-0f6ddca67e6adf84a63a88f8a35be0bc481aa9f2.tar.gz chromium_src-0f6ddca67e6adf84a63a88f8a35be0bc481aa9f2.tar.bz2 |
Remove a few stray bits of win2k support.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/1998012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46753 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r-- | views/controls/table/native_table_win.cc | 5 | ||||
-rw-r--r-- | views/controls/table/table_view.cc | 12 |
2 files changed, 4 insertions, 13 deletions
diff --git a/views/controls/table/native_table_win.cc b/views/controls/table/native_table_win.cc index f0a212f..3422c3d 100644 --- a/views/controls/table/native_table_win.cc +++ b/views/controls/table/native_table_win.cc @@ -337,10 +337,7 @@ void NativeTableWin::CreateNativeControl() { // Make the selection extend across the row. // Reduce overdraw/flicker artifacts by double buffering. - DWORD list_view_style = LVS_EX_FULLROWSELECT; - if (win_util::GetWinVersion() > win_util::WINVERSION_2000) { - list_view_style |= LVS_EX_DOUBLEBUFFER; - } + DWORD list_view_style = LVS_EX_FULLROWSELECT | LVS_EX_DOUBLEBUFFER; if (table_->type() == CHECK_BOX_AND_TEXT) list_view_style |= LVS_EX_CHECKBOXES; ListView_SetExtendedListViewStyleEx(hwnd, 0, list_view_style); diff --git a/views/controls/table/table_view.cc b/views/controls/table/table_view.cc index 711a707..a39aff0 100644 --- a/views/controls/table/table_view.cc +++ b/views/controls/table/table_view.cc @@ -793,10 +793,7 @@ HWND TableView::CreateNativeControl(HWND parent_container) { // Make the selection extend across the row. // Reduce overdraw/flicker artifacts by double buffering. - DWORD list_view_style = LVS_EX_FULLROWSELECT; - if (win_util::GetWinVersion() > win_util::WINVERSION_2000) { - list_view_style |= LVS_EX_DOUBLEBUFFER; - } + DWORD list_view_style = LVS_EX_FULLROWSELECT | LVS_EX_DOUBLEBUFFER; if (table_type_ == CHECK_BOX_AND_TEXT) list_view_style |= LVS_EX_CHECKBOXES; ListView_SetExtendedListViewStyleEx(list_view_, 0, list_view_style); @@ -813,8 +810,7 @@ HWND TableView::CreateNativeControl(HWND parent_container) { model_->SetObserver(this); // Add the groups. - if (model_ && model_->HasGroups() && - win_util::GetWinVersion() > win_util::WINVERSION_2000) { + if (model_ && model_->HasGroups()) { ListView_EnableGroupView(list_view_, true); TableModel::Groups groups = model_->GetGroups(); @@ -1375,9 +1371,7 @@ void TableView::UpdateListViewCache0(int start, int length, bool add) { LVITEM item = {0}; int start_column = 0; int max_row = start + length; - const bool has_groups = - (win_util::GetWinVersion() > win_util::WINVERSION_2000 && - model_->HasGroups()); + const bool has_groups = model_->HasGroups(); if (add) { if (has_groups) item.mask = LVIF_GROUPID; |