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

Side by Side Diff: chrome/browser/ui/views/extensions/extension_install_dialog_view.cc

Issue 10828336: chromeos: Remove CROS_FONTS_USING_BCI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update media_galleries_dialog_views.cc Created 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <vector> 5 #include <vector>
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 // Width of the left column of the dialog when the extension requests no 51 // Width of the left column of the dialog when the extension requests no
52 // permissions. 52 // permissions.
53 const int kNoPermissionsLeftColumnWidth = 200; 53 const int kNoPermissionsLeftColumnWidth = 200;
54 54
55 // Width of the left column for bundle install prompts. There's only one column 55 // Width of the left column for bundle install prompts. There's only one column
56 // in this case, so make it wider than normal. 56 // in this case, so make it wider than normal.
57 const int kBundleLeftColumnWidth = 300; 57 const int kBundleLeftColumnWidth = 300;
58 58
59 // Heading font size correction. 59 // Heading font size correction.
60 #if defined(CROS_FONTS_USING_BCI)
61 const int kHeadingFontSizeDelta = 0;
62 #else
63 const int kHeadingFontSizeDelta = 1; 60 const int kHeadingFontSizeDelta = 1;
64 #endif
65 61
66 const int kRatingFontSizeDelta = -1; 62 const int kRatingFontSizeDelta = -1;
67 63
68 void AddResourceIcon(const gfx::ImageSkia* skia_image, void* data) { 64 void AddResourceIcon(const gfx::ImageSkia* skia_image, void* data) {
69 views::View* parent = static_cast<views::View*>(data); 65 views::View* parent = static_cast<views::View*>(data);
70 views::ImageView* image_view = new views::ImageView(); 66 views::ImageView* image_view = new views::ImageView();
71 image_view->SetImage(*skia_image); 67 image_view->SetImage(*skia_image);
72 parent->AddChildView(image_view); 68 parent->AddChildView(image_view);
73 } 69 }
74 70
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 rotate.ConcatTranslate(arrow_view_->width() / 2.0, 611 rotate.ConcatTranslate(arrow_view_->width() / 2.0,
616 arrow_view_->height() / 2.0); 612 arrow_view_->height() / 2.0);
617 } 613 }
618 arrow_view_->SetTransform(rotate); 614 arrow_view_->SetTransform(rotate);
619 } 615 }
620 } 616 }
621 617
622 void IssueAdviceView::ChildPreferredSizeChanged(views::View* child) { 618 void IssueAdviceView::ChildPreferredSizeChanged(views::View* child) {
623 owner_->SizeToContents(); 619 owner_->SizeToContents();
624 } 620 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698