diff options
author | maruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-05 21:07:27 +0000 |
---|---|---|
committer | maruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-05 21:07:27 +0000 |
commit | d3216441b7726c31fb0ae9b9d90b64421e14ca39 (patch) | |
tree | 653882df34541ec7aa37e4024f8fce27fd9ba5b6 /chrome/browser/views/theme_helpers.cc | |
parent | ba61ace67a08e56026d2e8034d7a938d2f8e5bd6 (diff) | |
download | chromium_src-d3216441b7726c31fb0ae9b9d90b64421e14ca39.zip chromium_src-d3216441b7726c31fb0ae9b9d90b64421e14ca39.tar.gz chromium_src-d3216441b7726c31fb0ae9b9d90b64421e14ca39.tar.bz2 |
NO CODE CHANGE.
Split the lines >80 cols. (Part 1)
Review URL: http://codereview.chromium.org/39206
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11032 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/theme_helpers.cc')
-rw-r--r-- | chrome/browser/views/theme_helpers.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/views/theme_helpers.cc b/chrome/browser/views/theme_helpers.cc index ba18603..d67d6d3 100644 --- a/chrome/browser/views/theme_helpers.cc +++ b/chrome/browser/views/theme_helpers.cc @@ -13,8 +13,10 @@ #include "skia/ext/bitmap_platform_device_win.h" #include "SkGradientShader.h" -void GetRebarGradientColors(int width, int x1, int x2, SkColor* c1, SkColor* c2) { - DCHECK(c1 && c2) << "ThemeHelpers::GetRebarGradientColors - c1 or c2 is NULL!"; +void GetRebarGradientColors(int width, int x1, int x2, + SkColor* c1, SkColor* c2) { + DCHECK(c1 && c2) << + "ThemeHelpers::GetRebarGradientColors - c1 or c2 is NULL!"; // To get the colors we need, we draw a horizontal gradient using // DrawThemeBackground, then extract the pixel values from and return @@ -63,7 +65,8 @@ void GetRebarGradientColors(int width, int x1, int x2, SkColor* c1, SkColor* c2) // The | in the following operations forces the alpha to 0xFF. This is // needed as windows sets the alpha to 0 when it renders. skia::BitmapPlatformDeviceWin& device = - static_cast<skia::BitmapPlatformDeviceWin&>(canvas.getTopPlatformDevice()); + static_cast<skia::BitmapPlatformDeviceWin&>( + canvas.getTopPlatformDevice()); *c1 = 0xFF000000 | device.getColorAt(x1, 0); *c2 = 0xFF000000 | device.getColorAt(x2, 0); } |