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

Unified Diff: ui/views/examples/button_example.h

Issue 2744463002: Add VectorIconButton functionality to ImageButton. (Closed)
Patch Set: fix cros build Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/examples/button_example.h
diff --git a/ui/views/examples/button_example.h b/ui/views/examples/button_example.h
index dac61aa3d829d88f2c7a092735a48ac18ff7c235..7869f1fb40611fa95b9479a2e301a140803a7521 100644
--- a/ui/views/examples/button_example.h
+++ b/ui/views/examples/button_example.h
@@ -7,6 +7,7 @@
#include "base/macros.h"
#include "ui/views/controls/button/button.h"
+#include "ui/views/controls/button/image_button.h"
#include "ui/views/examples/example_base.h"
namespace views {
@@ -19,7 +20,7 @@ namespace examples {
// ButtonExample simply counts the number of clicks.
class VIEWS_EXAMPLES_EXPORT ButtonExample : public ExampleBase,
- public ButtonListener {
+ public ImageButtonDelegate {
public:
ButtonExample();
~ButtonExample() override;
@@ -30,7 +31,7 @@ class VIEWS_EXAMPLES_EXPORT ButtonExample : public ExampleBase,
private:
void LabelButtonPressed(LabelButton* label_button, const ui::Event& event);
- // ButtonListener:
+ // ImageButtonDelegate:
void ButtonPressed(Button* sender, const ui::Event& event) override;
// Example buttons.

Powered by Google App Engine
This is Rietveld 408576698