OLD | NEW |
1 // Copyright (c) 2012 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_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 void VirtualKeyboardChangeCallback(const base::ListValue* args); | 291 void VirtualKeyboardChangeCallback(const base::ListValue* args); |
292 | 292 |
293 // Called when the user confirmed factory reset. Chrome will | 293 // Called when the user confirmed factory reset. Chrome will |
294 // initiate asynchronous file operation and then log out. | 294 // initiate asynchronous file operation and then log out. |
295 void PerformFactoryResetRestart(const base::ListValue* args); | 295 void PerformFactoryResetRestart(const base::ListValue* args); |
296 #endif | 296 #endif |
297 | 297 |
298 // Setup the visibility for the metrics reporting setting. | 298 // Setup the visibility for the metrics reporting setting. |
299 void SetupMetricsReportingSettingVisibility(); | 299 void SetupMetricsReportingSettingVisibility(); |
300 | 300 |
| 301 // Migration from prefs::kNetworkPredictionEnabled to |
| 302 // prefs::kNetworkPredictionOptions has to happen in a platform-specific |
| 303 // component. |
| 304 void MigrateNetworkPredictionOptions(); |
| 305 |
| 306 // Setup visibility of predictive network action controls based on current |
| 307 // network type. |
| 308 void SetupNetworkPredictionControlsVisibility(); |
| 309 |
| 310 // Update preferences to predictive network actions controls. |
| 311 void SetupNetworkPredictionControls(); |
| 312 |
301 // Setup the font size selector control. | 313 // Setup the font size selector control. |
302 void SetupFontSizeSelector(); | 314 void SetupFontSizeSelector(); |
303 | 315 |
304 // Setup the page zoom selector control. | 316 // Setup the page zoom selector control. |
305 void SetupPageZoomSelector(); | 317 void SetupPageZoomSelector(); |
306 | 318 |
307 // Setup the visibility of the reset button. | 319 // Setup the visibility of the reset button. |
308 void SetupAutoOpenFileTypes(); | 320 void SetupAutoOpenFileTypes(); |
309 | 321 |
310 // Setup the proxy settings section UI. | 322 // Setup the proxy settings section UI. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 | 369 |
358 // Used to get WeakPtr to self for use on the UI thread. | 370 // Used to get WeakPtr to self for use on the UI thread. |
359 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; | 371 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; |
360 | 372 |
361 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 373 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
362 }; | 374 }; |
363 | 375 |
364 } // namespace options | 376 } // namespace options |
365 | 377 |
366 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 378 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
OLD | NEW |