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

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

Issue 1550443002: Pushed InkDropHost inheritence up to CustomButton. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/controls/button/custom_button.cc
diff --git a/ui/views/controls/button/custom_button.cc b/ui/views/controls/button/custom_button.cc
index 76525064a7e34ab110e46752ecb27228656ec21a..dd41ee011bfd0f2cfe1da2299ffc8a3e4e65506e 100644
--- a/ui/views/controls/button/custom_button.cc
+++ b/ui/views/controls/button/custom_button.cc
@@ -331,6 +331,17 @@ void CustomButton::AnimationProgressed(const gfx::Animation* animation) {
}
////////////////////////////////////////////////////////////////////////////////
+// CustomButton, views::InkDropHost implementation:
+
+void CustomButton::AddInkDropLayer(ui::Layer* ink_drop_layer) {}
+
+void CustomButton::RemoveInkDropLayer(ui::Layer* ink_drop_layer) {}
Peter Kasting 2015/12/28 13:44:33 Having to override these just to give empty implem
bruthig 2015/12/28 17:36:16 I agree that would simplify things but I thought t
Peter Kasting 2015/12/28 17:38:41 I don't consider this to be qualitatively differen
bruthig 2015/12/28 18:35:40 Done.
+
+gfx::Point CustomButton::CalculateInkDropCenter() const {
+ return GetLocalBounds().CenterPoint();
+}
+
+////////////////////////////////////////////////////////////////////////////////
// CustomButton, protected:
CustomButton::CustomButton(ButtonListener* listener)
« chrome/browser/ui/views/bar_control_button.h ('K') | « ui/views/controls/button/custom_button.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698