| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 // Callback for the "selectDownloadLocation" message. This will prompt | 46 // Callback for the "selectDownloadLocation" message. This will prompt |
| 47 // the user for a destination folder using platform-specific APIs. | 47 // the user for a destination folder using platform-specific APIs. |
| 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 "resetToDefaults" message. This will ask the user if | |
| 55 // they want to reset all options to their default values. | |
| 56 void HandleResetToDefaults(const ListValue* args); | |
| 57 | |
| 58 // Callback for the "metricsReportingCheckboxAction" message. This is called | 54 // Callback for the "metricsReportingCheckboxAction" message. This is called |
| 59 // if the user toggles the metrics reporting checkbox. | 55 // if the user toggles the metrics reporting checkbox. |
| 60 void HandleMetricsReportingCheckbox(const ListValue* args); | 56 void HandleMetricsReportingCheckbox(const ListValue* args); |
| 61 | 57 |
| 62 // Callback for the "defaultZoomLevelAction" message. This is called if the | 58 // Callback for the "defaultZoomLevelAction" message. This is called if the |
| 63 // user changes the default zoom level. |args| is an array that contains | 59 // user changes the default zoom level. |args| is an array that contains |
| 64 // one item, the zoom level as a numeric value. | 60 // one item, the zoom level as a numeric value. |
| 65 void HandleDefaultZoomLevel(const ListValue* args); | 61 void HandleDefaultZoomLevel(const ListValue* args); |
| 66 | 62 |
| 67 #if defined(OS_WIN) | 63 #if defined(OS_WIN) |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 FilePathPrefMember default_download_location_; | 143 FilePathPrefMember default_download_location_; |
| 148 StringPrefMember auto_open_files_; | 144 StringPrefMember auto_open_files_; |
| 149 RealPrefMember default_zoom_level_; | 145 RealPrefMember default_zoom_level_; |
| 150 scoped_ptr<PrefSetObserver> proxy_prefs_; | 146 scoped_ptr<PrefSetObserver> proxy_prefs_; |
| 151 scoped_ptr<OptionsManagedBannerHandler> banner_handler_; | 147 scoped_ptr<OptionsManagedBannerHandler> banner_handler_; |
| 152 | 148 |
| 153 DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler); | 149 DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler); |
| 154 }; | 150 }; |
| 155 | 151 |
| 156 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ | 152 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ |
| OLD | NEW |