OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "build/build_config.h" | 5 #include "build/build_config.h" |
6 | 6 |
7 #include "app/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
8 #include "app/l10n_util.h" | 8 #include "app/l10n_util.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 1, // Resize weight. | 210 1, // Resize weight. |
211 views::GridLayout::USE_PREF, // Size type. | 211 views::GridLayout::USE_PREF, // Size type. |
212 0, // Ignored for USE_PREF. | 212 0, // Ignored for USE_PREF. |
213 0); // Minimum size. | 213 0); // Minimum size. |
214 columns->AddPaddingColumn(0, kHorizontalPadding); | 214 columns->AddPaddingColumn(0, kHorizontalPadding); |
215 | 215 |
216 layout->AddPaddingRow(0, kVerticalPadding); | 216 layout->AddPaddingRow(0, kVerticalPadding); |
217 for (int i = 0; i < model_.GetSectionCount(); ++i) { | 217 for (int i = 0; i < model_.GetSectionCount(); ++i) { |
218 PageInfoModel::SectionInfo info = model_.GetSectionInfo(i); | 218 PageInfoModel::SectionInfo info = model_.GetSectionInfo(i); |
219 layout->StartRow(0, 0); | 219 layout->StartRow(0, 0); |
220 layout->AddView(new Section(info.title, info.state, info.headline, | 220 layout->AddView(new Section(info.title, info.state, info.head_line, |
221 info.description)); | 221 info.description)); |
222 layout->AddPaddingRow(0, kVerticalPadding); | 222 layout->AddPaddingRow(0, kVerticalPadding); |
223 } | 223 } |
224 layout->AddPaddingRow(1, kVerticalPadding); | 224 layout->AddPaddingRow(1, kVerticalPadding); |
225 | 225 |
226 Layout(); | 226 Layout(); |
227 } | 227 } |
228 | 228 |
229 void PageInfoWindowView::Show() { | 229 void PageInfoWindowView::Show() { |
230 window()->Show(); | 230 window()->Show(); |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 Profile* profile, | 446 Profile* profile, |
447 const GURL& url, | 447 const GURL& url, |
448 const NavigationEntry::SSLStatus& ssl, | 448 const NavigationEntry::SSLStatus& ssl, |
449 bool show_history) { | 449 bool show_history) { |
450 PageInfoWindowView* page_info_window = | 450 PageInfoWindowView* page_info_window = |
451 new PageInfoWindowView(parent, profile, url, ssl, show_history); | 451 new PageInfoWindowView(parent, profile, url, ssl, show_history); |
452 page_info_window->Show(); | 452 page_info_window->Show(); |
453 } | 453 } |
454 | 454 |
455 } | 455 } |
OLD | NEW |