WebUI: Do not show focus ring for radio buttons and checkboxes updated by labels.
commit859724c82f74f05a2eb1e3600bf5ada6684b5c31
authortkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 31 Jul 2013 07:22:47 +0000 (31 07:22 +0000)
committertkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 31 Jul 2013 07:22:47 +0000 (31 07:22 +0000)
treec4b93129fb1dcde560e91016a8b87371ef03f5cc
parent523d89f42476e3de415d4a8faa11c812488e1b7f
WebUI: Do not show focus ring for radio buttons and checkboxes updated by labels.

This is a follow-up change for the behavior change by Blink r153039.

Settings page, extension setting page, and feedback page contains some
radio buttons and checkboxes associated with label elements, and we don't
want to show focus rings for them if they are mouse-clicked.

Canceling focus like crrev.com/213584 for each of labels is unrealistic.
So, we allow to focus on radio buttons and checkboxes, but don't show
focus ring for them with FocusOutlineManager.

The purpose of OptionsPage.showOverlay_ change is to avoid to focus on a
link in an overlay if we have a focused element without focus ring in the
base document.

BUG=264144,264567,264668,265327,266159
R=arv@chromium.org

Review URL: https://codereview.chromium.org/20556003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214614 0039d316-1c4b-4281-b951-d872f2087c98
14 files changed:
chrome/browser/resources/extensions/extensions.css
chrome/browser/resources/extensions/extensions.html
chrome/browser/resources/extensions/extensions.js
chrome/browser/resources/feedback.css
chrome/browser/resources/feedback.html
chrome/browser/resources/feedback.js
chrome/browser/resources/options/options.html
chrome/browser/resources/options/options_page.css
chrome/browser/resources/options/options_page.js
chrome/browser/resources/policy.css
chrome/browser/resources/policy.html
chrome/browser/resources/policy.js
chrome/browser/resources/sync_setup_overlay.js
ui/webui/resources/js/cr/ui/focus_outline_manager.js