| Index: ui/views/examples/button_example.cc
|
| diff --git a/ui/views/examples/button_example.cc b/ui/views/examples/button_example.cc
|
| index 1bff5901661277e429106038d05d8335330591ab..a791559982a0ed60108a2413751b67c18be47481 100644
|
| --- a/ui/views/examples/button_example.cc
|
| +++ b/ui/views/examples/button_example.cc
|
| @@ -49,11 +49,11 @@ void ButtonExample::CreateExampleView(View* container) {
|
| container->SetLayoutManager(new BoxLayout(BoxLayout::kVertical, 10, 10, 10));
|
|
|
| text_button_ = new TextButton(this, ASCIIToUTF16(kTextButton));
|
| - text_button_->set_focusable(true);
|
| + text_button_->SetFocusable(true);
|
| container->AddChildView(text_button_);
|
|
|
| label_button_ = new LabelButton(this, ASCIIToUTF16(kLabelButton));
|
| - label_button_->set_focusable(true);
|
| + label_button_->SetFocusable(true);
|
| container->AddChildView(label_button_);
|
|
|
| LabelButton* disabled_button =
|
| @@ -66,7 +66,7 @@ void ButtonExample::CreateExampleView(View* container) {
|
|
|
| ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
|
| image_button_ = new ImageButton(this);
|
| - image_button_->set_focusable(true);
|
| + image_button_->SetFocusable(true);
|
| image_button_->SetImage(ImageButton::STATE_NORMAL,
|
| rb.GetImageNamed(IDR_CLOSE).ToImageSkia());
|
| image_button_->SetImage(ImageButton::STATE_HOVERED,
|
| @@ -161,7 +161,7 @@ void ButtonExample::LabelButtonPressed(const ui::Event& event) {
|
| }
|
| } else if (event.IsShiftDown()) {
|
| if (event.IsAltDown()) {
|
| - label_button_->set_focusable(!label_button_->focusable());
|
| + label_button_->SetFocusable(!label_button_->focusable());
|
| } else {
|
| label_button_->SetStyle(static_cast<Button::ButtonStyle>(
|
| (label_button_->style() + 1) % Button::STYLE_COUNT));
|
|
|