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

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

Issue 2483753003: views examples: remove obsolete CTA button example (Closed)
Patch Set: remove md_prominent_button_ Created 4 years, 1 month 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
« no previous file with comments | « no previous file | ui/views/examples/button_example.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_EXAMPLES_BUTTON_EXAMPLE_H_ 5 #ifndef UI_VIEWS_EXAMPLES_BUTTON_EXAMPLE_H_
6 #define UI_VIEWS_EXAMPLES_BUTTON_EXAMPLE_H_ 6 #define UI_VIEWS_EXAMPLES_BUTTON_EXAMPLE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/views/controls/button/button.h" 9 #include "ui/views/controls/button/button.h"
10 #include "ui/views/examples/example_base.h" 10 #include "ui/views/examples/example_base.h"
(...skipping 21 matching lines...) Expand all
32 32
33 // ButtonListener: 33 // ButtonListener:
34 void ButtonPressed(Button* sender, const ui::Event& event) override; 34 void ButtonPressed(Button* sender, const ui::Event& event) override;
35 35
36 // Example buttons. 36 // Example buttons.
37 LabelButton* label_button_ = nullptr; 37 LabelButton* label_button_ = nullptr;
38 LabelButton* styled_button_ = nullptr; 38 LabelButton* styled_button_ = nullptr;
39 LabelButton* disabled_button_ = nullptr; 39 LabelButton* disabled_button_ = nullptr;
40 MdTextButton* md_button_ = nullptr; 40 MdTextButton* md_button_ = nullptr;
41 MdTextButton* md_default_button_ = nullptr; 41 MdTextButton* md_default_button_ = nullptr;
42 MdTextButton* md_prominent_button_ = nullptr;
43 ImageButton* image_button_ = nullptr; 42 ImageButton* image_button_ = nullptr;
44 43
45 const gfx::ImageSkia* icon_ = nullptr; 44 const gfx::ImageSkia* icon_ = nullptr;
46 45
47 // The number of times the buttons are pressed. 46 // The number of times the buttons are pressed.
48 int count_ = 0; 47 int count_ = 0;
49 48
50 DISALLOW_COPY_AND_ASSIGN(ButtonExample); 49 DISALLOW_COPY_AND_ASSIGN(ButtonExample);
51 }; 50 };
52 51
53 } // namespace examples 52 } // namespace examples
54 } // namespace views 53 } // namespace views
55 54
56 #endif // UI_VIEWS_EXAMPLES_BUTTON_EXAMPLE_H_ 55 #endif // UI_VIEWS_EXAMPLES_BUTTON_EXAMPLE_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/examples/button_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698