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

Side by Side Diff: content/browser/android/edge_effect_l.h

Issue 993613007: [Android] Add slack to allow refresh after overscrolling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 5 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 | « content/browser/android/edge_effect_base.h ('k') | content/browser/android/edge_effect_l.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_L_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_EDGE_EFFECT_L_H_
6 #define CONTENT_BROWSER_ANDROID_EDGE_EFFECT_L_H_ 6 #define CONTENT_BROWSER_ANDROID_EDGE_EFFECT_L_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/browser/android/edge_effect_base.h" 10 #include "content/browser/android/edge_effect_base.h"
(...skipping 22 matching lines...) Expand all
33 33
34 void Pull(base::TimeTicks current_time, 34 void Pull(base::TimeTicks current_time,
35 float delta_distance, 35 float delta_distance,
36 float displacement) override; 36 float displacement) override;
37 void Absorb(base::TimeTicks current_time, float velocity) override; 37 void Absorb(base::TimeTicks current_time, float velocity) override;
38 bool Update(base::TimeTicks current_time) override; 38 bool Update(base::TimeTicks current_time) override;
39 void Release(base::TimeTicks current_time) override; 39 void Release(base::TimeTicks current_time) override;
40 40
41 void Finish() override; 41 void Finish() override;
42 bool IsFinished() const override; 42 bool IsFinished() const override;
43 float GetAlpha() const override;
43 44
44 void ApplyToLayers(const gfx::SizeF& size, 45 void ApplyToLayers(const gfx::SizeF& size,
45 const gfx::Transform& transform) override; 46 const gfx::Transform& transform) override;
46 void SetParent(cc::Layer* parent) override; 47 void SetParent(cc::Layer* parent) override;
47 48
48 // Thread-safe trigger to load resources. 49 // Thread-safe trigger to load resources.
49 static void PreloadResources(ui::ResourceManager* resource_manager); 50 static void PreloadResources(ui::ResourceManager* resource_manager);
50 51
51 private: 52 private:
52 ui::ResourceManager* const resource_manager_; 53 ui::ResourceManager* const resource_manager_;
(...skipping 19 matching lines...) Expand all
72 State state_; 73 State state_;
73 74
74 float pull_distance_; 75 float pull_distance_;
75 76
76 DISALLOW_COPY_AND_ASSIGN(EdgeEffectL); 77 DISALLOW_COPY_AND_ASSIGN(EdgeEffectL);
77 }; 78 };
78 79
79 } // namespace content 80 } // namespace content
80 81
81 #endif // CONTENT_BROWSER_ANDROID_EDGE_EFFECT_L_H_ 82 #endif // CONTENT_BROWSER_ANDROID_EDGE_EFFECT_L_H_
OLDNEW
« no previous file with comments | « content/browser/android/edge_effect_base.h ('k') | content/browser/android/edge_effect_l.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698