| // Copyright 2011 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef UI_VIEWS_EXAMPLES_RADIO_BUTTON_EXAMPLE_H_ |
| #define UI_VIEWS_EXAMPLES_RADIO_BUTTON_EXAMPLE_H_ |
| |
| #include <vector> |
| |
| #include "base/memory/raw_ptr.h" |
| #include "ui/views/examples/example_base.h" |
| |
| namespace views { |
| |
| class RadioButton; |
| |
| namespace examples { |
| |
| class VIEWS_EXAMPLES_EXPORT RadioButtonExample : public ExampleBase { |
| public: |
| RadioButtonExample(); |
| |
| RadioButtonExample(const RadioButtonExample&) = delete; |
| RadioButtonExample& operator=(const RadioButtonExample&) = delete; |
| |
| ~RadioButtonExample() override; |
| |
| // ExampleBase: |
| void CreateExampleView(View* container) override; |
| |
| private: |
| void StatusButtonPressed(); |
| |
| // Group of 3 radio buttons. |
| std::vector<raw_ptr<RadioButton, VectorExperimental>> radio_buttons_; |
| }; |
| |
| } // namespace examples |
| } // namespace views |
| |
| #endif // UI_VIEWS_EXAMPLES_RADIO_BUTTON_EXAMPLE_H_ |