diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-23 04:10:39 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-23 04:10:39 +0000 |
commit | 1d21c65297fa01c2e12ae162964ceb92ea9da46e (patch) | |
tree | b3346585b7286d1f03001e556b8eef1b740af540 /ui/views/controls/table/table_grouper.h | |
parent | 628a69a99587a81ec23064f6a7ee6261ff429e13 (diff) | |
download | chromium_src-1d21c65297fa01c2e12ae162964ceb92ea9da46e.zip chromium_src-1d21c65297fa01c2e12ae162964ceb92ea9da46e.tar.gz chromium_src-1d21c65297fa01c2e12ae162964ceb92ea9da46e.tar.bz2 |
Converts TableView from single selection to using
ListSelectionModel. Also adds TableGrouper, which allows grouping
cells (will replace GroupTableModel). Lastly adds
TableViewRowBackgroundPainter, which may be used to paint the
background of a row.
Also, removes a couple of unused methods from TableViewObserver.
BUG=none
TEST=none
R=sadrul@chromium.org
Review URL: https://chromiumcodereview.appspot.com/11663007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174549 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/controls/table/table_grouper.h')
-rw-r--r-- | ui/views/controls/table/table_grouper.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ui/views/controls/table/table_grouper.h b/ui/views/controls/table/table_grouper.h new file mode 100644 index 0000000..54ef21d --- /dev/null +++ b/ui/views/controls/table/table_grouper.h @@ -0,0 +1,25 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef UI_VIEWS_CONTROLS_TABLE_TABLE_GROUPER_H_ +#define UI_VIEWS_CONTROLS_TABLE_TABLE_GROUPER_H_ + +namespace views { + +struct GroupRange; + +// TableGrouper is used by TableView to group a set of rows and treat them +// as one. Rows that fall in the same group are selected together and sorted +// together. +class TableGrouper { + public: + virtual void GetGroupRange(int model_index, GroupRange* range) = 0; + + protected: + virtual ~TableGrouper() {} +}; + +} + +#endif // UI_VIEWS_CONTROLS_TABLE_GROUP_TABLE_VIEW_H_ |