| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 VIEWS_CONTROLS_TABLE_GROUP_TABLE_VIEW_H_ | 5 #ifndef VIEWS_CONTROLS_TABLE_GROUP_TABLE_VIEW_H_ |
| 6 #define VIEWS_CONTROLS_TABLE_GROUP_TABLE_VIEW_H_ | 6 #define VIEWS_CONTROLS_TABLE_GROUP_TABLE_VIEW_H_ |
| 7 | 7 |
| 8 #include "app/table_model.h" |
| 8 #include "base/task.h" | 9 #include "base/task.h" |
| 9 #include "views/controls/table/table_model.h" | |
| 10 #include "views/controls/table/table_view.h" | 10 #include "views/controls/table/table_view.h" |
| 11 | 11 |
| 12 // The GroupTableView adds grouping to the TableView class. | 12 // The GroupTableView adds grouping to the TableView class. |
| 13 // It allows to have groups of rows that act as a single row from the selection | 13 // It allows to have groups of rows that act as a single row from the selection |
| 14 // perspective. Groups are visually separated by a horizontal line. | 14 // perspective. Groups are visually separated by a horizontal line. |
| 15 | 15 |
| 16 namespace views { | 16 namespace views { |
| 17 | 17 |
| 18 struct GroupRange { | 18 struct GroupRange { |
| 19 int start; | 19 int start; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 // Maps from model row to start of group. | 75 // Maps from model row to start of group. |
| 76 std::map<int,int> model_index_to_range_start_map_; | 76 std::map<int,int> model_index_to_range_start_map_; |
| 77 | 77 |
| 78 DISALLOW_COPY_AND_ASSIGN(GroupTableView); | 78 DISALLOW_COPY_AND_ASSIGN(GroupTableView); |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 } // namespace views | 81 } // namespace views |
| 82 | 82 |
| 83 #endif // VIEWS_CONTROLS_TABLE_GROUP_TABLE_VIEW_H_ | 83 #endif // VIEWS_CONTROLS_TABLE_GROUP_TABLE_VIEW_H_ |
| OLD | NEW |