OLD | NEW |
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 #ifndef UI_GFX_CANVAS_SKIA_H_ | 5 #ifndef UI_GFX_CANVAS_SKIA_H_ |
6 #define UI_GFX_CANVAS_SKIA_H_ | 6 #define UI_GFX_CANVAS_SKIA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 int x, int y, int w, int h); | 131 int x, int y, int w, int h); |
132 virtual void DrawStringInt(const string16& text, | 132 virtual void DrawStringInt(const string16& text, |
133 const gfx::Font& font, | 133 const gfx::Font& font, |
134 const SkColor& color, | 134 const SkColor& color, |
135 const gfx::Rect& display_rect); | 135 const gfx::Rect& display_rect); |
136 virtual void DrawStringInt(const string16& text, | 136 virtual void DrawStringInt(const string16& text, |
137 const gfx::Font& font, | 137 const gfx::Font& font, |
138 const SkColor& color, | 138 const SkColor& color, |
139 int x, int y, int w, int h, | 139 int x, int y, int w, int h, |
140 int flags); | 140 int flags); |
| 141 virtual void DrawStringInt(const RenderText& render_text); |
141 #if defined(OS_WIN) | 142 #if defined(OS_WIN) |
142 // Draws the given string with the beginning and/or the end using a fade | 143 // Draws the given string with the beginning and/or the end using a fade |
143 // gradient. When truncating the head | 144 // gradient. When truncating the head |
144 // |desired_characters_to_truncate_from_head| specifies the maximum number of | 145 // |desired_characters_to_truncate_from_head| specifies the maximum number of |
145 // characters that can be truncated. | 146 // characters that can be truncated. |
146 virtual void DrawFadeTruncatingString( | 147 virtual void DrawFadeTruncatingString( |
147 const string16& text, | 148 const string16& text, |
148 TruncateFadeMode truncate_mode, | 149 TruncateFadeMode truncate_mode, |
149 size_t desired_characters_to_truncate_from_head, | 150 size_t desired_characters_to_truncate_from_head, |
150 const gfx::Font& font, | 151 const gfx::Font& font, |
(...skipping 26 matching lines...) Expand all Loading... |
177 int x, int y, int w, int h, | 178 int x, int y, int w, int h, |
178 int flags); | 179 int flags); |
179 #endif | 180 #endif |
180 | 181 |
181 DISALLOW_COPY_AND_ASSIGN(CanvasSkia); | 182 DISALLOW_COPY_AND_ASSIGN(CanvasSkia); |
182 }; | 183 }; |
183 | 184 |
184 } // namespace gfx; | 185 } // namespace gfx; |
185 | 186 |
186 #endif // UI_GFX_CANVAS_SKIA_H_ | 187 #endif // UI_GFX_CANVAS_SKIA_H_ |
OLD | NEW |