OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |