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 #include "app/table_model.h" | 5 #include "app/table_model.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/l10n_util_collator.h" | 8 #include "app/l10n_util_collator.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "third_party/skia/include/core/SkBitmap.h" | 10 #include "third_party/skia/include/core/SkBitmap.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 static icu::Collator* collator = NULL; | 73 static icu::Collator* collator = NULL; |
74 | 74 |
75 SkBitmap TableModel::GetIcon(int row) { | 75 SkBitmap TableModel::GetIcon(int row) { |
76 return SkBitmap(); | 76 return SkBitmap(); |
77 } | 77 } |
78 | 78 |
79 std::wstring TableModel::GetTooltip(int row) { | 79 std::wstring TableModel::GetTooltip(int row) { |
80 return std::wstring(); | 80 return std::wstring(); |
81 } | 81 } |
82 | 82 |
| 83 bool TableModel::ShouldIndent(int row) { |
| 84 return false; |
| 85 } |
| 86 |
83 bool TableModel::HasGroups() { | 87 bool TableModel::HasGroups() { |
84 return false; | 88 return false; |
85 } | 89 } |
86 | 90 |
87 TableModel::Groups TableModel::GetGroups() { | 91 TableModel::Groups TableModel::GetGroups() { |
88 // If you override HasGroups to return true, you must override this as | 92 // If you override HasGroups to return true, you must override this as |
89 // well. | 93 // well. |
90 NOTREACHED(); | 94 NOTREACHED(); |
91 return std::vector<Group>(); | 95 return std::vector<Group>(); |
92 } | 96 } |
(...skipping 28 matching lines...) Expand all Loading... |
121 NOTREACHED(); | 125 NOTREACHED(); |
122 } | 126 } |
123 } | 127 } |
124 return collator; | 128 return collator; |
125 } | 129 } |
126 | 130 |
127 void TableModel::ClearCollator() { | 131 void TableModel::ClearCollator() { |
128 delete collator; | 132 delete collator; |
129 collator = NULL; | 133 collator = NULL; |
130 } | 134 } |
OLD | NEW |