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

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

Issue 2001843002: Use ink drop hover for focus states on toolbar buttons and location (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: layout Created 4 years, 7 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 | « ui/views/controls/button/custom_button.cc ('k') | ui/views/controls/button/label_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_unittest.cc
diff --git a/ui/views/controls/button/custom_button_unittest.cc b/ui/views/controls/button/custom_button_unittest.cc
index 4b9ca78c755a973994e19c47c21dad60f8b06bbf..6ffdd81746ca94b555bd111d9a94718c04fed722 100644
--- a/ui/views/controls/button/custom_button_unittest.cc
+++ b/ui/views/controls/button/custom_button_unittest.cc
@@ -114,6 +114,7 @@ class TestInkDropDelegateThatTracksVisibilty : public TestInkDropDelegate {
void SnapToActivated() override { *ink_shown_ = true; }
void SetHovered(bool is_hovered) override {}
+ InkDrop* GetInkDrop() override { return nullptr; }
private:
bool* ink_shown_;
@@ -126,14 +127,12 @@ class TestInkDropDelegateThatTracksVisibilty : public TestInkDropDelegate {
class TestButtonWithInkDrop : public TestCustomButton {
public:
TestButtonWithInkDrop(std::unique_ptr<InkDropDelegate> ink_drop_delegate)
- : TestCustomButton(), ink_drop_delegate_(std::move(ink_drop_delegate)) {
- set_ink_drop_delegate(ink_drop_delegate_.get());
+ : TestCustomButton() {
+ set_ink_drop_delegate(std::move(ink_drop_delegate));
}
~TestButtonWithInkDrop() override {}
private:
- std::unique_ptr<views::InkDropDelegate> ink_drop_delegate_;
-
DISALLOW_COPY_AND_ASSIGN(TestButtonWithInkDrop);
};
« no previous file with comments | « ui/views/controls/button/custom_button.cc ('k') | ui/views/controls/button/label_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698