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

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

Issue 2041033002: Moved ButtonInkDropDelegate logic into InkDropHostView and deleted InkDropDelegates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed merge conflict in custom_button.cc Created 4 years, 6 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/animation/ink_drop.h ('k') | ui/views/animation/ink_drop_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/animation/ink_drop_delegate.h
diff --git a/ui/views/animation/ink_drop_delegate.h b/ui/views/animation/ink_drop_delegate.h
deleted file mode 100644
index 0bec282aaf24b086d06029e36657664ea4bc31b7..0000000000000000000000000000000000000000
--- a/ui/views/animation/ink_drop_delegate.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2015 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_INK_DROP_DELEGATE_H_
-#define UI_VIEWS_ANIMATION_INK_DROP_DELEGATE_H_
-
-#include "base/macros.h"
-#include "ui/views/animation/ink_drop_state.h"
-#include "ui/views/views_export.h"
-
-namespace ui {
-class GestureEvent;
-class Event;
-} // namespace ui
-
-namespace views {
-
-class InkDrop;
-
-// Ink ripple animation delegate that starts and stops animations based on
-// View states and events.
-class VIEWS_EXPORT InkDropDelegate {
- public:
- InkDropDelegate() {}
- virtual ~InkDropDelegate() {}
-
- // Called when ink ripple state changes.
- // TODO(bruthig): Replace the InkDropState parameter with an InkDropAction
- // enum. The InkDropAction enum should be a subset of the InkDropState values
- // as well as a NONE value.
- virtual void OnAction(InkDropState state) = 0;
-
- // Immediately snaps the InkDropState to ACTIVATED.
- virtual void SnapToActivated() = 0;
-
- // Enables or disables the hover state.
- virtual void SetHovered(bool is_hovered) = 0;
-
- // Returns the current InkDropState
- virtual InkDropState GetTargetInkDropState() const = 0;
-
- // Returns the ink drop that this delegate controls. TODO(estade): remove the
- // above pass throughs and convert callers to using this function.
- virtual InkDrop* GetInkDrop() = 0;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(InkDropDelegate);
-};
-
-} // namespace views
-
-#endif // UI_VIEWS_ANIMATION_INK_DROP_DELEGATE_H_
« no previous file with comments | « ui/views/animation/ink_drop.h ('k') | ui/views/animation/ink_drop_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698