| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/chromeos/profiles/multiprofiles_intro_dialog.h" | 5 #include "chrome/browser/chromeos/profiles/multiprofiles_intro_dialog.h" |
| 6 | 6 |
| 7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/grit/generated_resources.h" | 9 #include "chrome/grit/generated_resources.h" |
| 10 #include "ui/base/l10n/l10n_util.h" | 10 #include "ui/base/l10n/l10n_util.h" |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 lower_label->SetHorizontalAlignment(gfx::ALIGN_LEFT); | 133 lower_label->SetHorizontalAlignment(gfx::ALIGN_LEFT); |
| 134 lower_label->SetAllowCharacterBreak(true); | 134 lower_label->SetAllowCharacterBreak(true); |
| 135 grid_layout->StartRow(0, 0); | 135 grid_layout->StartRow(0, 0); |
| 136 grid_layout->AddView(lower_label); | 136 grid_layout->AddView(lower_label); |
| 137 | 137 |
| 138 // No-show again checkbox. | 138 // No-show again checkbox. |
| 139 grid_layout->AddPaddingRow(0, kPaddingToCheckBox); | 139 grid_layout->AddPaddingRow(0, kPaddingToCheckBox); |
| 140 no_show_checkbox_.reset(new views::Checkbox( | 140 no_show_checkbox_.reset(new views::Checkbox( |
| 141 l10n_util::GetStringUTF16(IDS_MULTIPROFILES_INTRO_NOSHOW_AGAIN))); | 141 l10n_util::GetStringUTF16(IDS_MULTIPROFILES_INTRO_NOSHOW_AGAIN))); |
| 142 no_show_checkbox_->SetChecked(true); | 142 no_show_checkbox_->SetChecked(true); |
| 143 no_show_checkbox_->SetFontList( | 143 no_show_checkbox_->AdjustFontSize(ui::ResourceBundle::kMediumFontDelta); |
| 144 ui::ResourceBundle::GetSharedInstance().GetFontList( | |
| 145 ui::ResourceBundle::MediumFont)); | |
| 146 no_show_checkbox_->SetHorizontalAlignment(gfx::ALIGN_LEFT); | 144 no_show_checkbox_->SetHorizontalAlignment(gfx::ALIGN_LEFT); |
| 147 grid_layout->StartRow(0, 0); | 145 grid_layout->StartRow(0, 0); |
| 148 grid_layout->AddView(no_show_checkbox_.get()); | 146 grid_layout->AddView(no_show_checkbox_.get()); |
| 149 | 147 |
| 150 SetLayoutManager(grid_layout); | 148 SetLayoutManager(grid_layout); |
| 151 Layout(); | 149 Layout(); |
| 152 } | 150 } |
| 153 | 151 |
| 154 } // namespace | 152 } // namespace |
| 155 | 153 |
| 156 //////////////////////////////////////////////////////////////////////////////// | 154 //////////////////////////////////////////////////////////////////////////////// |
| 157 // Factory function. | 155 // Factory function. |
| 158 | 156 |
| 159 void ShowMultiprofilesIntroDialog(const base::Callback<void(bool)> on_accept) { | 157 void ShowMultiprofilesIntroDialog(const base::Callback<void(bool)> on_accept) { |
| 160 MultiprofilesIntroView::ShowDialog(on_accept); | 158 MultiprofilesIntroView::ShowDialog(on_accept); |
| 161 } | 159 } |
| 162 | 160 |
| 163 } // namespace chromeos | 161 } // namespace chromeos |
| OLD | NEW |