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

Unified Diff: views/window/custom_frame_view.cc

Issue 115728: Bring theme_frame back into chrome/ and change theme_frame to frame in app/... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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/app/theme/theme_resources.grd ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/window/custom_frame_view.cc
===================================================================
--- views/window/custom_frame_view.cc (revision 16769)
+++ views/window/custom_frame_view.cc (working copy)
@@ -299,14 +299,14 @@
// Window frame mode.
ResourceBundle& rb = ResourceBundle::GetSharedInstance();
- SkBitmap* theme_frame;
+ SkBitmap* frame_image;
SkColor frame_color;
if (frame_->IsActive()) {
- theme_frame = rb.GetBitmapNamed(IDR_THEME_FRAME);
+ frame_image = rb.GetBitmapNamed(IDR_FRAME);
frame_color = ResourceBundle::frame_color;
} else {
- theme_frame = rb.GetBitmapNamed(IDR_THEME_FRAME_INACTIVE);
+ frame_image = rb.GetBitmapNamed(IDR_FRAME_INACTIVE);
frame_color = ResourceBundle::frame_color_inactive;
}
@@ -324,14 +324,14 @@
// Fill with the frame color first so we have a constant background for
// areas not covered by the theme image.
- canvas->FillRectInt(frame_color, 0, 0, width(), theme_frame->height());
+ canvas->FillRectInt(frame_color, 0, 0, width(), frame_image->height());
// Now fill down the sides
canvas->FillRectInt(frame_color,
- 0, theme_frame->height(),
- left_edge->width(), height() - theme_frame->height());
+ 0, frame_image->height(),
+ left_edge->width(), height() - frame_image->height());
canvas->FillRectInt(frame_color,
- width() - right_edge->width(), theme_frame->height(),
- right_edge->width(), height() - theme_frame->height());
+ width() - right_edge->width(), frame_image->height(),
+ right_edge->width(), height() - frame_image->height());
// Now fill the bottom area.
canvas->FillRectInt(frame_color,
left_edge->width(), height() - bottom_edge->height(),
@@ -339,7 +339,7 @@
bottom_edge->height());
// Draw the theme frame.
- canvas->TileImageInt(*theme_frame, 0, 0, width(), theme_frame->height());
+ canvas->TileImageInt(*frame_image, 0, 0, width(), frame_image->height());
// Top.
canvas->DrawBitmapInt(*top_left_corner, 0, 0);
@@ -376,12 +376,12 @@
gfx::Canvas* canvas) {
ResourceBundle& rb = ResourceBundle::GetSharedInstance();
- SkBitmap* theme_frame = frame_->IsActive() ?
- rb.GetBitmapNamed(IDR_THEME_FRAME) :
- rb.GetBitmapNamed(IDR_THEME_FRAME_INACTIVE);
+ SkBitmap* frame_image = frame_->IsActive() ?
+ rb.GetBitmapNamed(IDR_FRAME) :
+ rb.GetBitmapNamed(IDR_FRAME_INACTIVE);
- canvas->TileImageInt(*theme_frame, 0, FrameBorderThickness(), width(),
- theme_frame->height());
+ canvas->TileImageInt(*frame_image, 0, FrameBorderThickness(), width(),
+ frame_image->height());
// The bottom of the titlebar actually comes from the top of the Client Edge
// graphic, with the actual client edge clipped off the bottom.
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698