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

Side by Side Diff: content/public/browser/android/synchronous_compositor_client.h

Issue 1251323002: Plumb smooth scrolling in Chromium compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 17 matching lines...) Expand all
28 virtual void DidDestroyCompositor(SynchronousCompositor* compositor) = 0; 28 virtual void DidDestroyCompositor(SynchronousCompositor* compositor) = 0;
29 29
30 // See LayerScrollOffsetDelegate for details. 30 // See LayerScrollOffsetDelegate for details.
31 virtual gfx::Vector2dF GetTotalRootLayerScrollOffset() = 0; 31 virtual gfx::Vector2dF GetTotalRootLayerScrollOffset() = 0;
32 virtual void UpdateRootLayerState(const gfx::Vector2dF& total_scroll_offset, 32 virtual void UpdateRootLayerState(const gfx::Vector2dF& total_scroll_offset,
33 const gfx::Vector2dF& max_scroll_offset, 33 const gfx::Vector2dF& max_scroll_offset,
34 const gfx::SizeF& scrollable_size, 34 const gfx::SizeF& scrollable_size,
35 float page_scale_factor, 35 float page_scale_factor,
36 float min_page_scale_factor, 36 float min_page_scale_factor,
37 float max_page_scale_factor) = 0; 37 float max_page_scale_factor) = 0;
38 virtual bool IsExternalScrollActive() const = 0;
39 38
40 typedef base::Callback<void(base::TimeTicks)> AnimationCallback; 39 typedef base::Callback<void(base::TimeTicks)> AnimationCallback;
41 virtual void SetNeedsAnimateScroll(const AnimationCallback& animation) = 0; 40 virtual void SetNeedsAnimateScroll(const AnimationCallback& animation) = 0;
42 41
43 virtual void DidOverscroll(gfx::Vector2dF accumulated_overscroll, 42 virtual void DidOverscroll(gfx::Vector2dF accumulated_overscroll,
44 gfx::Vector2dF latest_overscroll_delta, 43 gfx::Vector2dF latest_overscroll_delta,
45 gfx::Vector2dF current_fling_velocity) = 0; 44 gfx::Vector2dF current_fling_velocity) = 0;
46 45
47 virtual void PostInvalidate() = 0; 46 virtual void PostInvalidate() = 0;
48 47
49 virtual void DidUpdateContent() = 0; 48 virtual void DidUpdateContent() = 0;
50 49
51 protected: 50 protected:
52 SynchronousCompositorClient() {} 51 SynchronousCompositorClient() {}
53 virtual ~SynchronousCompositorClient() {} 52 virtual ~SynchronousCompositorClient() {}
54 53
55 private: 54 private:
56 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorClient); 55 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorClient);
57 }; 56 };
58 57
59 } // namespace content 58 } // namespace content
60 59
61 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_ 60 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698