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

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

Issue 103493005: Rename View::set_focusable and View::set_accessibility_focusable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added a few missing files 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
« no previous file with comments | « ui/views/controls/tree/tree_view.cc ('k') | ui/views/examples/tree_view_example.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « ui/views/controls/tree/tree_view.cc ('k') | ui/views/examples/tree_view_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698