|
Views: Flip default value of CustomButton::request_focus_on_press_ to false.
CustomButton::request_focus_on_press_ has a default value of true currently.
Since View::RequestFocus uses IsFocusable() when keyboard accessibility is off
(i.e. on Non-Mac platforms), hence only buttons with FocusBehavior::ALWAYS can
actually gain focus if they have request_focus_on_press_ set to true. Most
CustomButton subclasses like say ToolbarButton or TabCloseButton, which have
FocusBehavior::ACCESSIBLE_ONLY, rely on this behavior and do not explicitly
override request_focus_on_press_ to false.
This CL corrects the request_focus_on_press_ value on the CustomButton
subclasses by flipping the default value to false. Since only buttons with
request_focus_on_press_ set to true and having FocusBehavior::ALWAYS are
intended to gain focus on a mouse press, all ConfigureDefaultFocus call sites
are examined and set_request_focus_on_press is set to the appropriate value.
BUG=NONE
Committed: https://crrev.com/2380985ecba0f27f2a6c7406121c76dd59ed711b
Cr-Commit-Position: refs/heads/master@{#394020}
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+30 lines, -27 lines) |
Patch |
|
M |
ash/shell/lock_view.cc
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
ash/system/tray/tray_popup_header_button.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
ash/system/tray/tray_popup_label_button.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
ash/system/user/user_view.cc
|
View
|
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/options/wifi_config_view.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/options/wimax_config_view.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/apps/app_info_dialog/app_info_permissions_panel.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/find_bar_view.cc
|
View
|
|
3 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/infobars/infobar_view.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/profiles/profile_chooser_view.cc
|
View
|
1
2
3
|
3 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.cc
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/toolbar/app_menu.cc
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/toolbar/toolbar_action_view.cc
|
View
|
|
1 chunk |
+2 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/website_settings/chosen_object_view.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/website_settings/permission_selector_view.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
ui/app_list/views/app_list_item_view.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
ui/app_list/views/folder_header_view.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
ui/message_center/views/message_center_button_bar.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
ui/message_center/views/notification_button.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
ui/message_center/views/notifier_settings_view.cc
|
View
|
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ui/message_center/views/padded_button.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
ui/views/controls/button/checkbox.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/controls/button/custom_button.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ui/views/controls/button/custom_button.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ui/views/controls/button/label_button.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/examples/button_example.cc
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/examples/tree_view_example.h
|
View
|
1
|
2 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
ui/views/examples/tree_view_example.cc
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/examples/widget_example.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/touchui/touch_selection_menu_runner_views.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 38 (18 generated)
|