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

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

Issue 1898633004: Views: Add new SetFocusBehavior method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 4 years, 8 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/button_example.cc ('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 5da97f755bb70c048db88b025587d7aa710103bc..ddf69aef6c35849b13d429326daf7a6bf23a6f3f 100644
--- a/ui/views/examples/tree_view_example.cc
+++ b/ui/views/examples/tree_view_example.cc
@@ -47,11 +47,11 @@ void TreeViewExample::CreateExampleView(View* container) {
tree_view_->SetModel(&model_);
tree_view_->SetController(this);
add_ = new LabelButton(this, ASCIIToUTF16("Add"));
- add_->SetFocusable(true);
+ add_->SetFocusBehavior(View::FocusBehavior::ALWAYS);
remove_ = new LabelButton(this, ASCIIToUTF16("Remove"));
- remove_->SetFocusable(true);
+ remove_->SetFocusBehavior(View::FocusBehavior::ALWAYS);
change_title_ = new LabelButton(this, ASCIIToUTF16("Change Title"));
- change_title_->SetFocusable(true);
+ change_title_->SetFocusBehavior(View::FocusBehavior::ALWAYS);
GridLayout* layout = new GridLayout(container);
container->SetLayoutManager(layout);
« no previous file with comments | « ui/views/examples/button_example.cc ('k') | ui/views/examples/widget_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698