blob: f146df6c5635d1d72e7ad4cc650438fc244d9448 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_VIEWS_EXAMPLES_BUBBLE_EXAMPLE_H_
#define UI_VIEWS_EXAMPLES_BUBBLE_EXAMPLE_H_
#include "base/macros.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 {
// A Bubble example.
class VIEWS_EXAMPLES_EXPORT BubbleExample : public ExampleBase {
public:
BubbleExample();
~BubbleExample() override;
// ExampleBase:
void CreateExampleView(View* container) override;
private:
void ShowBubble(Button** button,
BubbleBorder::Shadow shadow,
bool persistent,
const ui::Event& event);
Button* no_shadow_;
Button* no_shadow_opaque_;
Button* big_shadow_;
Button* small_shadow_;
Button* no_assets_;
Button* persistent_;
DISALLOW_COPY_AND_ASSIGN(BubbleExample);
};
} // namespace examples
} // namespace views
#endif // UI_VIEWS_EXAMPLES_BUBBLE_EXAMPLE_H_
|