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

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

Issue 1280953003: Enhance the material design ripple API so the ripple's state can be controlled by it's owning View. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed minor typo. Created 5 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 unified diff | Download patch
« no previous file with comments | « ui/views/animation/ink_drop_delegate.cc ('k') | ui/views/views.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_HOST_H_
6 #define UI_VIEWS_ANIMATION_INK_DROP_HOST_H_
7
8 #include "base/macros.h"
9 #include "ui/views/views_export.h"
10
11 namespace ui {
12 class Layer;
13 } // namespace ui
14
15 namespace views {
16
17 // Used by the InkDropAnimationController to add and remove the ink drop layers
18 // from a host's layer tree. Typically the ink drop layer is added to a View's
19 // layer but it can also be added to a View's ancestor layer.
20 //
21 // Note: Some Views do not own a Layer, but you can use
22 // View::SetLayer(new ui::Layer(ui::LAYER_NOT_DRAWN)) to force the View to have
23 // a lightweight Layer that can parent the ink drop layer.
24 class VIEWS_EXPORT InkDropHost {
25 public:
26 InkDropHost() {}
27 virtual ~InkDropHost() {}
28
29 // Add the |ink_drop_layer| in to a visible layer tree.
30 virtual void AddInkDropLayer(ui::Layer* ink_drop_layer) = 0;
31
32 // Removes |ink_drop_layer| from the layer tree.
33 virtual void RemoveInkDropLayer(ui::Layer* ink_drop_layer) = 0;
34
35 private:
36 DISALLOW_COPY_AND_ASSIGN(InkDropHost);
37 };
38
39 } // namespace views
40
41 #endif // UI_VIEWS_ANIMATION_INK_DROP_HOST_H_
OLDNEW
« no previous file with comments | « ui/views/animation/ink_drop_delegate.cc ('k') | ui/views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698