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

Unified Diff: chrome/views/text_button.cc

Issue 42013: Slight code change to make some global variables const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 9 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/views/painter.h ('k') | chrome/views/tooltip_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/text_button.cc
===================================================================
--- chrome/views/text_button.cc (revision 11293)
+++ chrome/views/text_button.cc (working copy)
@@ -86,40 +86,55 @@
canvas->DrawBitmapInt(*set->top_left, 0, 0);
// Tile the top image
- canvas->TileImageInt(*set->top,
- set->top_left->width(), 0,
- bounds.width() - set->top_right->width() - set->top_left->width(),
- set->top->height());
+ canvas->TileImageInt(
+ *set->top,
+ set->top_left->width(),
+ 0,
+ bounds.width() - set->top_right->width() - set->top_left->width(),
+ set->top->height());
// Draw the top right image
canvas->DrawBitmapInt(*set->top_right,
bounds.width() - set->top_right->width(), 0);
// Tile the left image
- canvas->TileImageInt(*set->left,
- 0, set->top_left->height(),
- set->top_left->width(),
- bounds.height() - set->top->height() - set->bottom_left->height());
+ canvas->TileImageInt(
+ *set->left,
+ 0,
+ set->top_left->height(),
+ set->top_left->width(),
+ bounds.height() - set->top->height() - set->bottom_left->height());
// Tile the center image
- canvas->TileImageInt(*set->center,
- set->left->width(), set->top->height(),
- bounds.width() - set->right->width() - set->left->width(),
- bounds.height() - set->bottom->height() - set->top->height());
+ canvas->TileImageInt(
+ *set->center,
+ set->left->width(),
+ set->top->height(),
+ bounds.width() - set->right->width() - set->left->width(),
+ bounds.height() - set->bottom->height() - set->top->height());
// Tile the right image
- canvas->TileImageInt(*set->right,
- bounds.width() - set->right->width(), set->top_right->height(),
- bounds.width(), bounds.height() - set->bottom_right->height() - set->top_right->height());
+ canvas->TileImageInt(
+ *set->right,
+ bounds.width() - set->right->width(),
+ set->top_right->height(),
+ bounds.width(),
+ bounds.height() - set->bottom_right->height() -
+ set->top_right->height());
// Draw the bottom left image
- canvas->DrawBitmapInt(*set->bottom_left, 0, bounds.height() - set->bottom_left->height());
+ canvas->DrawBitmapInt(*set->bottom_left,
+ 0,
+ bounds.height() - set->bottom_left->height());
// Tile the bottom image
- canvas->TileImageInt(*set->bottom,
- set->bottom_left->width(), bounds.height() - set->bottom->height(),
- bounds.width() - set->bottom_right->width() - set->bottom_left->width(),
- set->bottom->height());
+ canvas->TileImageInt(
+ *set->bottom,
+ set->bottom_left->width(),
+ bounds.height() - set->bottom->height(),
+ bounds.width() - set->bottom_right->width() -
+ set->bottom_left->width(),
+ set->bottom->height());
// Draw the bottom right image
canvas->DrawBitmapInt(*set->bottom_right,
« no previous file with comments | « chrome/views/painter.h ('k') | chrome/views/tooltip_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698