OLD | NEW |
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // Returns the collator used by CompareValues. | 97 // Returns the collator used by CompareValues. |
98 Collator* GetCollator(); | 98 icu::Collator* GetCollator(); |
99 }; | 99 }; |
100 | 100 |
101 // TableColumn specifies the title, alignment and size of a particular column. | 101 // TableColumn specifies the title, alignment and size of a particular column. |
102 struct TableColumn { | 102 struct TableColumn { |
103 enum Alignment { | 103 enum Alignment { |
104 LEFT, RIGHT, CENTER | 104 LEFT, RIGHT, CENTER |
105 }; | 105 }; |
106 | 106 |
107 TableColumn(); | 107 TableColumn(); |
108 TableColumn(int id, const std::wstring& title, | 108 TableColumn(int id, const std::wstring& title, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 // The minimum width required for all items in this column | 144 // The minimum width required for all items in this column |
145 // (including the header) | 145 // (including the header) |
146 // to be visible. | 146 // to be visible. |
147 int min_visible_width; | 147 int min_visible_width; |
148 | 148 |
149 // Is this column sortable? Default is false | 149 // Is this column sortable? Default is false |
150 bool sortable; | 150 bool sortable; |
151 }; | 151 }; |
152 | 152 |
153 #endif // APP_TABLE_MODEL_H_ | 153 #endif // APP_TABLE_MODEL_H_ |
OLD | NEW |