| 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" |    7 #include "app/l10n_util.h" | 
|    8 #include "app/resource_bundle.h" |    8 #include "app/resource_bundle.h" | 
|    9 #include "gfx/canvas.h" |    9 #include "gfx/canvas.h" | 
|   10 #include "grit/app_resources.h" |   10 #include "grit/theme_resources.h" | 
|   11 #include "views/controls/button/text_button.h" |   11 #include "views/controls/button/text_button.h" | 
|   12  |   12  | 
|   13 // Preferred padding between text and edge |   13 // Preferred padding between text and edge | 
|   14 static const int kPreferredPaddingHorizontal = 6; |   14 static const int kPreferredPaddingHorizontal = 6; | 
|   15 static const int kPreferredPaddingVertical = 5; |   15 static const int kPreferredPaddingVertical = 5; | 
|   16  |   16  | 
|   17 // InfoBarButtonBorder, public: ---------------------------------------------- |   17 // InfoBarButtonBorder, public: ---------------------------------------------- | 
|   18  |   18  | 
|   19 InfoBarButtonBorder::InfoBarButtonBorder() { |   19 InfoBarButtonBorder::InfoBarButtonBorder() { | 
|   20   ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |   20   ResourceBundle& rb = ResourceBundle::GetSharedInstance(); | 
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  133       bounds.height() - set->bottom->height(), |  133       bounds.height() - set->bottom->height(), | 
|  134       bounds.width() - set->bottom_right->width() - |  134       bounds.width() - set->bottom_right->width() - | 
|  135           set->bottom_left->width(), |  135           set->bottom_left->width(), | 
|  136       set->bottom->height(), false); |  136       set->bottom->height(), false); | 
|  137  |  137  | 
|  138   // Draw bottom right image. |  138   // Draw bottom right image. | 
|  139   canvas->DrawBitmapInt(*set->bottom_right, |  139   canvas->DrawBitmapInt(*set->bottom_right, | 
|  140                         bounds.width() - set->bottom_right->width(), |  140                         bounds.width() - set->bottom_right->width(), | 
|  141                         bounds.height() -  set->bottom_right->height()); |  141                         bounds.height() -  set->bottom_right->height()); | 
|  142 } |  142 } | 
| OLD | NEW |