From bd63dc9cdf640a6d1e833ce0b5ed7ed9090973b0 Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Sun, 14 Jun 2009 15:14:53 +0000 Subject: Refactor the PlatformContext layer to have only one class. Previously we had three classes of PlatformCanvas*, one for each platform. Then we had a typedef of PlatformContext to PlatformCanvas[Mac|Win|Linux] for the specific platform. This means that it was almost impossible to forward-declare PlatformCanvas and there were a bunch of unnecessary includes of platform_canvas.h in header files. This change makes there be only one platform_canvas.h header with ifdefs, which removes a decent amount of duplicated code. There is a platform-independent file, and one platform-dependent file of platform_canvas for each platform. I also renamed PlatformDevice[Mac|Win|Linux] to PlatformDevice, althouth in this case I kept the separate headers since there was much less overlap. I also broke out CanvasPaint into separate headers so this template doesn't need to be included all over the project (only a couple of files actually need it). Review URL: http://codereview.chromium.org/125109 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18363 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/tools/test_shell/mac/webwidget_host.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webkit/tools/test_shell/mac/webwidget_host.mm') diff --git a/webkit/tools/test_shell/mac/webwidget_host.mm b/webkit/tools/test_shell/mac/webwidget_host.mm index 4daf57f..eb23bc1 100644 --- a/webkit/tools/test_shell/mac/webwidget_host.mm +++ b/webkit/tools/test_shell/mac/webwidget_host.mm @@ -6,7 +6,7 @@ #include "webkit/tools/test_shell/webwidget_host.h" -#include "base/gfx/platform_canvas_mac.h" +#include "base/gfx/platform_canvas.h" #include "base/gfx/rect.h" #include "base/gfx/size.h" #include "base/logging.h" -- cgit v1.1