| Index: ui/views/examples/progress_bar_example.cc
|
| diff --git a/ui/views/examples/progress_bar_example.cc b/ui/views/examples/progress_bar_example.cc
|
| index b2f03bf54e0c7cad7adcb8ac855b47d98a7e513a..e3688e3a1ee64a5479bb314302060c46d98bd59b 100644
|
| --- a/ui/views/examples/progress_bar_example.cc
|
| +++ b/ui/views/examples/progress_bar_example.cc
|
| @@ -16,7 +16,7 @@ namespace {
|
|
|
| const double kStepSize = 0.1;
|
|
|
| -double ClampToMin(double percent) {
|
| +double ClampToLowerBound(double percent) {
|
| return std::min(std::max(percent, 0.0), 1.0);
|
| }
|
|
|
| @@ -61,9 +61,9 @@ void ProgressBarExample::CreateExampleView(View* container) {
|
|
|
| void ProgressBarExample::ButtonPressed(Button* sender, const ui::Event& event) {
|
| if (sender == minus_button_)
|
| - current_percent_ = ClampToMin(current_percent_ - kStepSize);
|
| + current_percent_ = ClampToLowerBound(current_percent_ - kStepSize);
|
| else if (sender == plus_button_)
|
| - current_percent_ = ClampToMin(current_percent_ + kStepSize);
|
| + current_percent_ = ClampToLowerBound(current_percent_ + kStepSize);
|
|
|
| progress_bar_->SetValue(current_percent_);
|
| }
|
|
|