Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1443)

Unified Diff: chrome/browser/views/theme_helpers.cc

Issue 39206: NO CODE CHANGE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/views/theme_helpers.h ('k') | chrome/browser/webdata/web_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/theme_helpers.cc
===================================================================
--- chrome/browser/views/theme_helpers.cc (revision 10992)
+++ chrome/browser/views/theme_helpers.cc (working copy)
@@ -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 @@
// 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);
}
« no previous file with comments | « chrome/browser/views/theme_helpers.h ('k') | chrome/browser/webdata/web_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698