| OLD | NEW |
| 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "base/compiler_specific.h" | 6 #include "base/compiler_specific.h" |
| 7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/browser/extensions/extension_install_dialog.h" | 9 #include "chrome/browser/extensions/extension_install_dialog.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 | 201 |
| 202 views::Label* rating_count = new views::Label(prompt.GetRatingCount()); | 202 views::Label* rating_count = new views::Label(prompt.GetRatingCount()); |
| 203 rating_count->SetFont( | 203 rating_count->SetFont( |
| 204 rating_count->font().DeriveFont(kRatingFontSizeDelta)); | 204 rating_count->font().DeriveFont(kRatingFontSizeDelta)); |
| 205 // Add some space between the stars and the rating count. | 205 // Add some space between the stars and the rating count. |
| 206 rating_count->set_border(views::Border::CreateEmptyBorder(0, 2, 0, 0)); | 206 rating_count->set_border(views::Border::CreateEmptyBorder(0, 2, 0, 0)); |
| 207 rating->AddChildView(rating_count); | 207 rating->AddChildView(rating_count); |
| 208 | 208 |
| 209 layout->StartRow(0, column_set_id); | 209 layout->StartRow(0, column_set_id); |
| 210 views::Label* user_count = new views::Label(prompt.GetUserCount()); | 210 views::Label* user_count = new views::Label(prompt.GetUserCount()); |
| 211 user_count->SetColor(SK_ColorGRAY); | 211 user_count->SetAutoColorReadabilityEnabled(false); |
| 212 user_count->SetEnabledColor(SK_ColorGRAY); |
| 212 user_count->SetFont(user_count->font().DeriveFont(kRatingFontSizeDelta)); | 213 user_count->SetFont(user_count->font().DeriveFont(kRatingFontSizeDelta)); |
| 213 layout->AddView(user_count); | 214 layout->AddView(user_count); |
| 214 | 215 |
| 215 layout->StartRow(0, column_set_id); | 216 layout->StartRow(0, column_set_id); |
| 216 views::Link* store_link = new views::Link( | 217 views::Link* store_link = new views::Link( |
| 217 l10n_util::GetStringUTF16(IDS_EXTENSION_PROMPT_STORE_LINK)); | 218 l10n_util::GetStringUTF16(IDS_EXTENSION_PROMPT_STORE_LINK)); |
| 218 store_link->SetFont(store_link->font().DeriveFont(kRatingFontSizeDelta)); | 219 store_link->SetFont(store_link->font().DeriveFont(kRatingFontSizeDelta)); |
| 219 store_link->set_listener(this); | 220 store_link->set_listener(this); |
| 220 layout->AddView(store_link); | 221 layout->AddView(store_link); |
| 221 } | 222 } |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 } | 329 } |
| 329 | 330 |
| 330 ExtensionInstallDialogView* dialog = new ExtensionInstallDialogView( | 331 ExtensionInstallDialogView* dialog = new ExtensionInstallDialogView( |
| 331 delegate, extension, icon, prompt); | 332 delegate, extension, icon, prompt); |
| 332 | 333 |
| 333 views::Widget* window = browser::CreateViewsWindow( | 334 views::Widget* window = browser::CreateViewsWindow( |
| 334 browser_window->GetNativeHandle(), dialog); | 335 browser_window->GetNativeHandle(), dialog); |
| 335 | 336 |
| 336 window->Show(); | 337 window->Show(); |
| 337 } | 338 } |
| OLD | NEW |