| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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" |
| 6 |
| 5 #include <windows.h> | 7 #include <windows.h> |
| 6 #include <shlobj.h> | 8 #include <shlobj.h> |
| 7 #include <vsstyle.h> | 9 #include <vsstyle.h> |
| 8 #include <vssym32.h> | 10 #include <vssym32.h> |
| 9 | 11 |
| 10 #include "chrome/browser/views/options/content_page_view.h" | |
| 11 | |
| 12 #include "app/gfx/chrome_canvas.h" | 12 #include "app/gfx/chrome_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/command_line.h" | 15 #include "base/command_line.h" |
| 16 #include "base/file_util.h" | 16 #include "base/file_util.h" |
| 17 #include "base/gfx/native_theme.h" | 17 #include "base/gfx/native_theme.h" |
| 18 #include "chrome/browser/browser_process.h" | 18 #include "chrome/browser/browser_process.h" |
| 19 #include "chrome/browser/shell_dialogs.h" | 19 #include "chrome/browser/shell_dialogs.h" |
| 20 #include "chrome/browser/views/options/fonts_languages_window_view.h" | 20 #include "chrome/browser/views/options/fonts_languages_window_view.h" |
| 21 #include "chrome/browser/views/options/options_group_view.h" | 21 #include "chrome/browser/views/options/options_group_view.h" |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 } | 169 } |
| 170 | 170 |
| 171 //////////////////////////////////////////////////////////////////////////////// | 171 //////////////////////////////////////////////////////////////////////////////// |
| 172 // ContentPageView, public: | 172 // ContentPageView, public: |
| 173 | 173 |
| 174 ContentPageView::ContentPageView(Profile* profile) | 174 ContentPageView::ContentPageView(Profile* profile) |
| 175 : download_location_group_(NULL), | 175 : download_location_group_(NULL), |
| 176 download_default_download_location_display_(NULL), | 176 download_default_download_location_display_(NULL), |
| 177 download_browse_button_(NULL), | 177 download_browse_button_(NULL), |
| 178 download_ask_for_save_location_checkbox_(NULL), | 178 download_ask_for_save_location_checkbox_(NULL), |
| 179 select_file_dialog_(SelectFileDialog::Create(this)), | 179 ALLOW_THIS_IN_INITIALIZER_LIST( |
| 180 select_file_dialog_(SelectFileDialog::Create(this))), |
| 180 passwords_exceptions_button_(NULL), | 181 passwords_exceptions_button_(NULL), |
| 181 passwords_group_(NULL), | 182 passwords_group_(NULL), |
| 182 passwords_asktosave_radio_(NULL), | 183 passwords_asktosave_radio_(NULL), |
| 183 passwords_neversave_radio_(NULL), | 184 passwords_neversave_radio_(NULL), |
| 184 fonts_lang_group_(NULL), | 185 fonts_lang_group_(NULL), |
| 185 fonts_and_languages_label_(NULL), | 186 fonts_and_languages_label_(NULL), |
| 186 themes_group_(NULL), | 187 themes_group_(NULL), |
| 187 themes_reset_button_(NULL), | 188 themes_reset_button_(NULL), |
| 188 change_content_fonts_button_(NULL), | 189 change_content_fonts_button_(NULL), |
| 189 OptionsPageView(profile) { | 190 OptionsPageView(profile) { |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 | 541 |
| 541 themes_group_ = new OptionsGroupView( | 542 themes_group_ = new OptionsGroupView( |
| 542 contents, l10n_util::GetString(IDS_THEMES_GROUP_NAME), | 543 contents, l10n_util::GetString(IDS_THEMES_GROUP_NAME), |
| 543 L"", false); | 544 L"", false); |
| 544 } | 545 } |
| 545 | 546 |
| 546 void ContentPageView::UpdateDownloadDirectoryDisplay() { | 547 void ContentPageView::UpdateDownloadDirectoryDisplay() { |
| 547 download_default_download_location_display_->SetFile( | 548 download_default_download_location_display_->SetFile( |
| 548 FilePath::FromWStringHack(default_download_location_.GetValue())); | 549 FilePath::FromWStringHack(default_download_location_.GetValue())); |
| 549 } | 550 } |
| OLD | NEW |