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

Side by Side Diff: app/gfx/canvas.h

Issue 125109: Refactor the PlatformContext layer to have only one class. (Closed)
Patch Set: Created 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | app/gfx/canvas_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 APP_GFX_CANVAS_H_ 5 #ifndef APP_GFX_CANVAS_H_
6 #define APP_GFX_CANVAS_H_ 6 #define APP_GFX_CANVAS_H_
7 7
8 #if defined(OS_WIN) 8 #if defined(OS_WIN)
9 #include <windows.h> 9 #include <windows.h>
10 #endif 10 #endif
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // aligned to the left, vertically centered, clipped to the region. If the 201 // aligned to the left, vertically centered, clipped to the region. If the
202 // text is too big, it is truncated and '...' is added to the end. 202 // text is too big, it is truncated and '...' is added to the end.
203 void DrawStringInt(const std::wstring& text, HFONT font, 203 void DrawStringInt(const std::wstring& text, HFONT font,
204 const SkColor& color, int x, int y, int w, int h, 204 const SkColor& color, int x, int y, int w, int h,
205 int flags); 205 int flags);
206 #endif 206 #endif
207 207
208 DISALLOW_COPY_AND_ASSIGN(Canvas); 208 DISALLOW_COPY_AND_ASSIGN(Canvas);
209 }; 209 };
210 210
211 #if defined(OS_WIN) || defined(OS_LINUX)
212 typedef skia::CanvasPaintT<Canvas> CanvasPaint;
213 #endif
214
215 } // namespace gfx; 211 } // namespace gfx;
216 212
217 #endif // #ifndef APP_GFX_CANVAS_H_ 213 #endif // #ifndef APP_GFX_CANVAS_H_
OLDNEW
« no previous file with comments | « no previous file | app/gfx/canvas_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698