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

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

Issue 145153002: Make sideloaded (externally installed) extensions display webstore info (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ChromeOS fix Created 6 years, 10 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
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/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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/extensions/extension_install_dialog_gtk.cc ('k') | chrome/chrome_browser_extensions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698