| Index: ui/gfx/canvas.h
|
| diff --git a/ui/gfx/canvas.h b/ui/gfx/canvas.h
|
| index f8193f1134cbd610d79319d9f388115a8cd94976..a3e9b1ce37bec83f0e290bb1aa67b3e0b5f4ac74 100644
|
| --- a/ui/gfx/canvas.h
|
| +++ b/ui/gfx/canvas.h
|
| @@ -45,7 +45,7 @@ class GFX_EXPORT Canvas {
|
| TruncateFadeHead,
|
| };
|
|
|
| - // Specifies the alignment for text rendered with the DrawStringInt method.
|
| + // Specifies the alignment for text rendered with the DrawStringRect method.
|
| enum {
|
| TEXT_ALIGN_LEFT = 1 << 0,
|
| TEXT_ALIGN_CENTER = 1 << 1,
|
| @@ -54,7 +54,7 @@ class GFX_EXPORT Canvas {
|
| // Specifies the text consists of multiple lines.
|
| MULTI_LINE = 1 << 3,
|
|
|
| - // By default DrawStringInt does not process the prefix ('&') character
|
| + // By default DrawStringRect does not process the prefix ('&') character
|
| // specially. That is, the string "&foo" is rendered as "&foo". When
|
| // rendering text from a resource that uses the prefix character for
|
| // mnemonics, the prefix should be processed and can be rendered as an
|
| @@ -69,7 +69,7 @@ class GFX_EXPORT Canvas {
|
| // This only works with MULTI_LINE.
|
| CHARACTER_BREAK = 1 << 7,
|
|
|
| - // Instructs DrawStringInt() to render the text using RTL directionality.
|
| + // Instructs DrawStringRect() to render the text using RTL directionality.
|
| // In most cases, passing this flag is not necessary because information
|
| // about the text directionality is going to be embedded within the string
|
| // in the form of special Unicode characters. However, we don't insert
|
| @@ -83,7 +83,7 @@ class GFX_EXPORT Canvas {
|
| // See FORCE_RTL_DIRECTIONALITY for details.
|
| FORCE_LTR_DIRECTIONALITY = 1 << 9,
|
|
|
| - // Instructs DrawStringInt() to not use subpixel rendering. This is useful
|
| + // Instructs DrawStringRect() to not use subpixel rendering. This is useful
|
| // when rendering text onto a fully- or partially-transparent background
|
| // that will later be blended with another image.
|
| NO_SUBPIXEL_RENDERING = 1 << 10,
|
| @@ -130,13 +130,6 @@ class GFX_EXPORT Canvas {
|
| int* height,
|
| int line_height,
|
| int flags);
|
| - // Obsolete version. Use the above version which takes FontList.
|
| - static void SizeStringInt(const base::string16& text,
|
| - const Font& font,
|
| - int* width,
|
| - int* height,
|
| - int line_height,
|
| - int flags);
|
|
|
| // This is same as SizeStringInt except that fractional size is returned.
|
| // See comment in GetStringWidthF for its usage.
|
| @@ -164,7 +157,7 @@ class GFX_EXPORT Canvas {
|
|
|
| // Returns the default text alignment to be used when drawing text on a
|
| // Canvas based on the directionality of the system locale language.
|
| - // This function is used by Canvas::DrawStringInt when the text alignment
|
| + // This function is used by Canvas::DrawStringRect when the text alignment
|
| // is not specified.
|
| //
|
| // This function returns either Canvas::TEXT_ALIGN_LEFT or
|
| @@ -186,16 +179,6 @@ class GFX_EXPORT Canvas {
|
| SkColor halo_color,
|
| const Rect& display_rect,
|
| int flags);
|
| - // Obsolete version. Use the above version which takes FontList.
|
| - void DrawStringWithHalo(const base::string16& text,
|
| - const Font& font,
|
| - SkColor text_color,
|
| - SkColor halo_color,
|
| - int x,
|
| - int y,
|
| - int w,
|
| - int h,
|
| - int flags);
|
|
|
| // Extracts an ImageSkiaRep from the contents of this canvas.
|
| ImageSkiaRep ExtractImageRep() const;
|
| @@ -356,18 +339,6 @@ class GFX_EXPORT Canvas {
|
| const FontList& font_list,
|
| SkColor color,
|
| const Rect& display_rect);
|
| - // Obsolete versions. Use the above versions which take FontList.
|
| - void DrawStringInt(const base::string16& text,
|
| - const Font& font,
|
| - SkColor color,
|
| - int x,
|
| - int y,
|
| - int w,
|
| - int h);
|
| - void DrawStringInt(const base::string16& text,
|
| - const Font& font,
|
| - SkColor color,
|
| - const Rect& display_rect);
|
|
|
| // Draws text with the specified color, fonts and location. The last argument
|
| // specifies flags for how the text should be rendered. It can be one of
|
| @@ -377,17 +348,8 @@ class GFX_EXPORT Canvas {
|
| SkColor color,
|
| const Rect& display_rect,
|
| int flags);
|
| - // Obsolete version. Use the above version which takes FontList.
|
| - void DrawStringInt(const base::string16& text,
|
| - const Font& font,
|
| - SkColor color,
|
| - int x,
|
| - int y,
|
| - int w,
|
| - int h,
|
| - int flags);
|
| -
|
| - // Similar to above DrawStringInt method but with text shadows support.
|
| +
|
| + // Similar to above DrawStringRect method but with text shadows support.
|
| // Currently it's only implemented for canvas skia. Specifying a 0 line_height
|
| // will cause the default height to be used.
|
| void DrawStringRectWithShadows(const base::string16& text,
|
| @@ -397,14 +359,6 @@ class GFX_EXPORT Canvas {
|
| int line_height,
|
| int flags,
|
| const ShadowValues& shadows);
|
| - // Obsolete version. Use the above version which takes FontList.
|
| - void DrawStringWithShadows(const base::string16& text,
|
| - const Font& font,
|
| - SkColor color,
|
| - const Rect& text_bounds,
|
| - int line_height,
|
| - int flags,
|
| - const ShadowValues& shadows);
|
|
|
| // Draws a dotted gray rectangle used for focus purposes.
|
| void DrawFocusRect(const Rect& rect);
|
|
|