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

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

Issue 1750403005: [MD] some tweaks to download shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: explicit Created 4 years, 9 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/gfx/geometry/insets_f.h ('k') | ui/views/animation/ink_drop_host_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_VIEW_H_ 5 #ifndef UI_VIEWS_ANIMATION_INK_DROP_HOST_VIEW_H_
6 #define UI_VIEWS_ANIMATION_INK_DROP_HOST_VIEW_H_ 6 #define UI_VIEWS_ANIMATION_INK_DROP_HOST_VIEW_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "third_party/skia/include/core/SkColor.h" 9 #include "third_party/skia/include/core/SkColor.h"
10 #include "ui/gfx/geometry/size.h"
10 #include "ui/views/animation/ink_drop_host.h" 11 #include "ui/views/animation/ink_drop_host.h"
11 #include "ui/views/view.h" 12 #include "ui/views/view.h"
12 13
13 namespace views { 14 namespace views {
14 15
15 class InkDropAnimation; 16 class InkDropAnimation;
16 class InkDropHover; 17 class InkDropHover;
17 18
18 // A view that provides InkDropHost functionality. 19 // A view that provides InkDropHost functionality.
19 class VIEWS_EXPORT InkDropHostView : public views::View, public InkDropHost { 20 class VIEWS_EXPORT InkDropHostView : public views::View, public InkDropHost {
20 public: 21 public:
21 InkDropHostView(); 22 InkDropHostView();
22 ~InkDropHostView() override; 23 ~InkDropHostView() override;
23 24
24 // Overridden from views::InkDropHost: 25 // Overridden from views::InkDropHost:
25 void AddInkDropLayer(ui::Layer* ink_drop_layer) override; 26 void AddInkDropLayer(ui::Layer* ink_drop_layer) override;
26 void RemoveInkDropLayer(ui::Layer* ink_drop_layer) override; 27 void RemoveInkDropLayer(ui::Layer* ink_drop_layer) override;
27 scoped_ptr<InkDropAnimation> CreateInkDropAnimation() const override; 28 scoped_ptr<InkDropAnimation> CreateInkDropAnimation() const override;
28 scoped_ptr<InkDropHover> CreateInkDropHover() const override; 29 scoped_ptr<InkDropHover> CreateInkDropHover() const override;
29 30
31 void set_ink_drop_size(const gfx::Size& size) { ink_drop_size_ = size; }
32
30 protected: 33 protected:
31 // Overrideable methods to allow views to provide minor tweaks to the default 34 // Overrideable methods to allow views to provide minor tweaks to the default
32 // ink drop. 35 // ink drop.
33 virtual gfx::Point GetInkDropCenter() const; 36 virtual gfx::Point GetInkDropCenter() const;
34 virtual SkColor GetInkDropBaseColor() const; 37 virtual SkColor GetInkDropBaseColor() const;
35 38
36 private: 39 private:
40 gfx::Size ink_drop_size_;
41
37 DISALLOW_COPY_AND_ASSIGN(InkDropHostView); 42 DISALLOW_COPY_AND_ASSIGN(InkDropHostView);
38 }; 43 };
39 } 44 }
40 45
41 #endif // UI_VIEWS_ANIMATION_INK_DROP_HOST_VIEW_H_ 46 #endif // UI_VIEWS_ANIMATION_INK_DROP_HOST_VIEW_H_
OLDNEW
« no previous file with comments | « ui/gfx/geometry/insets_f.h ('k') | ui/views/animation/ink_drop_host_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698