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

Unified Diff: ui/views/examples/tree_view_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.h ('k') | ui/views/examples/widget_example.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/tree_view_example.cc
diff --git a/ui/views/examples/tree_view_example.cc b/ui/views/examples/tree_view_example.cc
index b67f51940641ee10b463755f3b909b669e1a78ee..50a1357609446617eb1c76bef64fcd2e5d12bb18 100644
--- a/ui/views/examples/tree_view_example.cc
+++ b/ui/views/examples/tree_view_example.cc
@@ -48,10 +48,13 @@ void TreeViewExample::CreateExampleView(View* container) {
tree_view_->SetController(this);
add_ = new LabelButton(this, ASCIIToUTF16("Add"));
Button::ConfigureDefaultFocus(add_);
+ add_->set_request_focus_on_press(true);
remove_ = new LabelButton(this, ASCIIToUTF16("Remove"));
Button::ConfigureDefaultFocus(remove_);
+ remove_->set_request_focus_on_press(true);
change_title_ = new LabelButton(this, ASCIIToUTF16("Change Title"));
Button::ConfigureDefaultFocus(change_title_);
+ change_title_->set_request_focus_on_press(true);
GridLayout* layout = new GridLayout(container);
container->SetLayoutManager(layout);
« no previous file with comments | « ui/views/examples/tree_view_example.h ('k') | ui/views/examples/widget_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698