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

Unified Diff: ui/views/controls/button/custom_button.h

Issue 872473004: views: Remove dead code in CustomButton. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | ui/views/controls/button/custom_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/custom_button.h
diff --git a/ui/views/controls/button/custom_button.h b/ui/views/controls/button/custom_button.h
index 12d4bc0365b0de0036619d91c229fc0610552222..f356c76b8a08d70854cb1392629febb3fe26e919 100644
--- a/ui/views/controls/button/custom_button.h
+++ b/ui/views/controls/button/custom_button.h
@@ -16,8 +16,6 @@ class ThrobAnimation;
namespace views {
-class CustomButtonStateChangedDelegate;
-
// A button with custom rendering. The base of ImageButton and LabelButton.
// Note that this type of button is not focusable by default and will not be
// part of the focus chain. Call SetFocusable(true) to make it part of the
@@ -89,11 +87,6 @@ class VIEWS_EXPORT CustomButton : public Button,
// Overridden from gfx::AnimationDelegate:
void AnimationProgressed(const gfx::Animation* animation) override;
- // Takes ownership of the delegate.
- void set_state_changed_delegate(CustomButtonStateChangedDelegate* delegate) {
- state_changed_delegate_.reset(delegate);
- }
-
protected:
// Construct the Button with a Listener. See comment for Button's ctor.
explicit CustomButton(ButtonListener* listener);
@@ -137,24 +130,9 @@ class VIEWS_EXPORT CustomButton : public Button,
// See description above setter.
bool request_focus_on_press_;
- scoped_ptr<CustomButtonStateChangedDelegate> state_changed_delegate_;
-
DISALLOW_COPY_AND_ASSIGN(CustomButton);
};
-// Delegate for actions taken on state changes by CustomButton.
-class VIEWS_EXPORT CustomButtonStateChangedDelegate {
-public:
- virtual ~CustomButtonStateChangedDelegate() {}
- virtual void StateChanged(Button::ButtonState state) = 0;
-
-protected:
- CustomButtonStateChangedDelegate() {}
-
-private:
- DISALLOW_COPY_AND_ASSIGN(CustomButtonStateChangedDelegate);
-};
-
} // namespace views
#endif // UI_VIEWS_CONTROLS_BUTTON_CUSTOM_BUTTON_H_
« no previous file with comments | « no previous file | ui/views/controls/button/custom_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698