OLD | NEW |
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/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 | 547 |
548 int dialog_width = left_column_width + 2 * views::kPanelHorizMargin; | 548 int dialog_width = left_column_width + 2 * views::kPanelHorizMargin; |
549 if (!is_bundle_install()) | 549 if (!is_bundle_install()) |
550 dialog_width += views::kPanelHorizMargin + kIconSize + kIconOffset; | 550 dialog_width += views::kPanelHorizMargin + kIconSize + kIconOffset; |
551 | 551 |
552 // Widen the dialog for experiment with checkboxes so that the information | 552 // Widen the dialog for experiment with checkboxes so that the information |
553 // label fits the area to the left of the buttons. | 553 // label fits the area to the left of the buttons. |
554 if (prompt.experiment()->show_checkboxes()) | 554 if (prompt.experiment()->show_checkboxes()) |
555 dialog_width += 4 * views::kPanelHorizMargin; | 555 dialog_width += 4 * views::kPanelHorizMargin; |
556 | 556 |
557 if (is_inline_install()) { | 557 if (prompt.has_webstore_data()) { |
558 layout->StartRow(0, column_set_id); | 558 layout->StartRow(0, column_set_id); |
559 views::View* rating = new views::View(); | 559 views::View* rating = new views::View(); |
560 rating->SetLayoutManager(new views::BoxLayout( | 560 rating->SetLayoutManager(new views::BoxLayout( |
561 views::BoxLayout::kHorizontal, 0, 0, 0)); | 561 views::BoxLayout::kHorizontal, 0, 0, 0)); |
562 layout->AddView(rating); | 562 layout->AddView(rating); |
563 prompt.AppendRatingStars(AddResourceIcon, rating); | 563 prompt.AppendRatingStars(AddResourceIcon, rating); |
564 | 564 |
565 const gfx::FontList& small_font_list = | 565 const gfx::FontList& small_font_list = |
566 rb.GetFontList(ui::ResourceBundle::SmallFont); | 566 rb.GetFontList(ui::ResourceBundle::SmallFont); |
567 views::Label* rating_count = | 567 views::Label* rating_count = |
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1338 if (slide_animation_.IsShowing()) | 1338 if (slide_animation_.IsShowing()) |
1339 slide_animation_.Hide(); | 1339 slide_animation_.Hide(); |
1340 else | 1340 else |
1341 slide_animation_.Show(); | 1341 slide_animation_.Show(); |
1342 } | 1342 } |
1343 | 1343 |
1344 void ExpandableContainerView::ExpandWithoutAnimation() { | 1344 void ExpandableContainerView::ExpandWithoutAnimation() { |
1345 expanded_ = true; | 1345 expanded_ = true; |
1346 details_view_->AnimateToState(1.0); | 1346 details_view_->AnimateToState(1.0); |
1347 } | 1347 } |
OLD | NEW |