| 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..34e1bc80ee01f2a9841bf1ece90a2425ba6d1eeb 100644
|
| --- a/ui/views/examples/tree_view_example.cc
|
| +++ b/ui/views/examples/tree_view_example.cc
|
| @@ -10,6 +10,7 @@
|
| #include "ui/views/controls/menu/menu_runner.h"
|
| #include "ui/views/controls/tree/tree_view.h"
|
| #include "ui/views/layout/grid_layout.h"
|
| +#include "ui/views/style/platform_style.h"
|
|
|
| using base::ASCIIToUTF16;
|
|
|
| @@ -47,11 +48,11 @@ void TreeViewExample::CreateExampleView(View* container) {
|
| tree_view_->SetModel(&model_);
|
| tree_view_->SetController(this);
|
| add_ = new LabelButton(this, ASCIIToUTF16("Add"));
|
| - add_->SetFocusable(true);
|
| + PlatformStyle::ConfigureFocus(PlatformStyle::CONTROL::BUTTON, add_);
|
| remove_ = new LabelButton(this, ASCIIToUTF16("Remove"));
|
| - remove_->SetFocusable(true);
|
| + PlatformStyle::ConfigureFocus(PlatformStyle::CONTROL::BUTTON, remove_);
|
| change_title_ = new LabelButton(this, ASCIIToUTF16("Change Title"));
|
| - change_title_->SetFocusable(true);
|
| + PlatformStyle::ConfigureFocus(PlatformStyle::CONTROL::BUTTON, change_title_);
|
|
|
| GridLayout* layout = new GridLayout(container);
|
| container->SetLayoutManager(layout);
|
|
|