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

Unified Diff: ui/views/animation/test/test_ink_drop_host.h

Issue 1390113006: Added material design mouse hover feedback support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed the InkDropAnimationControllerImpl to destroy its timer when not running. Created 4 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
Index: ui/views/animation/test/test_ink_drop_host.h
diff --git a/ui/views/animation/test/test_ink_drop_host.h b/ui/views/animation/test/test_ink_drop_host.h
index 7baa391291ad831cdd8f908f5cd3051eb6740e3c..9192a116a0c968d4a17f12b180f7693b8f5e48dc 100644
--- a/ui/views/animation/test/test_ink_drop_host.h
+++ b/ui/views/animation/test/test_ink_drop_host.h
@@ -19,14 +19,21 @@ class TestInkDropHost : public InkDropHost {
int num_ink_drop_layers() const { return num_ink_drop_layers_; }
+ void set_should_show_hover(bool should_show_hover) {
+ should_show_hover_ = should_show_hover;
+ }
+
// TestInkDropHost:
void AddInkDropLayer(ui::Layer* ink_drop_layer) override;
void RemoveInkDropLayer(ui::Layer* ink_drop_layer) override;
gfx::Point CalculateInkDropCenter() const override;
+ bool ShouldShowInkDropHover() const override;
private:
int num_ink_drop_layers_;
+ bool should_show_hover_;
+
DISALLOW_COPY_AND_ASSIGN(TestInkDropHost);
};
« no previous file with comments | « ui/views/animation/ink_drop_painted_layer_delegates.cc ('k') | ui/views/animation/test/test_ink_drop_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698