OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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/first_run.h" | 5 #include "chrome/browser/first_run.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <shellapi.h> | 8 #include <shellapi.h> |
9 #include <shlobj.h> | 9 #include <shlobj.h> |
10 | 10 |
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 rb.GetBitmapNamed(IDR_CLOSE_BAR_H)); | 793 rb.GetBitmapNamed(IDR_CLOSE_BAR_H)); |
794 close_button->SetImage(views::CustomButton::BS_PUSHED, | 794 close_button->SetImage(views::CustomButton::BS_PUSHED, |
795 rb.GetBitmapNamed(IDR_CLOSE_BAR_P)); | 795 rb.GetBitmapNamed(IDR_CLOSE_BAR_P)); |
796 close_button->set_tag(BT_CLOSE_BUTTON); | 796 close_button->set_tag(BT_CLOSE_BUTTON); |
797 layout->AddView(close_button); | 797 layout->AddView(close_button); |
798 // Second row views. | 798 // Second row views. |
799 if (kDialogVersion[version_].try_index >= 0) { | 799 if (kDialogVersion[version_].try_index >= 0) { |
800 layout->StartRowWithPadding(0, 1, 0, 10); | 800 layout->StartRowWithPadding(0, 1, 0, 10); |
801 try_chrome_ = new views::RadioButton( | 801 try_chrome_ = new views::RadioButton( |
802 kGiveChromeATry[kDialogVersion[version_].try_index], 1); | 802 kGiveChromeATry[kDialogVersion[version_].try_index], 1); |
| 803 layout->AddView(try_chrome_); |
803 try_chrome_->SetChecked(true); | 804 try_chrome_->SetChecked(true); |
804 layout->AddView(try_chrome_); | |
805 } | 805 } |
806 // Third row views. | 806 // Third row views. |
807 if (kDialogVersion[version_].try_index >= 0) { | 807 if (kDialogVersion[version_].try_index >= 0) { |
808 layout->StartRow(0, 2); | 808 layout->StartRow(0, 2); |
809 kill_chrome_ = new views::RadioButton( | 809 kill_chrome_ = new views::RadioButton( |
810 kNahUninstallIt[kDialogVersion[version_].uninstall_index], 1); | 810 kNahUninstallIt[kDialogVersion[version_].uninstall_index], 1); |
811 layout->AddView(kill_chrome_); | 811 layout->AddView(kill_chrome_); |
812 } | 812 } |
813 // Fourth row views. | 813 // Fourth row views. |
814 layout->StartRowWithPadding(0, 3, 0, 10); | 814 layout->StartRowWithPadding(0, 3, 0, 10); |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
922 | 922 |
923 DISALLOW_COPY_AND_ASSIGN(TryChromeDialog); | 923 DISALLOW_COPY_AND_ASSIGN(TryChromeDialog); |
924 }; | 924 }; |
925 | 925 |
926 } // namespace | 926 } // namespace |
927 | 927 |
928 Upgrade::TryResult Upgrade::ShowTryChromeDialog(size_t version) { | 928 Upgrade::TryResult Upgrade::ShowTryChromeDialog(size_t version) { |
929 TryChromeDialog td(version); | 929 TryChromeDialog td(version); |
930 return td.ShowModal(); | 930 return td.ShowModal(); |
931 } | 931 } |
OLD | NEW |