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

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

Issue 6263008: Move ResourceBundle, DataPack to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ui/views/infobars/infobar_button_border.h" 5 #include "chrome/browser/ui/views/infobars/infobar_button_border.h"
6 6
7 #include "app/resource_bundle.h"
8 #include "gfx/canvas.h" 7 #include "gfx/canvas.h"
9 #include "grit/theme_resources.h" 8 #include "grit/theme_resources.h"
9 #include "ui/base/resource/resource_bundle.h"
10 #include "views/controls/button/text_button.h" 10 #include "views/controls/button/text_button.h"
11 11
12 // Preferred padding between text and edge 12 // Preferred padding between text and edge
13 static const int kPreferredPaddingHorizontal = 6; 13 static const int kPreferredPaddingHorizontal = 6;
14 static const int kPreferredPaddingVertical = 5; 14 static const int kPreferredPaddingVertical = 5;
15 15
16 // InfoBarButtonBorder, public: ---------------------------------------------- 16 // InfoBarButtonBorder, public: ----------------------------------------------
17 17
18 InfoBarButtonBorder::InfoBarButtonBorder() { 18 InfoBarButtonBorder::InfoBarButtonBorder() {
19 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); 19 ResourceBundle& rb = ResourceBundle::GetSharedInstance();
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 bounds.height() - set->bottom->height(), 132 bounds.height() - set->bottom->height(),
133 bounds.width() - set->bottom_right->width() - 133 bounds.width() - set->bottom_right->width() -
134 set->bottom_left->width(), 134 set->bottom_left->width(),
135 set->bottom->height(), false); 135 set->bottom->height(), false);
136 136
137 // Draw bottom right image. 137 // Draw bottom right image.
138 canvas->DrawBitmapInt(*set->bottom_right, 138 canvas->DrawBitmapInt(*set->bottom_right,
139 bounds.width() - set->bottom_right->width(), 139 bounds.width() - set->bottom_right->width(),
140 bounds.height() - set->bottom_right->height()); 140 bounds.height() - set->bottom_right->height());
141 } 141 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/infobars/extension_infobar.cc ('k') | chrome/browser/ui/views/infobars/infobar_text_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698