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

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

Issue 2855093002: Remove a new usage of LabelButton::SetStyle (in ChromeCleanerDialog). (Closed)
Patch Set: views:: Created 3 years, 7 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/controls/button/md_text_button.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/button_example.cc
diff --git a/ui/views/examples/button_example.cc b/ui/views/examples/button_example.cc
index b2d5fc8791a26bf039f4f6707202c1ac65545524..8075f1a7fd35599bd2379323c28b49cc1abf4d0b 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->AddChildView(label_button_);
styled_button_ = new LabelButton(this, ASCIIToUTF16("Styled Button"));
- styled_button_->SetStyle(Button::STYLE_BUTTON);
+ styled_button_->SetStyleDeprecated(Button::STYLE_BUTTON);
container->AddChildView(styled_button_);
disabled_button_ = new LabelButton(this, ASCIIToUTF16("Disabled Button"));
- disabled_button_->SetStyle(Button::STYLE_BUTTON);
+ disabled_button_->SetStyleDeprecated(Button::STYLE_BUTTON);
disabled_button_->SetState(Button::STATE_DISABLED);
container->AddChildView(disabled_button_);
@@ -108,7 +108,7 @@ void ButtonExample::LabelButtonPressed(LabelButton* label_button,
? label_button_->SetFocusBehavior(View::FocusBehavior::NEVER)
: label_button_->SetFocusForPlatform();
} else {
- label_button->SetStyle(static_cast<Button::ButtonStyle>(
+ label_button->SetStyleDeprecated(static_cast<Button::ButtonStyle>(
(label_button->style() + 1) % Button::STYLE_COUNT));
}
} else if (event.IsAltDown()) {
« no previous file with comments | « ui/views/controls/button/md_text_button.cc ('k') | ui/views/examples/widget_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698