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

Side by Side Diff: content/browser/android/edge_effect_base.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.cc ('k') | content/browser/android/edge_effect_l.h » ('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_BASE_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_EDGE_EFFECT_BASE_H_
6 #define CONTENT_BROWSER_ANDROID_EDGE_EFFECT_BASE_H_ 6 #define CONTENT_BROWSER_ANDROID_EDGE_EFFECT_BASE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "ui/gfx/geometry/size_f.h" 10 #include "ui/gfx/geometry/size_f.h"
(...skipping 20 matching lines...) Expand all
31 31
32 virtual void Pull(base::TimeTicks current_time, 32 virtual void Pull(base::TimeTicks current_time,
33 float delta_distance, 33 float delta_distance,
34 float displacement) = 0; 34 float displacement) = 0;
35 virtual void Absorb(base::TimeTicks current_time, float velocity) = 0; 35 virtual void Absorb(base::TimeTicks current_time, float velocity) = 0;
36 virtual bool Update(base::TimeTicks current_time) = 0; 36 virtual bool Update(base::TimeTicks current_time) = 0;
37 virtual void Release(base::TimeTicks current_time) = 0; 37 virtual void Release(base::TimeTicks current_time) = 0;
38 38
39 virtual void Finish() = 0; 39 virtual void Finish() = 0;
40 virtual bool IsFinished() const = 0; 40 virtual bool IsFinished() const = 0;
41 virtual float GetAlpha() const = 0;
41 42
42 virtual void ApplyToLayers(const gfx::SizeF& size, 43 virtual void ApplyToLayers(const gfx::SizeF& size,
43 const gfx::Transform& transform) = 0; 44 const gfx::Transform& transform) = 0;
44 virtual void SetParent(cc::Layer* parent) = 0; 45 virtual void SetParent(cc::Layer* parent) = 0;
45 }; 46 };
46 47
47 } // namespace content 48 } // namespace content
48 49
49 #endif // CONTENT_BROWSER_ANDROID_EDGE_EFFECT_BASE_H_ 50 #endif // CONTENT_BROWSER_ANDROID_EDGE_EFFECT_BASE_H_
OLDNEW
« no previous file with comments | « content/browser/android/edge_effect.cc ('k') | content/browser/android/edge_effect_l.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698