OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef UI_VIEWS_EXAMPLES_BUTTON_STICKER_SHEET_H_ | |
6 #define UI_VIEWS_EXAMPLES_BUTTON_STICKER_SHEET_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "ui/views/controls/button/button.h" | |
10 #include "ui/views/examples/example_base.h" | |
11 | |
12 namespace views { | |
13 namespace examples { | |
14 | |
15 // An "example" that displays a sticker sheet of all the available material | |
16 // design button styles. This example only looks right with `--secondary-ui-md`. | |
sky
2016/09/01 19:28:40
I think you should show some warning text at the b
Elly Fong-Jones
2016/09/02 11:29:39
Done.
| |
17 // It is designed to be as visually similar to the UI Harmony spec's sticker | |
18 // sheet for buttons as possible. | |
19 class VIEWS_EXAMPLES_EXPORT ButtonStickerSheet : public ExampleBase, | |
20 public ButtonListener { | |
21 public: | |
22 ButtonStickerSheet(); | |
23 ~ButtonStickerSheet() override; | |
24 | |
25 // ExampleBase: | |
26 void CreateExampleView(View* container) override; | |
27 | |
28 // ButtonListener: | |
29 void ButtonPressed(Button* sender, const ui::Event& event) override; | |
30 | |
31 private: | |
32 DISALLOW_COPY_AND_ASSIGN(ButtonStickerSheet); | |
33 }; | |
34 | |
35 } // namespace examples | |
36 } // namespace views | |
37 | |
38 #endif // UI_VIEWS_EXAMPLES_BUTTON_STICKER_SHEET_H_ | |
OLD | NEW |