| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 const content::NotificationDetails& details) OVERRIDE; | 41 const content::NotificationDetails& details) OVERRIDE; |
| 42 | 42 |
| 43 // SelectFileDialog::Listener implementation | 43 // SelectFileDialog::Listener implementation |
| 44 virtual void FileSelected(const FilePath& path, | 44 virtual void FileSelected(const FilePath& path, |
| 45 int index, | 45 int index, |
| 46 void* params) OVERRIDE; | 46 void* params) OVERRIDE; |
| 47 | 47 |
| 48 // CloudPrintSetupHandler::Delegate implementation. | 48 // CloudPrintSetupHandler::Delegate implementation. |
| 49 virtual void OnCloudPrintSetupClosed() OVERRIDE; | 49 virtual void OnCloudPrintSetupClosed() OVERRIDE; |
| 50 | 50 |
| 51 #if !defined(OS_CHROMEOS) |
| 52 // DeviceHierarchyObserver implementation. |
| 53 virtual void DeviceHierarchyChanged() OVERRIDE; |
| 54 #endif |
| 55 |
| 51 private: | 56 private: |
| 52 // Callback for the "selectDownloadLocation" message. This will prompt the | 57 // Callback for the "selectDownloadLocation" message. This will prompt the |
| 53 // user for a destination folder using platform-specific APIs. | 58 // user for a destination folder using platform-specific APIs. |
| 54 void HandleSelectDownloadLocation(const ListValue* args); | 59 void HandleSelectDownloadLocation(const ListValue* args); |
| 55 | 60 |
| 56 // Callback for the "autoOpenFileTypesResetToDefault" message. This will | 61 // Callback for the "autoOpenFileTypesResetToDefault" message. This will |
| 57 // remove all auto-open file-type settings. | 62 // remove all auto-open file-type settings. |
| 58 void HandleAutoOpenButton(const ListValue* args); | 63 void HandleAutoOpenButton(const ListValue* args); |
| 59 | 64 |
| 60 // Callback for the "metricsReportingCheckboxAction" message. This is called | 65 // Callback for the "metricsReportingCheckboxAction" message. This is called |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 122 |
| 118 // Setup the enabled or disabled state of the cloud print connector | 123 // Setup the enabled or disabled state of the cloud print connector |
| 119 // management UI. | 124 // management UI. |
| 120 void SetupCloudPrintConnectorSection(); | 125 void SetupCloudPrintConnectorSection(); |
| 121 | 126 |
| 122 // Remove cloud print connector section if cloud print connector management | 127 // Remove cloud print connector section if cloud print connector management |
| 123 // UI is disabled. | 128 // UI is disabled. |
| 124 void RemoveCloudPrintConnectorSection(); | 129 void RemoveCloudPrintConnectorSection(); |
| 125 #endif | 130 #endif |
| 126 | 131 |
| 132 #if defined(OS_CHROMEOS) |
| 133 // Called when the accessibility checkbox values are changed. |
| 134 // |args| will contain the checkbox checked state as a string |
| 135 // ("true" or "false"). |
| 136 void SpokenFeedbackChangeCallback(const base::ListValue* args); |
| 137 void HighContrastChangeCallback(const base::ListValue* args); |
| 138 void ScreenMagnifierChangeCallback(const base::ListValue* args); |
| 139 void VirtualKeyboardChangeCallback(const base::ListValue* args); |
| 140 #endif |
| 141 |
| 127 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) | 142 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) |
| 128 // Sets up the checked state for the "Continue running background apps..." | 143 // Sets up the checked state for the "Continue running background apps..." |
| 129 // checkbox. | 144 // checkbox. |
| 130 void SetupBackgroundModeSettings(); | 145 void SetupBackgroundModeSettings(); |
| 131 | 146 |
| 132 // Callback for the "Continue running background apps..." checkbox. | 147 // Callback for the "Continue running background apps..." checkbox. |
| 133 void HandleBackgroundModeCheckbox(const ListValue* args); | 148 void HandleBackgroundModeCheckbox(const ListValue* args); |
| 134 #endif | 149 #endif |
| 135 | 150 |
| 136 // Setup the checked state for the metrics reporting checkbox. | 151 // Setup the checked state for the metrics reporting checkbox. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 147 | 162 |
| 148 // Setup the enabled state of the reset button. | 163 // Setup the enabled state of the reset button. |
| 149 void SetupAutoOpenFileTypesDisabledAttribute(); | 164 void SetupAutoOpenFileTypesDisabledAttribute(); |
| 150 | 165 |
| 151 // Setup the proxy settings section UI. | 166 // Setup the proxy settings section UI. |
| 152 void SetupProxySettingsSection(); | 167 void SetupProxySettingsSection(); |
| 153 | 168 |
| 154 // Setup the checked state for SSL related checkboxes. | 169 // Setup the checked state for SSL related checkboxes. |
| 155 void SetupSSLConfigSettings(); | 170 void SetupSSLConfigSettings(); |
| 156 | 171 |
| 172 #if defined(OS_CHROMEOS) |
| 173 // Setup the accessibility features for ChromeOS. |
| 174 void SetupAccessibilityFeatures(); |
| 175 |
| 176 // Check for input devices. |
| 177 void CheckTouchpadExists(); |
| 178 void CheckMouseExists(); |
| 179 |
| 180 // Callback for input device checks. |
| 181 void TouchpadExists(bool* exists); |
| 182 void MouseExists(bool* exists); |
| 183 #endif |
| 184 |
| 157 scoped_refptr<SelectFileDialog> select_folder_dialog_; | 185 scoped_refptr<SelectFileDialog> select_folder_dialog_; |
| 158 | 186 |
| 159 #if !defined(OS_CHROMEOS) | 187 #if !defined(OS_CHROMEOS) |
| 160 BooleanPrefMember enable_metrics_recording_; | 188 BooleanPrefMember enable_metrics_recording_; |
| 161 StringPrefMember cloud_print_connector_email_; | 189 StringPrefMember cloud_print_connector_email_; |
| 162 BooleanPrefMember cloud_print_connector_enabled_; | 190 BooleanPrefMember cloud_print_connector_enabled_; |
| 163 bool cloud_print_connector_ui_enabled_; | 191 bool cloud_print_connector_ui_enabled_; |
| 164 scoped_ptr<CloudPrintSetupHandler> cloud_print_setup_handler_; | 192 scoped_ptr<CloudPrintSetupHandler> cloud_print_setup_handler_; |
| 165 #endif | 193 #endif |
| 166 | 194 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 178 #if !defined(OS_CHROMEOS) | 206 #if !defined(OS_CHROMEOS) |
| 179 scoped_ptr<PrefSetObserver> proxy_prefs_; | 207 scoped_ptr<PrefSetObserver> proxy_prefs_; |
| 180 #endif // !defined(OS_CHROMEOS) | 208 #endif // !defined(OS_CHROMEOS) |
| 181 | 209 |
| 182 DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler); | 210 DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler); |
| 183 }; | 211 }; |
| 184 | 212 |
| 185 } // namespace options2 | 213 } // namespace options2 |
| 186 | 214 |
| 187 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_ADVANCED_OPTIONS_HANDLER2_H_ | 215 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_ADVANCED_OPTIONS_HANDLER2_H_ |
| OLD | NEW |