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

Unified Diff: content/browser/android/overscroll_glow.h

Issue 23494021: [Android] Provide a valid initial size for the overscroll effect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Explicit size on creation Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/android/overscroll_glow.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/overscroll_glow.h
diff --git a/content/browser/android/overscroll_glow.h b/content/browser/android/overscroll_glow.h
index 4ea929e9d3e4bba5da9d1135f570940834cf2915..01156a23f03f7c4dd63e3538474d702eea081e06 100644
--- a/content/browser/android/overscroll_glow.h
+++ b/content/browser/android/overscroll_glow.h
@@ -30,7 +30,7 @@ class OverscrollGlow {
// If |enabled| is false, the effect will be be deactivated until
// SetEnabled(true) is called.
// The caller should attach |root_layer| to the desired layer tree.
- static scoped_ptr<OverscrollGlow> Create(bool enabled);
+ static scoped_ptr<OverscrollGlow> Create(bool enabled, gfx::SizeF size);
// Force loading of any necessary resources. This function is thread-safe.
static void EnsureResources();
@@ -79,7 +79,10 @@ class OverscrollGlow {
private:
enum Axis { AXIS_X, AXIS_Y };
- OverscrollGlow(bool enabled, const SkBitmap& edge, const SkBitmap& glow);
+ OverscrollGlow(bool enabled,
+ gfx::SizeF size,
+ const SkBitmap& edge,
+ const SkBitmap& glow);
void Pull(base::TimeTicks current_time,
gfx::Vector2dF added_overscroll);
« no previous file with comments | « no previous file | content/browser/android/overscroll_glow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698