OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_VIEWS_CONTROLS_TABLE_TABLE_GROUPER_H_ | 5 #ifndef UI_VIEWS_CONTROLS_TABLE_TABLE_GROUPER_H_ |
6 #define UI_VIEWS_CONTROLS_TABLE_TABLE_GROUPER_H_ | 6 #define UI_VIEWS_CONTROLS_TABLE_TABLE_GROUPER_H_ |
7 | 7 |
| 8 #include "ui/views/views_export.h" |
| 9 |
8 namespace views { | 10 namespace views { |
9 | 11 |
10 struct GroupRange { | 12 struct VIEWS_EXPORT GroupRange { |
11 int start; | 13 int start; |
12 int length; | 14 int length; |
13 }; | 15 }; |
14 | 16 |
15 // TableGrouper is used by TableView to group a set of rows and treat them | 17 // TableGrouper is used by TableView to group a set of rows and treat them |
16 // as one. Rows that fall in the same group are selected together and sorted | 18 // as one. Rows that fall in the same group are selected together and sorted |
17 // together. | 19 // together. |
18 class TableGrouper { | 20 class VIEWS_EXPORT TableGrouper { |
19 public: | 21 public: |
20 virtual void GetGroupRange(int model_index, GroupRange* range) = 0; | 22 virtual void GetGroupRange(int model_index, GroupRange* range) = 0; |
21 | 23 |
22 protected: | 24 protected: |
23 virtual ~TableGrouper() {} | 25 virtual ~TableGrouper() {} |
24 }; | 26 }; |
25 | 27 |
26 } | 28 } |
27 | 29 |
28 #endif // UI_VIEWS_CONTROLS_TABLE_GROUP_TABLE_VIEW_H_ | 30 #endif // UI_VIEWS_CONTROLS_TABLE_GROUP_TABLE_VIEW_H_ |
OLD | NEW |