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 #ifndef CHROME_BROWSER_DOM_UI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ |
6 #define CHROME_BROWSER_DOM_UI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_DOM_UI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/dom_ui/options/options_ui.h" | 9 #include "chrome/browser/dom_ui/options/options_ui.h" |
10 #include "chrome/browser/prefs/pref_member.h" | 10 #include "chrome/browser/prefs/pref_member.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 void HandleSelectDownloadLocation(const ListValue* args); | 48 void HandleSelectDownloadLocation(const ListValue* args); |
49 | 49 |
50 // Callback for the "autoOpenFileTypesResetToDefault" message. This will | 50 // Callback for the "autoOpenFileTypesResetToDefault" message. This will |
51 // remove all auto-open file-type settings. | 51 // remove all auto-open file-type settings. |
52 void HandleAutoOpenButton(const ListValue* args); | 52 void HandleAutoOpenButton(const ListValue* args); |
53 | 53 |
54 // Callback for the "metricsReportingCheckboxAction" message. This is called | 54 // Callback for the "metricsReportingCheckboxAction" message. This is called |
55 // if the user toggles the metrics reporting checkbox. | 55 // if the user toggles the metrics reporting checkbox. |
56 void HandleMetricsReportingCheckbox(const ListValue* args); | 56 void HandleMetricsReportingCheckbox(const ListValue* args); |
57 | 57 |
58 // Callback for the "defaultZoomLevelAction" message. This is called if the | |
59 // user changes the default zoom level. |args| is an array that contains | |
60 // one item, the zoom level as a numeric value. | |
61 void HandleDefaultZoomLevel(const ListValue* args); | |
62 | |
63 // Callback for the "defaultFontSizeAction" message. This is called if the | 58 // Callback for the "defaultFontSizeAction" message. This is called if the |
64 // user changes the default font size. |args| is an array that contains | 59 // user changes the default font size. |args| is an array that contains |
65 // one item, the font size as a numeric value. | 60 // one item, the font size as a numeric value. |
66 void HandleDefaultFontSize(const ListValue* args); | 61 void HandleDefaultFontSize(const ListValue* args); |
67 | 62 |
68 #if defined(OS_WIN) | 63 #if defined(OS_WIN) |
69 // Callback for the "Check SSL Revocation" checkbox. This is needed so we | 64 // Callback for the "Check SSL Revocation" checkbox. This is needed so we |
70 // can support manual handling on Windows. | 65 // can support manual handling on Windows. |
71 void HandleCheckRevocationCheckbox(const ListValue* args); | 66 void HandleCheckRevocationCheckbox(const ListValue* args); |
72 | 67 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 // Callback for Setup Remoting button. | 122 // Callback for Setup Remoting button. |
128 void ShowRemotingSetupDialog(const ListValue* args); | 123 void ShowRemotingSetupDialog(const ListValue* args); |
129 #endif | 124 #endif |
130 | 125 |
131 // Setup the checked state for the metrics reporting checkbox. | 126 // Setup the checked state for the metrics reporting checkbox. |
132 void SetupMetricsReportingCheckbox(); | 127 void SetupMetricsReportingCheckbox(); |
133 | 128 |
134 // Setup the visibility for the metrics reporting setting. | 129 // Setup the visibility for the metrics reporting setting. |
135 void SetupMetricsReportingSettingVisibility(); | 130 void SetupMetricsReportingSettingVisibility(); |
136 | 131 |
137 void SetupDefaultZoomLevel(); | |
138 void SetupFontSizeLabel(); | 132 void SetupFontSizeLabel(); |
139 | 133 |
140 // Setup the download path based on user preferences. | 134 // Setup the download path based on user preferences. |
141 void SetupDownloadLocationPath(); | 135 void SetupDownloadLocationPath(); |
142 | 136 |
143 // Setup the enabled state of the reset button. | 137 // Setup the enabled state of the reset button. |
144 void SetupAutoOpenFileTypesDisabledAttribute(); | 138 void SetupAutoOpenFileTypesDisabledAttribute(); |
145 | 139 |
146 // Setup the proxy settings section UI. | 140 // Setup the proxy settings section UI. |
147 void SetupProxySettingsSection(); | 141 void SetupProxySettingsSection(); |
148 | 142 |
149 #if defined(OS_WIN) | 143 #if defined(OS_WIN) |
150 // Setup the checked state for SSL related checkboxes. | 144 // Setup the checked state for SSL related checkboxes. |
151 void SetupSSLConfigSettings(); | 145 void SetupSSLConfigSettings(); |
152 #endif | 146 #endif |
153 | 147 |
154 scoped_refptr<SelectFileDialog> select_folder_dialog_; | 148 scoped_refptr<SelectFileDialog> select_folder_dialog_; |
155 | 149 |
156 #if !defined(OS_CHROMEOS) | 150 #if !defined(OS_CHROMEOS) |
157 BooleanPrefMember enable_metrics_recording_; | 151 BooleanPrefMember enable_metrics_recording_; |
158 StringPrefMember cloud_print_proxy_email_; | 152 StringPrefMember cloud_print_proxy_email_; |
159 bool cloud_print_proxy_ui_enabled_; | 153 bool cloud_print_proxy_ui_enabled_; |
160 #endif | 154 #endif |
161 | 155 |
162 FilePathPrefMember default_download_location_; | 156 FilePathPrefMember default_download_location_; |
163 StringPrefMember auto_open_files_; | 157 StringPrefMember auto_open_files_; |
164 RealPrefMember default_zoom_level_; | |
165 IntegerPrefMember default_font_size_; | 158 IntegerPrefMember default_font_size_; |
166 IntegerPrefMember default_fixed_font_size_; | 159 IntegerPrefMember default_fixed_font_size_; |
167 scoped_ptr<PrefSetObserver> proxy_prefs_; | 160 scoped_ptr<PrefSetObserver> proxy_prefs_; |
168 scoped_ptr<OptionsManagedBannerHandler> banner_handler_; | 161 scoped_ptr<OptionsManagedBannerHandler> banner_handler_; |
169 | 162 |
170 DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler); | 163 DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler); |
171 }; | 164 }; |
172 | 165 |
173 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ | 166 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ |
OLD | NEW |