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

Unified Diff: chrome/browser/ui/views/autocomplete/autocomplete_result_view.h

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: chrome/browser/ui/views/autocomplete/autocomplete_result_view.h
diff --git a/chrome/browser/ui/views/autocomplete/autocomplete_result_view.h b/chrome/browser/ui/views/autocomplete/autocomplete_result_view.h
index 7d79dfde481b39f53735fe7111b72d6bccf1dac7..d4a00cc0e93125d02b7b59faa8b74ff8b09ebe4d 100644
--- a/chrome/browser/ui/views/autocomplete/autocomplete_result_view.h
+++ b/chrome/browser/ui/views/autocomplete/autocomplete_result_view.h
@@ -18,7 +18,7 @@
class AutocompleteResultViewModel;
namespace gfx {
-class Canvas;
+class CanvasSkia;
}
class AutocompleteResultView : public views::View,
@@ -60,7 +60,7 @@ class AutocompleteResultView : public views::View,
virtual gfx::Size GetPreferredSize() OVERRIDE;
protected:
- virtual void PaintMatch(gfx::Canvas* canvas,
+ virtual void PaintMatch(gfx::CanvasSkia* canvas,
const AutocompleteMatch& match,
int x);
@@ -72,7 +72,7 @@ class AutocompleteResultView : public views::View,
// |classifications|. If |force_dim| is true, ACMatchClassification::DIM is
// added to all of the classifications. Returns the x position to the right
// of the string.
- int DrawString(gfx::Canvas* canvas,
+ int DrawString(gfx::CanvasSkia* canvas,
const string16& text,
const ACMatchClassifications& classifications,
bool force_dim,
@@ -115,7 +115,7 @@ class AutocompleteResultView : public views::View,
// views::View:
virtual void Layout() OVERRIDE;
virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE;
- virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
+ virtual void OnPaint(gfx::CanvasSkia* canvas) OVERRIDE;
// ui::AnimationDelegate:
virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698