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

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

Issue 27196006: Add autoclick to settings page under the accessibility section. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add flag to chrome://flags Created 7 years, 2 months 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 | Annotate | Revision Log
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 "apps/shell_window.h" 10 #include "apps/shell_window.h"
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 { "accessibilityStickyKeys", 339 { "accessibilityStickyKeys",
340 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_STICKY_KEYS_DESCRIPTION }, 340 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_STICKY_KEYS_DESCRIPTION },
341 { "accessibilitySpokenFeedback", 341 { "accessibilitySpokenFeedback",
342 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SPOKEN_FEEDBACK_DESCRIPTION }, 342 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SPOKEN_FEEDBACK_DESCRIPTION },
343 { "accessibilityTitle", 343 { "accessibilityTitle",
344 IDS_OPTIONS_SETTINGS_SECTION_TITLE_ACCESSIBILITY }, 344 IDS_OPTIONS_SETTINGS_SECTION_TITLE_ACCESSIBILITY },
345 { "accessibilityVirtualKeyboard", 345 { "accessibilityVirtualKeyboard",
346 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_VIRTUAL_KEYBOARD_DESCRIPTION }, 346 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_VIRTUAL_KEYBOARD_DESCRIPTION },
347 { "accessibilityAlwaysShowMenu", 347 { "accessibilityAlwaysShowMenu",
348 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SHOULD_ALWAYS_SHOW_MENU }, 348 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SHOULD_ALWAYS_SHOW_MENU },
349 { "accessibilityAutoclick",
350 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_AUTOCLICK_DESCRIPTION },
351 { "accessibilityAutoclickDropdown",
352 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_AUTOCLICK_DROPDOWN_DESCRIPTION },
353 { "autoclickDelayExtremelyShort",
354 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_AUTOCLICK_DELAY_EXTREMELY_SHORT },
355 { "autoclickDelayVeryShort",
356 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_AUTOCLICK_DELAY_VERY_SHORT },
357 { "autoclickDelayShort",
358 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_AUTOCLICK_DELAY_SHORT },
359 { "autoclickDelayLong",
360 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_AUTOCLICK_DELAY_LONG },
361 { "autoclickDelayVeryLong",
362 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_AUTOCLICK_DELAY_VERY_LONG },
349 { "enableContentProtectionAttestation", 363 { "enableContentProtectionAttestation",
350 IDS_OPTIONS_ENABLE_CONTENT_PROTECTION_ATTESTATION }, 364 IDS_OPTIONS_ENABLE_CONTENT_PROTECTION_ATTESTATION },
351 { "factoryResetHeading", IDS_OPTIONS_FACTORY_RESET_HEADING }, 365 { "factoryResetHeading", IDS_OPTIONS_FACTORY_RESET_HEADING },
352 { "factoryResetTitle", IDS_OPTIONS_FACTORY_RESET }, 366 { "factoryResetTitle", IDS_OPTIONS_FACTORY_RESET },
353 { "factoryResetRestart", IDS_OPTIONS_FACTORY_RESET_BUTTON }, 367 { "factoryResetRestart", IDS_OPTIONS_FACTORY_RESET_BUTTON },
354 { "factoryResetDataRestart", IDS_RELAUNCH_BUTTON }, 368 { "factoryResetDataRestart", IDS_RELAUNCH_BUTTON },
355 { "factoryResetWarning", IDS_OPTIONS_FACTORY_RESET_WARNING }, 369 { "factoryResetWarning", IDS_OPTIONS_FACTORY_RESET_WARNING },
356 { "factoryResetHelpUrl", IDS_FACTORY_RESET_HELP_URL }, 370 { "factoryResetHelpUrl", IDS_FACTORY_RESET_HELP_URL },
357 { "changePicture", IDS_OPTIONS_CHANGE_PICTURE_CAPTION }, 371 { "changePicture", IDS_OPTIONS_CHANGE_PICTURE_CAPTION },
358 { "datetimeTitle", IDS_OPTIONS_SETTINGS_SECTION_TITLE_DATETIME }, 372 { "datetimeTitle", IDS_OPTIONS_SETTINGS_SECTION_TITLE_DATETIME },
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 option_partial->AppendInteger(ash::MAGNIFIER_PARTIAL); 499 option_partial->AppendInteger(ash::MAGNIFIER_PARTIAL);
486 option_partial->Append(new base::StringValue(l10n_util::GetStringUTF16( 500 option_partial->Append(new base::StringValue(l10n_util::GetStringUTF16(
487 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SCREEN_MAGNIFIER_PARTIAL))); 501 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SCREEN_MAGNIFIER_PARTIAL)));
488 magnifier_list->Append(option_partial.release()); 502 magnifier_list->Append(option_partial.release());
489 503
490 values->Set("magnifierList", magnifier_list.release()); 504 values->Set("magnifierList", magnifier_list.release());
491 505
492 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 506 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
493 values->SetBoolean("enableStickyKeys", 507 values->SetBoolean("enableStickyKeys",
494 command_line.HasSwitch(switches::kEnableStickyKeys)); 508 command_line.HasSwitch(switches::kEnableStickyKeys));
509 values->SetBoolean("enableAutoclick",
510 command_line.HasSwitch(
511 chromeos::switches::kEnableAutoclick));
495 #endif 512 #endif
496 513
497 #if defined(OS_MACOSX) 514 #if defined(OS_MACOSX)
498 values->SetString("macPasswordsWarning", 515 values->SetString("macPasswordsWarning",
499 l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_MAC_WARNING)); 516 l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_MAC_WARNING));
500 values->SetBoolean("multiple_profiles", 517 values->SetBoolean("multiple_profiles",
501 g_browser_process->profile_manager()->GetNumberOfProfiles() > 1); 518 g_browser_process->profile_manager()->GetNumberOfProfiles() > 1);
502 #endif 519 #endif
503 520
504 if (ShouldShowMultiProfilesUserList(helper::GetDesktopType(web_ui()))) 521 if (ShouldShowMultiProfilesUserList(helper::GetDesktopType(web_ui())))
(...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after
1551 base::FundamentalValue disabled(is_win_ash || (proxy_config && 1568 base::FundamentalValue disabled(is_win_ash || (proxy_config &&
1552 !proxy_config->IsUserModifiable())); 1569 !proxy_config->IsUserModifiable()));
1553 base::FundamentalValue extension_controlled(is_extension_controlled); 1570 base::FundamentalValue extension_controlled(is_extension_controlled);
1554 web_ui()->CallJavascriptFunction("BrowserOptions.setupProxySettingsSection", 1571 web_ui()->CallJavascriptFunction("BrowserOptions.setupProxySettingsSection",
1555 disabled, extension_controlled); 1572 disabled, extension_controlled);
1556 1573
1557 #endif // !defined(OS_CHROMEOS) 1574 #endif // !defined(OS_CHROMEOS)
1558 } 1575 }
1559 1576
1560 } // namespace options 1577 } // namespace options
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698