Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: ui/views/controls/table/table_grouper.h

Issue 138783002: Cleans up gyp file for views example and removes duplicate code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix windows Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_
OLDNEW
« no previous file with comments | « ui/views/controls/tabbed_pane/tabbed_pane_listener.h ('k') | ui/views/controls/table/table_view_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698