| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "views/examples/slider_example.h" | 5 #include "views/examples/slider_example.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "views/fill_layout.h" | 8 #include "views/layout/fill_layout.h" |
| 9 | 9 |
| 10 namespace examples { | 10 namespace examples { |
| 11 | 11 |
| 12 SliderExample::SliderExample(ExamplesMain* main) : ExampleBase(main) { | 12 SliderExample::SliderExample(ExamplesMain* main) : ExampleBase(main) { |
| 13 } | 13 } |
| 14 | 14 |
| 15 SliderExample::~SliderExample() { | 15 SliderExample::~SliderExample() { |
| 16 } | 16 } |
| 17 | 17 |
| 18 std::wstring SliderExample::GetExampleTitle() { | 18 std::wstring SliderExample::GetExampleTitle() { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 30 container->SetLayoutManager(new views::FillLayout); | 30 container->SetLayoutManager(new views::FillLayout); |
| 31 container->AddChildView(slider_); | 31 container->AddChildView(slider_); |
| 32 #endif | 32 #endif |
| 33 } | 33 } |
| 34 | 34 |
| 35 void SliderExample::SliderValueChanged(views::Slider* sender) { | 35 void SliderExample::SliderValueChanged(views::Slider* sender) { |
| 36 PrintStatus(L"Value: %.1f", sender->value()); | 36 PrintStatus(L"Value: %.1f", sender->value()); |
| 37 } | 37 } |
| 38 | 38 |
| 39 } // namespace examples | 39 } // namespace examples |
| OLD | NEW |