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

Unified Diff: app/gfx/chrome_canvas.h

Issue 113441: ChromeFont->gfx::Font... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | app/gfx/chrome_canvas.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/gfx/chrome_canvas.h
===================================================================
--- app/gfx/chrome_canvas.h (revision 16106)
+++ app/gfx/chrome_canvas.h (working copy)
@@ -14,8 +14,8 @@
#include "base/basictypes.h"
#include "skia/ext/platform_canvas.h"
-class ChromeFont;
namespace gfx {
+class Font;
class Rect;
}
@@ -152,13 +152,13 @@
// Draws text with the specified color, font and location. The text is
// aligned to the left, vertically centered, clipped to the region. If the
// text is too big, it is truncated and '...' is added to the end.
- void DrawStringInt(const std::wstring& text, const ChromeFont& font,
+ void DrawStringInt(const std::wstring& text, const gfx::Font& font,
const SkColor& color, int x, int y, int w, int h);
// Draws text with the specified color, font and location. The last argument
// specifies flags for how the text should be rendered. It can be one of
// TEXT_ALIGN_CENTER, TEXT_ALIGN_RIGHT or TEXT_ALIGN_LEFT.
- void DrawStringInt(const std::wstring& text, const ChromeFont& font,
+ void DrawStringInt(const std::wstring& text, const gfx::Font& font,
const SkColor& color, int x, int y, int w, int h,
int flags);
@@ -167,7 +167,7 @@
// ClearType to be drawn to an otherwise transparenct bitmap for drag images.
// Drag images have only 1-bit of transparency, so we don't do any fancy
// blurring.
- void DrawStringWithHalo(const std::wstring& text, const ChromeFont& font,
+ void DrawStringWithHalo(const std::wstring& text, const gfx::Font& font,
const SkColor& text_color, const SkColor& halo_color,
int x, int y, int w, int h, int flags);
#endif
@@ -194,7 +194,7 @@
// Attempts to fit the text with the provided width and height. Increases
// height and then width as needed to make the text fit. This method
// supports multiple lines.
- static void SizeStringInt(const std::wstring& test, const ChromeFont& font,
+ static void SizeStringInt(const std::wstring& test, const gfx::Font& font,
int *width, int* height, int flags);
private:
« no previous file with comments | « no previous file | app/gfx/chrome_canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698