diff options
author | awalker@google.com <awalker@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-14 17:47:00 +0000 |
---|---|---|
committer | awalker@google.com <awalker@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-14 17:47:00 +0000 |
commit | b49cbcf2cb1808755be7d629df962850756fe691 (patch) | |
tree | 66a1cbbeda98ff0a2be564fb164bbd274245aea8 /chrome/browser | |
parent | 6328338ef2dcd7fe075cb4065c644847d5330a71 (diff) | |
download | chromium_src-b49cbcf2cb1808755be7d629df962850756fe691.zip chromium_src-b49cbcf2cb1808755be7d629df962850756fe691.tar.gz chromium_src-b49cbcf2cb1808755be7d629df962850756fe691.tar.bz2 |
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@873 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/printing/printed_document.cc | 4 | ||||
-rw-r--r-- | chrome/browser/printing/printing_layout_uitest.cc | 4 | ||||
-rw-r--r-- | chrome/browser/printing/win_printing_context.cc | 4 | ||||
-rw-r--r-- | chrome/browser/views/theme_helpers.cc | 6 |
4 files changed, 9 insertions, 9 deletions
diff --git a/chrome/browser/printing/printed_document.cc b/chrome/browser/printing/printed_document.cc index fb4d13a..092a69d 100644 --- a/chrome/browser/printing/printed_document.cc +++ b/chrome/browser/printing/printed_document.cc @@ -31,7 +31,7 @@ #include <set> -#include "base/gfx/platform_device.h" +#include "base/gfx/platform_device_win.h" #include "base/message_loop.h" #include "base/time.h" #include "chrome/browser/printing/page_number.h" @@ -126,7 +126,7 @@ void PrintedDocument::RenderPrintedPage(const PrintedPage& page, // the device context. int saved_state = SaveDC(context); DCHECK_NE(saved_state, 0); - gfx::PlatformDevice::InitializeDC(context); + gfx::PlatformDeviceWin::InitializeDC(context); { // Save the state (again) to apply the necessary world transformation. int saved_state = SaveDC(context); diff --git a/chrome/browser/printing/printing_layout_uitest.cc b/chrome/browser/printing/printing_layout_uitest.cc index d2b9ff8..87c2c13 100644 --- a/chrome/browser/printing/printing_layout_uitest.cc +++ b/chrome/browser/printing/printing_layout_uitest.cc @@ -29,7 +29,7 @@ #include "base/command_line.h" #include "base/gfx/bitmap_header.h" -#include "base/gfx/platform_device.h" +#include "base/gfx/platform_device_win.h" #include "base/gfx/png_decoder.h" #include "base/gfx/png_encoder.h" #include "base/time.h" @@ -195,7 +195,7 @@ class Image { &bits, NULL, 0); EXPECT_TRUE(bitmap); EXPECT_TRUE(SelectObject(hdc, bitmap)); - gfx::PlatformDevice::InitializeDC(hdc); + gfx::PlatformDeviceWin::InitializeDC(hdc); EXPECT_TRUE(emf.Playback(hdc, NULL)); row_length_ = size_.width() * sizeof(uint32); size_t bytes = row_length_ * size_.height(); diff --git a/chrome/browser/printing/win_printing_context.cc b/chrome/browser/printing/win_printing_context.cc index 81315f3..1e3da12 100644 --- a/chrome/browser/printing/win_printing_context.cc +++ b/chrome/browser/printing/win_printing_context.cc @@ -32,7 +32,7 @@ #include <winspool.h> #include "base/file_util.h" -#include "base/gfx/platform_device.h" +#include "base/gfx/platform_device_win.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/printing/print_job_manager.h" #include "chrome/common/gfx/emf.h" @@ -403,7 +403,7 @@ bool PrintingContext::InitializeSettings(const DEVMODE& dev_mode, const std::wstring& new_device_name, const PRINTPAGERANGE* ranges, int number_ranges) { - gfx::PlatformDevice::InitializeDC(hdc_); + gfx::PlatformDeviceWin::InitializeDC(hdc_); DCHECK(GetDeviceCaps(hdc_, CLIPCAPS)); DCHECK(GetDeviceCaps(hdc_, RASTERCAPS) & RC_STRETCHDIB); DCHECK(GetDeviceCaps(hdc_, RASTERCAPS) & RC_BITMAP64); diff --git a/chrome/browser/views/theme_helpers.cc b/chrome/browser/views/theme_helpers.cc index fa2820d..89fb02d 100644 --- a/chrome/browser/views/theme_helpers.cc +++ b/chrome/browser/views/theme_helpers.cc @@ -33,7 +33,7 @@ #include <atlapp.h> #include <atltheme.h> -#include "base/gfx/bitmap_platform_device.h" +#include "base/gfx/bitmap_platform_device_win.h" #include "chrome/common/gfx/chrome_canvas.h" #include "base/logging.h" #include "SkGradientShader.h" @@ -87,8 +87,8 @@ void GetRebarGradientColors(int width, int x1, int x2, SkColor* c1, SkColor* c2) // Extract the color values from the selected pixels // The | in the following operations forces the alpha to 0xFF. This is // needed as windows sets the alpha to 0 when it renders. - gfx::BitmapPlatformDevice& device = - static_cast<gfx::BitmapPlatformDevice&>(canvas.getTopPlatformDevice()); + gfx::BitmapPlatformDeviceWin& device = + static_cast<gfx::BitmapPlatformDeviceWin&>(canvas.getTopPlatformDevice()); *c1 = 0xFF000000 | device.getColorAt(x1, 0); *c2 = 0xFF000000 | device.getColorAt(x2, 0); } |