diff options
author | awalker@google.com <awalker@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-09 20:38:55 +0000 |
---|---|---|
committer | awalker@google.com <awalker@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-09 20:38:55 +0000 |
commit | ab52947d4390b1b59aae47f5f6c16b7d537030fd (patch) | |
tree | 3aa8a55fa87f8442a5bd8c3cafa4883ac1797c28 /base/gfx/platform_canvas.h | |
parent | f9ad22f0e3faea2c7a1fb9853bbf3fb768637be0 (diff) | |
download | chromium_src-ab52947d4390b1b59aae47f5f6c16b7d537030fd.zip chromium_src-ab52947d4390b1b59aae47f5f6c16b7d537030fd.tar.gz chromium_src-ab52947d4390b1b59aae47f5f6c16b7d537030fd.tar.bz2 |
Refactor the platform canvas unit test a bit so that it can be run on
multiple platforms. Also adjusts platfom_canvas.h and platform_device.h
so that some upper layers can include them instead of the windows
versions.
Change was originally http://codereview.chromium.org/1616, which was created in the wrong source tree. Applying approval from that issue.
Review URL: http://codereview.chromium.org/1853
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1926 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx/platform_canvas.h')
-rw-r--r-- | base/gfx/platform_canvas.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/base/gfx/platform_canvas.h b/base/gfx/platform_canvas.h index d7433cd..d7442cc 100644 --- a/base/gfx/platform_canvas.h +++ b/base/gfx/platform_canvas.h @@ -8,17 +8,25 @@ #include "build/build_config.h" +#if defined(OS_WIN) +#include "base/gfx/platform_canvas_win.h" namespace gfx { -#if defined(OS_WIN) -class PlatformCanvasWin; typedef PlatformCanvasWin PlatformCanvas; + +} // namespace gfx #elif defined(OS_MACOSX) -class PlatformCanvasMac; +#include "base/gfx/platform_canvas_mac.h" +namespace gfx { + typedef PlatformCanvasMac PlatformCanvas; + +} // namespace gfx #elif defined(OS_LINUX) -class PlatformCanvasLinux; +#include "base/gfx/platform_canvas_linux.h" +namespace gfx { + typedef PlatformCanvasLinux PlatformCanvas; -#endif } // namespace gfx +#endif |