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

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

Issue 2396133005: [ash-md] Animates ToggleButton highlight to move it in sync with the thumb (Closed)
Patch Set: Created 4 years, 2 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_HOST_H_ 5 #ifndef UI_VIEWS_ANIMATION_INK_DROP_HOST_H_
6 #define UI_VIEWS_ANIMATION_INK_DROP_HOST_H_ 6 #define UI_VIEWS_ANIMATION_INK_DROP_HOST_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 26 matching lines...) Expand all
37 37
38 // Removes |ink_drop_layer| from the layer tree. 38 // Removes |ink_drop_layer| from the layer tree.
39 virtual void RemoveInkDropLayer(ui::Layer* ink_drop_layer) = 0; 39 virtual void RemoveInkDropLayer(ui::Layer* ink_drop_layer) = 0;
40 40
41 // Creates and returns the effect used for press. 41 // Creates and returns the effect used for press.
42 virtual std::unique_ptr<InkDropRipple> CreateInkDropRipple() const = 0; 42 virtual std::unique_ptr<InkDropRipple> CreateInkDropRipple() const = 0;
43 43
44 // Creates and returns the effect used for hover and focus. 44 // Creates and returns the effect used for hover and focus.
45 virtual std::unique_ptr<InkDropHighlight> CreateInkDropHighlight() const = 0; 45 virtual std::unique_ptr<InkDropHighlight> CreateInkDropHighlight() const = 0;
46 46
47 // Translates the root layer by |offset|.
48 virtual void OffsetInkDropRipple(const gfx::Vector2d& offset) = 0;
bruthig 2016/10/08 22:44:46 I think it would be better to move this function i
varkha 2016/10/12 00:44:59 Acknowledged.
49
47 private: 50 private:
48 DISALLOW_COPY_AND_ASSIGN(InkDropHost); 51 DISALLOW_COPY_AND_ASSIGN(InkDropHost);
49 }; 52 };
50 53
51 } // namespace views 54 } // namespace views
52 55
53 #endif // UI_VIEWS_ANIMATION_INK_DROP_HOST_H_ 56 #endif // UI_VIEWS_ANIMATION_INK_DROP_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/animation/ink_drop_host_view.h » ('j') | ui/views/controls/button/toggle_button.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698