OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 UI_VIEWS_CONTROLS_TABLE_GROUP_TABLE_VIEW_H_ |
6 #define VIEWS_CONTROLS_TABLE_GROUP_TABLE_VIEW_H_ | 6 #define UI_VIEWS_CONTROLS_TABLE_GROUP_TABLE_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "ui/base/models/table_model.h" | 10 #include "ui/base/models/table_model.h" |
11 #include "views/controls/table/table_view.h" | 11 #include "ui/views/controls/table/table_view.h" |
12 | 12 |
13 namespace views { | 13 namespace views { |
14 | 14 |
15 struct GroupRange { | 15 struct GroupRange { |
16 int start; | 16 int start; |
17 int length; | 17 int length; |
18 }; | 18 }; |
19 | 19 |
20 // The model driving the GroupTableView. | 20 // The model driving the GroupTableView. |
21 class GroupTableModel : public ui::TableModel { | 21 class GroupTableModel : public ui::TableModel { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 base::WeakPtrFactory<GroupTableView> sync_selection_factory_; | 77 base::WeakPtrFactory<GroupTableView> sync_selection_factory_; |
78 | 78 |
79 // Maps from model row to start of group. | 79 // Maps from model row to start of group. |
80 std::map<int,int> model_index_to_range_start_map_; | 80 std::map<int,int> model_index_to_range_start_map_; |
81 | 81 |
82 DISALLOW_COPY_AND_ASSIGN(GroupTableView); | 82 DISALLOW_COPY_AND_ASSIGN(GroupTableView); |
83 }; | 83 }; |
84 | 84 |
85 } // namespace views | 85 } // namespace views |
86 | 86 |
87 #endif // VIEWS_CONTROLS_TABLE_GROUP_TABLE_VIEW_H_ | 87 #endif // UI_VIEWS_CONTROLS_TABLE_GROUP_TABLE_VIEW_H_ |
OLD | NEW |