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

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

Issue 371633002: LabelButton: cache the last computed preferred size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 5 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/label_button_unittest.cc ('k') | ui/views/window/dialog_client_view.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 1756cf04fdd459a15854d2340a20cb67adc18567..66bb7a1594d34deb70c8a1baa97f5eb01868ff4d 100644
--- a/ui/views/examples/button_example.cc
+++ b/ui/views/examples/button_example.cc
@@ -101,7 +101,7 @@ void ButtonExample::LabelButtonPressed(const ui::Event& event) {
} else if (event.IsAltDown()) {
label_button_->SetIsDefault(!label_button_->is_default());
} else {
- label_button_->set_min_size(gfx::Size());
+ label_button_->SetMinSize(gfx::Size());
}
example_view()->GetLayoutManager()->Layout(example_view());
}
« no previous file with comments | « ui/views/controls/button/label_button_unittest.cc ('k') | ui/views/window/dialog_client_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698