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

Unified Diff: ui/views/controls/combobox/native_combobox_views.cc

Issue 9562038: ui/gfx: Make gfx::Canvas inherit from gfx::CanvasSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/controls/combobox/native_combobox_views.cc
diff --git a/ui/views/controls/combobox/native_combobox_views.cc b/ui/views/controls/combobox/native_combobox_views.cc
index 7557eaf22dc2bd98e8cff0ee88e664e51e6c9244..0a70dec72fd7ec9274778df246f05f9ec76d715c 100644
--- a/ui/views/controls/combobox/native_combobox_views.cc
+++ b/ui/views/controls/combobox/native_combobox_views.cc
@@ -140,7 +140,7 @@ bool NativeComboboxViews::OnKeyReleased(const views::KeyEvent& key_event) {
return true;
}
-void NativeComboboxViews::OnPaint(gfx::Canvas* canvas) {
+void NativeComboboxViews::OnPaint(gfx::CanvasSkia* canvas) {
text_border_->set_has_focus(combobox_->HasFocus());
OnPaintBackground(canvas);
PaintText(canvas);
@@ -277,7 +277,7 @@ void NativeComboboxViews::AdjustBoundsForRTLUI(gfx::Rect* rect) const {
rect->set_x(GetMirroredXForRect(*rect));
}
-void NativeComboboxViews::PaintText(gfx::Canvas* canvas) {
+void NativeComboboxViews::PaintText(gfx::CanvasSkia* canvas) {
gfx::Insets insets = GetInsets();
canvas->Save();

Powered by Google App Engine
This is Rietveld 408576698