OLD | NEW |
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 // Declare a platform-neutral name for this platform's canvas class | 5 // Declare a platform-neutral name for this platform's canvas class |
6 // that can be used by upper-level classes that just need to pass a reference | 6 // that can be used by upper-level classes that just need to pass a reference |
7 // around. | 7 // around. |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
| 11 #if defined(OS_WIN) |
| 12 #include "base/gfx/platform_canvas_win.h" |
11 namespace gfx { | 13 namespace gfx { |
12 | 14 |
13 #if defined(OS_WIN) | |
14 class PlatformCanvasWin; | |
15 typedef PlatformCanvasWin PlatformCanvas; | 15 typedef PlatformCanvasWin PlatformCanvas; |
16 #elif defined(OS_MACOSX) | |
17 class PlatformCanvasMac; | |
18 typedef PlatformCanvasMac PlatformCanvas; | |
19 #elif defined(OS_LINUX) | |
20 class PlatformCanvasLinux; | |
21 typedef PlatformCanvasLinux PlatformCanvas; | |
22 #endif | |
23 | 16 |
24 } // namespace gfx | 17 } // namespace gfx |
| 18 #elif defined(OS_MACOSX) |
| 19 #include "base/gfx/platform_canvas_mac.h" |
| 20 namespace gfx { |
| 21 |
| 22 typedef PlatformCanvasMac PlatformCanvas; |
| 23 |
| 24 } // namespace gfx |
| 25 #elif defined(OS_LINUX) |
| 26 #include "base/gfx/platform_canvas_linux.h" |
| 27 namespace gfx { |
| 28 |
| 29 typedef PlatformCanvasLinux PlatformCanvas; |
| 30 |
| 31 } // namespace gfx |
| 32 #endif |
OLD | NEW |