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

Side by Side Diff: ui/views/animation/ink_drop_delegate.h

Issue 1411833006: Refactoring to make adding ink drop animations easier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactor ink drop animations (moved ACTION_PENDING handling to toolbar_action_view for now) Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_VIEWS_ANIMATION_INK_DROP_DELEGATE_H_
6 #define UI_VIEWS_ANIMATION_INK_DROP_DELEGATE_H_
7
8 #include "base/macros.h"
9 #include "ui/views/animation/ink_drop_state.h"
10 #include "ui/views/views_export.h"
11
12 namespace ui {
13 class GestureEvent;
14 class Event;
15 } // namespace ui
16
17 namespace views {
18
19 // Ink ripple animation delegate that starts and stops animations based on
20 // View states and events.
21 class VIEWS_EXPORT InkDropDelegate {
22 public:
23 InkDropDelegate() {}
24 virtual ~InkDropDelegate() {}
25
26 // Sets sizes for the animation layers.
27 virtual void SetInkDropSize(int large_size,
28 int large_corner_radius,
29 int small_size,
30 int small_corner_radius) = 0;
31
32 // Called when the View's layout changes necessitating change in positioning
33 // of ink ripple layers.
34 virtual void OnLayout() = 0;
35
36 // Called when ink ripple state changes.
37 virtual void OnAction(InkDropState state) = 0;
38
39 private:
40 DISALLOW_COPY_AND_ASSIGN(InkDropDelegate);
41 };
42
43 } // namespace views
44
45 #endif // UI_VIEWS_ANIMATION_INK_DROP_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698