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

Side by Side Diff: app/table_model.h

Issue 179028: Revert "Fix a ton of compiler warnings." (Closed)
Patch Set: Created 11 years, 3 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
« no previous file with comments | « app/animation.h ('k') | app/table_model_observer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 APP_TABLE_MODEL_H_ 5 #ifndef APP_TABLE_MODEL_H_
6 #define APP_TABLE_MODEL_H_ 6 #define APP_TABLE_MODEL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // <, == or > the second value. 87 // <, == or > the second value.
88 // 88 //
89 // This implementation does a case insensitive locale specific string 89 // This implementation does a case insensitive locale specific string
90 // comparison. 90 // comparison.
91 virtual int CompareValues(int row1, int row2, int column_id); 91 virtual int CompareValues(int row1, int row2, int column_id);
92 92
93 // Reset the collator. 93 // Reset the collator.
94 void ClearCollator(); 94 void ClearCollator();
95 95
96 protected: 96 protected:
97 ~TableModel() {}
98
99 // Returns the collator used by CompareValues. 97 // Returns the collator used by CompareValues.
100 icu::Collator* GetCollator(); 98 icu::Collator* GetCollator();
101 }; 99 };
102 100
103 // TableColumn specifies the title, alignment and size of a particular column. 101 // TableColumn specifies the title, alignment and size of a particular column.
104 struct TableColumn { 102 struct TableColumn {
105 enum Alignment { 103 enum Alignment {
106 LEFT, RIGHT, CENTER 104 LEFT, RIGHT, CENTER
107 }; 105 };
108 106
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // The minimum width required for all items in this column 144 // The minimum width required for all items in this column
147 // (including the header) 145 // (including the header)
148 // to be visible. 146 // to be visible.
149 int min_visible_width; 147 int min_visible_width;
150 148
151 // Is this column sortable? Default is false 149 // Is this column sortable? Default is false
152 bool sortable; 150 bool sortable;
153 }; 151 };
154 152
155 #endif // APP_TABLE_MODEL_H_ 153 #endif // APP_TABLE_MODEL_H_
OLDNEW
« no previous file with comments | « app/animation.h ('k') | app/table_model_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698