OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CONTENT_BROWSER_ANDROID_EDGE_EFFECT_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_EDGE_EFFECT_H_ |
6 #define CONTENT_BROWSER_ANDROID_EDGE_EFFECT_H_ | 6 #define CONTENT_BROWSER_ANDROID_EDGE_EFFECT_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "content/browser/android/edge_effect_base.h" | 9 #include "content/browser/android/edge_effect_base.h" |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 void Pull(base::TimeTicks current_time, | 31 void Pull(base::TimeTicks current_time, |
32 float delta_distance, | 32 float delta_distance, |
33 float displacement) override; | 33 float displacement) override; |
34 void Absorb(base::TimeTicks current_time, float velocity) override; | 34 void Absorb(base::TimeTicks current_time, float velocity) override; |
35 bool Update(base::TimeTicks current_time) override; | 35 bool Update(base::TimeTicks current_time) override; |
36 void Release(base::TimeTicks current_time) override; | 36 void Release(base::TimeTicks current_time) override; |
37 | 37 |
38 void Finish() override; | 38 void Finish() override; |
39 bool IsFinished() const override; | 39 bool IsFinished() const override; |
| 40 float GetAlpha() const override; |
40 | 41 |
41 void ApplyToLayers(const gfx::SizeF& size, | 42 void ApplyToLayers(const gfx::SizeF& size, |
42 const gfx::Transform& transform) override; | 43 const gfx::Transform& transform) override; |
43 void SetParent(cc::Layer* parent) override; | 44 void SetParent(cc::Layer* parent) override; |
44 | 45 |
45 // Thread-safe trigger to load resources. | 46 // Thread-safe trigger to load resources. |
46 static void PreloadResources(ui::ResourceManager* resource_manager); | 47 static void PreloadResources(ui::ResourceManager* resource_manager); |
47 | 48 |
48 private: | 49 private: |
49 class EffectLayer; | 50 class EffectLayer; |
(...skipping 23 matching lines...) Expand all Loading... |
73 State state_; | 74 State state_; |
74 | 75 |
75 float pull_distance_; | 76 float pull_distance_; |
76 | 77 |
77 DISALLOW_COPY_AND_ASSIGN(EdgeEffect); | 78 DISALLOW_COPY_AND_ASSIGN(EdgeEffect); |
78 }; | 79 }; |
79 | 80 |
80 } // namespace content | 81 } // namespace content |
81 | 82 |
82 #endif // CONTENT_BROWSER_ANDROID_EDGE_EFFECT_H_ | 83 #endif // CONTENT_BROWSER_ANDROID_EDGE_EFFECT_H_ |
OLD | NEW |