| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_WEBUI_OPTIONS2_ADVANCED_OPTIONS_HANDLER2_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_ADVANCED_OPTIONS_HANDLER2_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_ADVANCED_OPTIONS_HANDLER2_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_ADVANCED_OPTIONS_HANDLER2_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/prefs/pref_member.h" | 9 #include "chrome/browser/prefs/pref_member.h" |
| 10 #include "chrome/browser/printing/cloud_print/cloud_print_setup_handler.h" | 10 #include "chrome/browser/printing/cloud_print/cloud_print_setup_handler.h" |
| 11 #include "chrome/browser/ui/select_file_dialog.h" | 11 #include "chrome/browser/ui/select_file_dialog.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 // Setup the enabled or disabled state of the cloud print connector | 118 // Setup the enabled or disabled state of the cloud print connector |
| 119 // management UI. | 119 // management UI. |
| 120 void SetupCloudPrintConnectorSection(); | 120 void SetupCloudPrintConnectorSection(); |
| 121 | 121 |
| 122 // Remove cloud print connector section if cloud print connector management | 122 // Remove cloud print connector section if cloud print connector management |
| 123 // UI is disabled. | 123 // UI is disabled. |
| 124 void RemoveCloudPrintConnectorSection(); | 124 void RemoveCloudPrintConnectorSection(); |
| 125 #endif | 125 #endif |
| 126 | 126 |
| 127 #if defined(OS_CHROMEOS) |
| 128 // Called when the accessibility checkbox values are changed. |
| 129 // |args| will contain the checkbox checked state as a string |
| 130 // ("true" or "false"). |
| 131 void SpokenFeedbackChangeCallback(const base::ListValue* args); |
| 132 void HighContrastChangeCallback(const base::ListValue* args); |
| 133 void ScreenMagnifierChangeCallback(const base::ListValue* args); |
| 134 void VirtualKeyboardChangeCallback(const base::ListValue* args); |
| 135 #endif |
| 136 |
| 127 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) | 137 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) |
| 128 // Sets up the checked state for the "Continue running background apps..." | 138 // Sets up the checked state for the "Continue running background apps..." |
| 129 // checkbox. | 139 // checkbox. |
| 130 void SetupBackgroundModeSettings(); | 140 void SetupBackgroundModeSettings(); |
| 131 | 141 |
| 132 // Callback for the "Continue running background apps..." checkbox. | 142 // Callback for the "Continue running background apps..." checkbox. |
| 133 void HandleBackgroundModeCheckbox(const ListValue* args); | 143 void HandleBackgroundModeCheckbox(const ListValue* args); |
| 134 #endif | 144 #endif |
| 135 | 145 |
| 136 // Setup the checked state for the metrics reporting checkbox. | 146 // Setup the checked state for the metrics reporting checkbox. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 147 | 157 |
| 148 // Setup the enabled state of the reset button. | 158 // Setup the enabled state of the reset button. |
| 149 void SetupAutoOpenFileTypesDisabledAttribute(); | 159 void SetupAutoOpenFileTypesDisabledAttribute(); |
| 150 | 160 |
| 151 // Setup the proxy settings section UI. | 161 // Setup the proxy settings section UI. |
| 152 void SetupProxySettingsSection(); | 162 void SetupProxySettingsSection(); |
| 153 | 163 |
| 154 // Setup the checked state for SSL related checkboxes. | 164 // Setup the checked state for SSL related checkboxes. |
| 155 void SetupSSLConfigSettings(); | 165 void SetupSSLConfigSettings(); |
| 156 | 166 |
| 167 #if defined(OS_CHROMEOS) |
| 168 // Setup the accessibility features for ChromeOS. |
| 169 void SetupAccessibilityFeatures(); |
| 170 #endif |
| 171 |
| 157 scoped_refptr<SelectFileDialog> select_folder_dialog_; | 172 scoped_refptr<SelectFileDialog> select_folder_dialog_; |
| 158 | 173 |
| 159 #if !defined(OS_CHROMEOS) | 174 #if !defined(OS_CHROMEOS) |
| 160 BooleanPrefMember enable_metrics_recording_; | 175 BooleanPrefMember enable_metrics_recording_; |
| 161 StringPrefMember cloud_print_connector_email_; | 176 StringPrefMember cloud_print_connector_email_; |
| 162 BooleanPrefMember cloud_print_connector_enabled_; | 177 BooleanPrefMember cloud_print_connector_enabled_; |
| 163 bool cloud_print_connector_ui_enabled_; | 178 bool cloud_print_connector_ui_enabled_; |
| 164 scoped_ptr<CloudPrintSetupHandler> cloud_print_setup_handler_; | 179 scoped_ptr<CloudPrintSetupHandler> cloud_print_setup_handler_; |
| 165 #endif | 180 #endif |
| 166 | 181 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 178 #if !defined(OS_CHROMEOS) | 193 #if !defined(OS_CHROMEOS) |
| 179 scoped_ptr<PrefSetObserver> proxy_prefs_; | 194 scoped_ptr<PrefSetObserver> proxy_prefs_; |
| 180 #endif // !defined(OS_CHROMEOS) | 195 #endif // !defined(OS_CHROMEOS) |
| 181 | 196 |
| 182 DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler); | 197 DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler); |
| 183 }; | 198 }; |
| 184 | 199 |
| 185 } // namespace options2 | 200 } // namespace options2 |
| 186 | 201 |
| 187 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_ADVANCED_OPTIONS_HANDLER2_H_ | 202 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_ADVANCED_OPTIONS_HANDLER2_H_ |
| OLD | NEW |