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

Side by Side Diff: chrome/browser/views/infobars/infobar_button_border.cc

Issue 3066014: Cleanup: Remove unneeded headers from app/ (part 2) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 10 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/views/infobars/infobar_button_border.h" 5 #include "chrome/browser/views/infobars/infobar_button_border.h"
6 6
7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h" 7 #include "app/resource_bundle.h"
9 #include "gfx/canvas.h" 8 #include "gfx/canvas.h"
10 #include "grit/theme_resources.h" 9 #include "grit/theme_resources.h"
11 #include "views/controls/button/text_button.h" 10 #include "views/controls/button/text_button.h"
12 11
13 // Preferred padding between text and edge 12 // Preferred padding between text and edge
14 static const int kPreferredPaddingHorizontal = 6; 13 static const int kPreferredPaddingHorizontal = 6;
15 static const int kPreferredPaddingVertical = 5; 14 static const int kPreferredPaddingVertical = 5;
16 15
17 // InfoBarButtonBorder, public: ---------------------------------------------- 16 // InfoBarButtonBorder, public: ----------------------------------------------
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 bounds.height() - set->bottom->height(), 132 bounds.height() - set->bottom->height(),
134 bounds.width() - set->bottom_right->width() - 133 bounds.width() - set->bottom_right->width() -
135 set->bottom_left->width(), 134 set->bottom_left->width(),
136 set->bottom->height(), false); 135 set->bottom->height(), false);
137 136
138 // Draw bottom right image. 137 // Draw bottom right image.
139 canvas->DrawBitmapInt(*set->bottom_right, 138 canvas->DrawBitmapInt(*set->bottom_right,
140 bounds.width() - set->bottom_right->width(), 139 bounds.width() - set->bottom_right->width(),
141 bounds.height() - set->bottom_right->height()); 140 bounds.height() - set->bottom_right->height());
142 } 141 }
OLDNEW
« no previous file with comments | « chrome/browser/views/infobars/before_translate_infobar.cc ('k') | chrome/browser/views/keyword_editor_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698