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

Side by Side Diff: chrome/common/gfx/chrome_canvas.h

Issue 67024: Adds some ifdefs so that test_shell can be compiled on linux... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/chrome_paths_linux.cc ('k') | chrome/common/gfx/path.h » ('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 CHROME_COMMON_GFX_CHROME_CANVAS_H_ 5 #ifndef CHROME_COMMON_GFX_CHROME_CANVAS_H_
6 #define CHROME_COMMON_GFX_CHROME_CANVAS_H_ 6 #define CHROME_COMMON_GFX_CHROME_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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // aligned to the left, vertically centered, clipped to the region. If the 181 // aligned to the left, vertically centered, clipped to the region. If the
182 // text is too big, it is truncated and '...' is added to the end. 182 // text is too big, it is truncated and '...' is added to the end.
183 void DrawStringInt(const std::wstring& text, HFONT font, 183 void DrawStringInt(const std::wstring& text, HFONT font,
184 const SkColor& color, int x, int y, int w, int h, 184 const SkColor& color, int x, int y, int w, int h,
185 int flags); 185 int flags);
186 #endif 186 #endif
187 187
188 DISALLOW_EVIL_CONSTRUCTORS(ChromeCanvas); 188 DISALLOW_EVIL_CONSTRUCTORS(ChromeCanvas);
189 }; 189 };
190 190
191 #if defined(OS_WIN) || defined(OS_LINUX) 191 #if defined(OS_WIN) || defined(TOOLKIT_GTK)
192 typedef skia::CanvasPaintT<ChromeCanvas> ChromeCanvasPaint; 192 typedef skia::CanvasPaintT<ChromeCanvas> ChromeCanvasPaint;
193 #endif 193 #endif
194 194
195 #endif // CHROME_COMMON_GFX_CHROME_CANVAS_H_ 195 #endif // CHROME_COMMON_GFX_CHROME_CANVAS_H_
OLDNEW
« no previous file with comments | « chrome/common/chrome_paths_linux.cc ('k') | chrome/common/gfx/path.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698