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

Unified Diff: ui/views/animation/empty_ink_drop_ripple.h

Issue 2250783002: Allow InkDropRipple to co-exist with highlight (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl try Created 4 years, 4 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/animation/empty_ink_drop_ripple.cc » ('j') | ui/views/animation/ink_drop_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/animation/empty_ink_drop_ripple.h
diff --git a/ui/views/animation/empty_ink_drop_ripple.h b/ui/views/animation/empty_ink_drop_ripple.h
new file mode 100644
index 0000000000000000000000000000000000000000..ea053edb75e58f5a04c2cb96908ed09aed1396c9
--- /dev/null
+++ b/ui/views/animation/empty_ink_drop_ripple.h
@@ -0,0 +1,37 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_VIEWS_ANIMATION_EMPTY_INK_DROP_RIPPLE_H_
+#define UI_VIEWS_ANIMATION_EMPTY_INK_DROP_RIPPLE_H_
+
+#include "ui/views/animation/ink_drop_ripple.h"
+
+namespace views {
+
+class VIEWS_EXPORT EmptyInkDropRipple : public InkDropRipple {
bruthig 2016/08/25 17:45:29 Some docs would be nice or perhaps a more descript
Evan Stade 2016/08/26 23:36:15 Done.
+ public:
+ EmptyInkDropRipple();
+ ~EmptyInkDropRipple() override;
+
+ // InkDropRipple:
+ void AnimateToState(InkDropState ink_drop_state) override;
+ void SnapToActivated() override;
+ ui::Layer* GetRootLayer() override;
+ bool OverridesHighlight() const override;
+
+ protected:
+ // InkDropRipple:
+ void AnimateStateChange(InkDropState old_ink_drop_state,
+ InkDropState new_ink_drop_state,
+ ui::LayerAnimationObserver* observer) override;
+ void SetStateToHidden() override;
+ void AbortAllAnimations() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(EmptyInkDropRipple);
+};
+
+} // namespace views
+
+#endif // UI_VIEWS_ANIMATION_EMPTY_INK_DROP_RIPPLE_H_
« no previous file with comments | « no previous file | ui/views/animation/empty_ink_drop_ripple.cc » ('j') | ui/views/animation/ink_drop_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698