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

Side by Side Diff: ui/base/models/table_model.cc

Issue 10437006: Converts ui/views/controls, ui/views/examples, ui/base/models to ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 7 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) 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 #include "ui/base/models/table_model.h" 5 #include "ui/base/models/table_model.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "third_party/skia/include/core/SkBitmap.h" 8 #include "ui/gfx/image/image_skia.h"
msw 2012/05/29 07:50:51 Drive-by nit (prompted by http://codereview.chromi
9 #include "ui/base/l10n/l10n_util.h" 9 #include "ui/base/l10n/l10n_util.h"
10 #include "ui/base/l10n/l10n_util_collator.h" 10 #include "ui/base/l10n/l10n_util_collator.h"
11 11
12 namespace ui { 12 namespace ui {
13 13
14 // TableColumn ----------------------------------------------------------------- 14 // TableColumn -----------------------------------------------------------------
15 15
16 TableColumn::TableColumn() 16 TableColumn::TableColumn()
17 : id(0), 17 : id(0),
18 title(), 18 title(),
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 min_visible_width(0), 67 min_visible_width(0),
68 sortable(false) { 68 sortable(false) {
69 title = l10n_util::GetStringUTF16(id); 69 title = l10n_util::GetStringUTF16(id);
70 } 70 }
71 71
72 // TableModel ----------------------------------------------------------------- 72 // TableModel -----------------------------------------------------------------
73 73
74 // Used for sorting. 74 // Used for sorting.
75 static icu::Collator* collator = NULL; 75 static icu::Collator* collator = NULL;
76 76
77 SkBitmap TableModel::GetIcon(int row) { 77 gfx::ImageSkia TableModel::GetIcon(int row) {
78 return SkBitmap(); 78 return gfx::ImageSkia();
79 } 79 }
80 80
81 string16 TableModel::GetTooltip(int row) { 81 string16 TableModel::GetTooltip(int row) {
82 return string16(); 82 return string16();
83 } 83 }
84 84
85 bool TableModel::ShouldIndent(int row) { 85 bool TableModel::ShouldIndent(int row) {
86 return false; 86 return false;
87 } 87 }
88 88
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 collator = icu::Collator::createInstance(create_status); 129 collator = icu::Collator::createInstance(create_status);
130 if (!U_SUCCESS(create_status)) { 130 if (!U_SUCCESS(create_status)) {
131 collator = NULL; 131 collator = NULL;
132 NOTREACHED(); 132 NOTREACHED();
133 } 133 }
134 } 134 }
135 return collator; 135 return collator;
136 } 136 }
137 137
138 } // namespace ui 138 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698