Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: chrome/browser/ui/webui/options/browser_options_handler.cc

Issue 677983004: Power overlay in Settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include "chrome/browser/ui/webui/options/browser_options_handler.h" 5 #include "chrome/browser/ui/webui/options/browser_options_handler.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 { "factoryResetHeading", IDS_OPTIONS_FACTORY_RESET_HEADING }, 413 { "factoryResetHeading", IDS_OPTIONS_FACTORY_RESET_HEADING },
414 { "factoryResetTitle", IDS_OPTIONS_FACTORY_RESET }, 414 { "factoryResetTitle", IDS_OPTIONS_FACTORY_RESET },
415 { "factoryResetRestart", IDS_OPTIONS_FACTORY_RESET_BUTTON }, 415 { "factoryResetRestart", IDS_OPTIONS_FACTORY_RESET_BUTTON },
416 { "factoryResetDataRestart", IDS_RELAUNCH_BUTTON }, 416 { "factoryResetDataRestart", IDS_RELAUNCH_BUTTON },
417 { "factoryResetWarning", IDS_OPTIONS_FACTORY_RESET_WARNING }, 417 { "factoryResetWarning", IDS_OPTIONS_FACTORY_RESET_WARNING },
418 { "factoryResetHelpUrl", IDS_FACTORY_RESET_HELP_URL }, 418 { "factoryResetHelpUrl", IDS_FACTORY_RESET_HELP_URL },
419 { "changePicture", IDS_OPTIONS_CHANGE_PICTURE }, 419 { "changePicture", IDS_OPTIONS_CHANGE_PICTURE },
420 { "changePictureCaption", IDS_OPTIONS_CHANGE_PICTURE_CAPTION }, 420 { "changePictureCaption", IDS_OPTIONS_CHANGE_PICTURE_CAPTION },
421 { "datetimeTitle", IDS_OPTIONS_SETTINGS_SECTION_TITLE_DATETIME }, 421 { "datetimeTitle", IDS_OPTIONS_SETTINGS_SECTION_TITLE_DATETIME },
422 { "deviceGroupDescription", IDS_OPTIONS_DEVICE_GROUP_DESCRIPTION }, 422 { "deviceGroupDescription", IDS_OPTIONS_DEVICE_GROUP_DESCRIPTION },
423 { "powerSettingsButton",
424 IDS_OPTIONS_DEVICE_GROUP_POWER_SETTINGS_BUTTON },
423 { "deviceGroupPointer", IDS_OPTIONS_DEVICE_GROUP_POINTER_SECTION }, 425 { "deviceGroupPointer", IDS_OPTIONS_DEVICE_GROUP_POINTER_SECTION },
424 { "mouseSpeed", IDS_OPTIONS_SETTINGS_MOUSE_SPEED_DESCRIPTION }, 426 { "mouseSpeed", IDS_OPTIONS_SETTINGS_MOUSE_SPEED_DESCRIPTION },
425 { "touchpadSpeed", IDS_OPTIONS_SETTINGS_TOUCHPAD_SPEED_DESCRIPTION }, 427 { "touchpadSpeed", IDS_OPTIONS_SETTINGS_TOUCHPAD_SPEED_DESCRIPTION },
426 { "enableScreenlock", IDS_OPTIONS_ENABLE_SCREENLOCKER_CHECKBOX }, 428 { "enableScreenlock", IDS_OPTIONS_ENABLE_SCREENLOCKER_CHECKBOX },
427 { "internetOptionsButtonTitle", IDS_OPTIONS_INTERNET_OPTIONS_BUTTON_TITLE }, 429 { "internetOptionsButtonTitle", IDS_OPTIONS_INTERNET_OPTIONS_BUTTON_TITLE },
428 { "keyboardSettingsButtonTitle", 430 { "keyboardSettingsButtonTitle",
429 IDS_OPTIONS_DEVICE_GROUP_KEYBOARD_SETTINGS_BUTTON_TITLE }, 431 IDS_OPTIONS_DEVICE_GROUP_KEYBOARD_SETTINGS_BUTTON_TITLE },
430 { "manageAccountsButtonTitle", IDS_OPTIONS_ACCOUNTS_BUTTON_TITLE }, 432 { "manageAccountsButtonTitle", IDS_OPTIONS_ACCOUNTS_BUTTON_TITLE },
431 { "noPointingDevices", IDS_OPTIONS_NO_POINTING_DEVICES }, 433 { "noPointingDevices", IDS_OPTIONS_NO_POINTING_DEVICES },
432 { "sectionTitleDevice", IDS_OPTIONS_DEVICE_GROUP_NAME }, 434 { "sectionTitleDevice", IDS_OPTIONS_DEVICE_GROUP_NAME },
(...skipping 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after
1974 1976
1975 void BrowserOptionsHandler::SetMetricsReportingCheckbox(bool checked, 1977 void BrowserOptionsHandler::SetMetricsReportingCheckbox(bool checked,
1976 bool disabled) { 1978 bool disabled) {
1977 web_ui()->CallJavascriptFunction( 1979 web_ui()->CallJavascriptFunction(
1978 "BrowserOptions.setMetricsReportingCheckboxState", 1980 "BrowserOptions.setMetricsReportingCheckboxState",
1979 base::FundamentalValue(checked), 1981 base::FundamentalValue(checked),
1980 base::FundamentalValue(disabled)); 1982 base::FundamentalValue(disabled));
1981 } 1983 }
1982 1984
1983 } // namespace options 1985 } // namespace options
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/options_bundle.js ('k') | chrome/browser/ui/webui/options/chromeos/power_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698