OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/views/options/content_page_view.h" | 5 #include "chrome/browser/views/options/content_page_view.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <shlobj.h> | 8 #include <shlobj.h> |
9 #include <vsstyle.h> | 9 #include <vsstyle.h> |
10 #include <vssym32.h> | 10 #include <vssym32.h> |
11 | 11 |
12 #include "app/gfx/canvas.h" | 12 #include "app/gfx/canvas.h" |
13 #include "app/l10n_util.h" | 13 #include "app/l10n_util.h" |
14 #include "app/resource_bundle.h" | 14 #include "app/resource_bundle.h" |
15 #include "base/gfx/native_theme.h" | 15 #include "base/gfx/native_theme.h" |
16 #include "chrome/browser/browser_process.h" | 16 #include "chrome/browser/browser_process.h" |
17 #include "chrome/browser/views/clear_browsing_data.h" | 17 #include "chrome/browser/views/clear_browsing_data.h" |
18 #include "chrome/browser/views/importer_view.h" | 18 #include "chrome/browser/views/importer_view.h" |
19 #include "chrome/browser/views/options/options_group_view.h" | 19 #include "chrome/browser/views/options/options_group_view.h" |
20 #include "chrome/browser/views/options/passwords_exceptions_window_view.h" | 20 #include "chrome/browser/views/options/passwords_exceptions_window_view.h" |
21 #include "chrome/common/pref_names.h" | 21 #include "chrome/common/pref_names.h" |
22 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
23 #include "views/controls/button/radio_button.h" | 23 #include "views/controls/button/radio_button.h" |
24 #include "views/grid_layout.h" | 24 #include "views/grid_layout.h" |
25 #include "views/standard_layout.h" | 25 #include "views/standard_layout.h" |
26 #include "views/widget/widget.h" | 26 #include "views/widget/widget.h" |
| 27 #include "views/window/window.h" |
27 | 28 |
28 namespace { | 29 namespace { |
29 | 30 |
30 const int kPasswordSavingRadioGroup = 1; | 31 const int kPasswordSavingRadioGroup = 1; |
31 const int kFormAutofillRadioGroup = 2; | 32 const int kFormAutofillRadioGroup = 2; |
32 } // namespace | 33 } // namespace |
33 | 34 |
34 ContentPageView::ContentPageView(Profile* profile) | 35 ContentPageView::ContentPageView(Profile* profile) |
35 : passwords_exceptions_button_(NULL), | 36 : passwords_exceptions_button_(NULL), |
36 passwords_group_(NULL), | 37 passwords_group_(NULL), |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 double_col_set->AddColumn(GridLayout::LEADING, GridLayout::CENTER, 0, | 310 double_col_set->AddColumn(GridLayout::LEADING, GridLayout::CENTER, 0, |
310 GridLayout::USE_PREF, 0, 0); | 311 GridLayout::USE_PREF, 0, 0); |
311 layout->StartRow(0, double_column_view_set_id); | 312 layout->StartRow(0, double_column_view_set_id); |
312 layout->AddView(import_button_); | 313 layout->AddView(import_button_); |
313 layout->AddView(clear_data_button_); | 314 layout->AddView(clear_data_button_); |
314 | 315 |
315 browsing_data_group_ = new OptionsGroupView( | 316 browsing_data_group_ = new OptionsGroupView( |
316 contents, l10n_util::GetString(IDS_OPTIONS_BROWSING_DATA_GROUP_NAME), | 317 contents, l10n_util::GetString(IDS_OPTIONS_BROWSING_DATA_GROUP_NAME), |
317 L"", true); | 318 L"", true); |
318 } | 319 } |
OLD | NEW |