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

Unified Diff: ui/views/examples/widget_example.cc

Issue 1963563002: Views: Flip default value of CustomButton::request_focus_on_press_ to false. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/examples/tree_view_example.cc ('k') | ui/views/touchui/touch_selection_menu_runner_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/widget_example.cc
diff --git a/ui/views/examples/widget_example.cc b/ui/views/examples/widget_example.cc
index 8d9e12c453e1a2c0a2e5fc4090859ba955643642..8ef5e6187616e7017211cce9100ae7d27131c9c4 100644
--- a/ui/views/examples/widget_example.cc
+++ b/ui/views/examples/widget_example.cc
@@ -88,6 +88,7 @@ void WidgetExample::BuildButton(View* container,
int tag) {
LabelButton* button = new LabelButton(this, ASCIIToUTF16(label));
Button::ConfigureDefaultFocus(button);
+ button->set_request_focus_on_press(true);
button->set_tag(tag);
container->AddChildView(button);
}
« no previous file with comments | « ui/views/examples/tree_view_example.cc ('k') | ui/views/touchui/touch_selection_menu_runner_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698