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

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

Issue 108063004: Give up focus if the focused view becomes unfocusable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Extracted to common code into FocusManager class Created 7 years 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
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 a7a51cbaf4506299777cfb2977e99cb9ddb66d48..6dfc55859749cb6818ebd44f19c39f89e87c979e 100644
--- a/ui/views/examples/tree_view_example.cc
+++ b/ui/views/examples/tree_view_example.cc
@@ -45,11 +45,11 @@ void TreeViewExample::CreateExampleView(View* container) {
tree_view_->SetModel(&model_);
tree_view_->SetController(this);
add_ = new LabelButton(this, ASCIIToUTF16("Add"));
- add_->set_focusable(true);
+ add_->SetFocusable(true);
remove_ = new LabelButton(this, ASCIIToUTF16("Remove"));
- remove_->set_focusable(true);
+ remove_->SetFocusable(true);
change_title_ = new LabelButton(this, ASCIIToUTF16("Change Title"));
- change_title_->set_focusable(true);
+ change_title_->SetFocusable(true);
GridLayout* layout = new GridLayout(container);
container->SetLayoutManager(layout);

Powered by Google App Engine
This is Rietveld 408576698