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

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

Issue 1682893002: Color the ink drop ripple and hover effects based on theming. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unit tests Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_CONTROLLER_H_ 5 #ifndef UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_CONTROLLER_H_
6 #define UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_CONTROLLER_H_ 6 #define UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_CONTROLLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 26 matching lines...) Expand all
37 37
38 // Animates from the current InkDropState to |ink_drop_state|. 38 // Animates from the current InkDropState to |ink_drop_state|.
39 virtual void AnimateToState(InkDropState ink_drop_state) = 0; 39 virtual void AnimateToState(InkDropState ink_drop_state) = 0;
40 40
41 // Enables or disables the hover state. 41 // Enables or disables the hover state.
42 virtual void SetHovered(bool is_hovered) = 0; 42 virtual void SetHovered(bool is_hovered) = 0;
43 43
44 // Returns true if the hover state is enabled. 44 // Returns true if the hover state is enabled.
45 virtual bool IsHovered() const = 0; 45 virtual bool IsHovered() const = 0;
46 46
47 virtual gfx::Size GetInkDropLargeSize() const = 0;
48
49 // Sets the different sizes of the ink drop. 47 // Sets the different sizes of the ink drop.
50 virtual void SetInkDropSize(const gfx::Size& large_size, 48 virtual void SetInkDropSize(const gfx::Size& large_size,
51 int large_corner_radius, 49 int large_corner_radius,
52 const gfx::Size& small_size, 50 const gfx::Size& small_size,
53 int small_corner_radius) = 0; 51 int small_corner_radius) = 0;
54 52
55 // Sets the |center_point| of the ink drop relative to its parent Layer. 53 // Sets the |center_point| of the ink drop relative to its parent Layer.
56 virtual void SetInkDropCenter(const gfx::Point& center_point) = 0; 54 virtual void SetInkDropCenter(const gfx::Point& center_point) = 0;
57 55
58 protected: 56 protected:
59 InkDropAnimationController() {} 57 InkDropAnimationController() {}
60 58
61 private: 59 private:
62 DISALLOW_COPY_AND_ASSIGN(InkDropAnimationController); 60 DISALLOW_COPY_AND_ASSIGN(InkDropAnimationController);
63 }; 61 };
64 62
65 } // namespace views 63 } // namespace views
66 64
67 #endif // UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_CONTROLLER_H_ 65 #endif // UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698