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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 | 325 |
326 // Setup the UI specific to managing supervised users. | 326 // Setup the UI specific to managing supervised users. |
327 void SetupManagingSupervisedUsers(); | 327 void SetupManagingSupervisedUsers(); |
328 | 328 |
329 // Setup the UI for Easy Unlock. | 329 // Setup the UI for Easy Unlock. |
330 void SetupEasyUnlock(); | 330 void SetupEasyUnlock(); |
331 | 331 |
332 // Setup the UI for showing which settings are extension controlled. | 332 // Setup the UI for showing which settings are extension controlled. |
333 void SetupExtensionControlledIndicators(); | 333 void SetupExtensionControlledIndicators(); |
334 | 334 |
| 335 // Setup the value and the disabled property for metrics reporting for (except |
| 336 // CrOS and Android). |
| 337 void SetupMetricsReportingCheckbox(); |
| 338 |
| 339 // Called when the MetricsReportingEnabled checkbox values are changed. |
| 340 // |args| will contain the checkbox checked state as a boolean. |
| 341 void HandleMetricsReportingChange(const base::ListValue* args); |
| 342 |
| 343 // Notifies the result of MetricsReportingEnabled change to Javascript layer. |
| 344 void MetricsReportingChangeCallback(bool enabled); |
| 345 |
| 346 // Calls a Javascript function to set the state of MetricsReporting checkbox. |
| 347 void SetMetricsReportingCheckbox(bool checked, bool disabled); |
| 348 |
335 #if defined(OS_CHROMEOS) | 349 #if defined(OS_CHROMEOS) |
336 // Setup the accessibility features for ChromeOS. | 350 // Setup the accessibility features for ChromeOS. |
337 void SetupAccessibilityFeatures(); | 351 void SetupAccessibilityFeatures(); |
338 #endif | 352 #endif |
339 | 353 |
340 // Returns a newly created dictionary with a number of properties that | 354 // Returns a newly created dictionary with a number of properties that |
341 // correspond to the status of sync. | 355 // correspond to the status of sync. |
342 scoped_ptr<base::DictionaryValue> GetSyncStateDictionary(); | 356 scoped_ptr<base::DictionaryValue> GetSyncStateDictionary(); |
343 | 357 |
344 scoped_refptr<ShellIntegration::DefaultBrowserWorker> default_browser_worker_; | 358 scoped_refptr<ShellIntegration::DefaultBrowserWorker> default_browser_worker_; |
(...skipping 22 matching lines...) Expand all Loading... |
367 | 381 |
368 // Used to get WeakPtr to self for use on the UI thread. | 382 // Used to get WeakPtr to self for use on the UI thread. |
369 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; | 383 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; |
370 | 384 |
371 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 385 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
372 }; | 386 }; |
373 | 387 |
374 } // namespace options | 388 } // namespace options |
375 | 389 |
376 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 390 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
OLD | NEW |