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

Unified Diff: ui/gfx/canvas.h

Issue 7265011: RenderText API Outline. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add some placeholder functionality on Windows. Created 9 years, 6 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 | ui/gfx/canvas_direct2d.h » ('j') | ui/gfx/render_text.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas.h
diff --git a/ui/gfx/canvas.h b/ui/gfx/canvas.h
index c83b797db01e550de6c70f0fd4531f40f0caf8e1..f8358e91263cdb6744b35385a539e6c013e02605 100644
--- a/ui/gfx/canvas.h
+++ b/ui/gfx/canvas.h
@@ -26,6 +26,7 @@ class CanvasSkia;
class Font;
class Point;
class Rect;
+class RenderText;
// TODO(beng): documentation.
class Canvas {
@@ -196,6 +197,9 @@ class Canvas {
int x, int y, int w, int h,
int flags) = 0;
+ // Draws the specified |render_text| with style, cursor, selection, etc.
+ virtual void DrawStringInt(const RenderText& render_text) = 0;
+
// Draws a dotted gray rectangle used for focus purposes.
virtual void DrawFocusRect(int x, int y, int width, int height) = 0;
« no previous file with comments | « no previous file | ui/gfx/canvas_direct2d.h » ('j') | ui/gfx/render_text.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698