Chromium Code Reviews| 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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 361 // Setup the UI specific to managing supervised users. | 361 // Setup the UI specific to managing supervised users. |
| 362 void SetupManagingSupervisedUsers(); | 362 void SetupManagingSupervisedUsers(); |
| 363 | 363 |
| 364 // Setup the UI for Easy Unlock. | 364 // Setup the UI for Easy Unlock. |
| 365 void SetupEasyUnlock(); | 365 void SetupEasyUnlock(); |
| 366 | 366 |
| 367 // Setup the UI for showing which settings are extension controlled. | 367 // Setup the UI for showing which settings are extension controlled. |
| 368 void SetupExtensionControlledIndicators(); | 368 void SetupExtensionControlledIndicators(); |
| 369 | 369 |
| 370 // Setup the value and the disabled property for metrics reporting for (except | 370 // Setup the value and the disabled property for metrics reporting for (except |
| 371 // CrOS and Android). | 371 // Android). |
| 372 void SetupMetricsReportingCheckbox(); | 372 void SetupMetricsReportingCheckbox(); |
| 373 | 373 |
| 374 // Called when the MetricsReportingEnabled checkbox values are changed. | 374 // Called when the MetricsReportingEnabled checkbox values are changed. |
| 375 // |args| will contain the checkbox checked state as a boolean. | 375 // |args| will contain the checkbox checked state as a boolean. |
| 376 void HandleMetricsReportingChange(const base::ListValue* args); | 376 void HandleMetricsReportingChange(const base::ListValue* args); |
| 377 | 377 |
| 378 // Notifies the result of MetricsReportingEnabled change to Javascript layer. | 378 // Notifies the result of MetricsReportingEnabled change to Javascript layer. |
| 379 void MetricsReportingChangeCallback(bool enabled); | 379 void MetricsReportingChangeCallback(bool enabled); |
|
Alexei Svitkine (slow)
2015/11/03 19:55:25
I find the name of this method not very intuitive.
gayane -on leave until 09-2017
2015/11/03 21:54:22
Done.
| |
| 380 | 380 |
| 381 // Calls a Javascript function to set the state of MetricsReporting checkbox. | 381 // Calls a Javascript function to set the state of MetricsReporting checkbox. |
| 382 void SetMetricsReportingCheckbox(bool checked, bool disabled); | 382 void SetMetricsReportingCheckbox(bool checked, |
| 383 bool policy_managed, | |
| 384 bool owner_managed); | |
| 383 | 385 |
| 384 #if defined(OS_CHROMEOS) | 386 #if defined(OS_CHROMEOS) |
| 385 // Setup the accessibility features for ChromeOS. | 387 // Setup the accessibility features for ChromeOS. |
| 386 void SetupAccessibilityFeatures(); | 388 void SetupAccessibilityFeatures(); |
| 387 #endif | 389 #endif |
| 388 | 390 |
| 389 // Returns a newly created dictionary with a number of properties that | 391 // Returns a newly created dictionary with a number of properties that |
| 390 // correspond to the status of sync. | 392 // correspond to the status of sync. |
| 391 scoped_ptr<base::DictionaryValue> GetSyncStateDictionary(); | 393 scoped_ptr<base::DictionaryValue> GetSyncStateDictionary(); |
| 392 | 394 |
| 395 // Checks whether on Chrome OS the current user is the device owner. Returns | |
| 396 // true on other platforms. | |
| 397 bool IsDeviceOwnerProfile(); | |
| 398 | |
| 393 scoped_refptr<ShellIntegration::DefaultBrowserWorker> default_browser_worker_; | 399 scoped_refptr<ShellIntegration::DefaultBrowserWorker> default_browser_worker_; |
| 394 | 400 |
| 395 bool page_initialized_; | 401 bool page_initialized_; |
| 396 | 402 |
| 397 StringPrefMember homepage_; | 403 StringPrefMember homepage_; |
| 398 BooleanPrefMember default_browser_policy_; | 404 BooleanPrefMember default_browser_policy_; |
| 399 | 405 |
| 400 TemplateURLService* template_url_service_; // Weak. | 406 TemplateURLService* template_url_service_; // Weak. |
| 401 | 407 |
| 402 scoped_refptr<ui::SelectFileDialog> select_folder_dialog_; | 408 scoped_refptr<ui::SelectFileDialog> select_folder_dialog_; |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 418 | 424 |
| 419 // Used to get WeakPtr to self for use on the UI thread. | 425 // Used to get WeakPtr to self for use on the UI thread. |
| 420 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; | 426 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; |
| 421 | 427 |
| 422 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 428 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
| 423 }; | 429 }; |
| 424 | 430 |
| 425 } // namespace options | 431 } // namespace options |
| 426 | 432 |
| 427 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 433 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
| OLD | NEW |