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

Side by Side Diff: content/browser/android/in_process/synchronous_compositor_impl.h

Issue 1063853005: Unify Android Webview and Chrome's fling (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: add proguard Created 5 years, 6 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_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_
6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ 6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 void SetIsActive(bool is_active) override; 80 void SetIsActive(bool is_active) override;
81 81
82 // LayerScrollOffsetDelegate 82 // LayerScrollOffsetDelegate
83 gfx::ScrollOffset GetTotalScrollOffset() override; 83 gfx::ScrollOffset GetTotalScrollOffset() override;
84 void UpdateRootLayerState(const gfx::ScrollOffset& total_scroll_offset, 84 void UpdateRootLayerState(const gfx::ScrollOffset& total_scroll_offset,
85 const gfx::ScrollOffset& max_scroll_offset, 85 const gfx::ScrollOffset& max_scroll_offset,
86 const gfx::SizeF& scrollable_size, 86 const gfx::SizeF& scrollable_size,
87 float page_scale_factor, 87 float page_scale_factor,
88 float min_page_scale_factor, 88 float min_page_scale_factor,
89 float max_page_scale_factor) override; 89 float max_page_scale_factor) override;
90 bool IsExternalFlingActive() const override; 90 bool IsExternalScrollActive() const override;
91 void SetNeedsAnimate(const AnimationCallback& scroll_animation) override;
91 92
92 void DidOverscroll(const DidOverscrollParams& params); 93 void DidOverscroll(const DidOverscrollParams& params);
93 void DidStopFlinging(); 94 void DidStopFlinging();
94 95
95 private: 96 private:
96 friend class WebContentsUserData<SynchronousCompositorImpl>; 97 friend class WebContentsUserData<SynchronousCompositorImpl>;
97 friend class SynchronousCompositor; 98 friend class SynchronousCompositor;
98 explicit SynchronousCompositorImpl(WebContents* contents); 99 explicit SynchronousCompositorImpl(WebContents* contents);
99 ~SynchronousCompositorImpl() override; 100 ~SynchronousCompositorImpl() override;
100 101
(...skipping 16 matching lines...) Expand all
117 bool renderer_needs_begin_frames_; 118 bool renderer_needs_begin_frames_;
118 119
119 base::WeakPtrFactory<SynchronousCompositorImpl> weak_ptr_factory_; 120 base::WeakPtrFactory<SynchronousCompositorImpl> weak_ptr_factory_;
120 121
121 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl); 122 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl);
122 }; 123 };
123 124
124 } // namespace content 125 } // namespace content
125 126
126 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ 127 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698