#ifndef UI_VIEWS_EXAMPLES_BUBBLE_EXAMPLE_H_
#define UI_VIEWS_EXAMPLES_BUBBLE_EXAMPLE_H_
#include "base/memory/raw_ptr_exclusion.h"
#include "ui/events/event.h"
#include "ui/views/bubble/bubble_border.h"
#include "ui/views/examples/example_base.h"
#include "ui/views/examples/views_examples_export.h"
namespace views {
class Button;
namespace examples {
class VIEWS_EXAMPLES_EXPORT BubbleExample : public ExampleBase {
public:
BubbleExample();
BubbleExample(const BubbleExample&) = delete;
BubbleExample& operator=(const BubbleExample&) = delete;
~BubbleExample() override;
void CreateExampleView(View* container) override;
private:
void ShowBubble(Button** button,
BubbleBorder::Shadow shadow,
bool persistent,
const ui::Event& event);
RAW_PTR_EXCLUSION Button* standard_shadow_;
RAW_PTR_EXCLUSION Button* no_shadow_;
RAW_PTR_EXCLUSION Button* persistent_;
};
}
}
#endif