Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: ui/views/examples/button_sticker_sheet.h

Issue 2296343004: views_examples: add Button sticker sheet (Closed)
Patch Set: add md warning Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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`.
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698