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

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

Issue 274323004: NOT FOR LANDING - [WebView] Allow fling animation via the LayerScrollOffsetDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test 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
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 // LayerScrollOffsetDelegate 76 // LayerScrollOffsetDelegate
77 gfx::ScrollOffset GetTotalScrollOffset() override; 77 gfx::ScrollOffset GetTotalScrollOffset() override;
78 void UpdateRootLayerState(const gfx::ScrollOffset& total_scroll_offset, 78 void UpdateRootLayerState(const gfx::ScrollOffset& total_scroll_offset,
79 const gfx::ScrollOffset& max_scroll_offset, 79 const gfx::ScrollOffset& max_scroll_offset,
80 const gfx::SizeF& scrollable_size, 80 const gfx::SizeF& scrollable_size,
81 float page_scale_factor, 81 float page_scale_factor,
82 float min_page_scale_factor, 82 float min_page_scale_factor,
83 float max_page_scale_factor) override; 83 float max_page_scale_factor) override;
84 bool IsExternalFlingActive() const override; 84 bool IsExternalFlingActive() const override;
85 void SetNeedsAnimate(const AnimationCallback& fling_animation) override;
85 86
86 void SetInputHandler(cc::InputHandler* input_handler); 87 void SetInputHandler(cc::InputHandler* input_handler);
87 void DidOverscroll(const DidOverscrollParams& params); 88 void DidOverscroll(const DidOverscrollParams& params);
88 void DidStopFlinging(); 89 void DidStopFlinging();
89 90
90 private: 91 private:
91 friend class WebContentsUserData<SynchronousCompositorImpl>; 92 friend class WebContentsUserData<SynchronousCompositorImpl>;
92 friend class SynchronousCompositor; 93 friend class SynchronousCompositor;
93 explicit SynchronousCompositorImpl(WebContents* contents); 94 explicit SynchronousCompositorImpl(WebContents* contents);
94 ~SynchronousCompositorImpl() override; 95 ~SynchronousCompositorImpl() override;
(...skipping 14 matching lines...) Expand all
109 bool invoking_composite_; 110 bool invoking_composite_;
110 111
111 base::WeakPtrFactory<SynchronousCompositorImpl> weak_ptr_factory_; 112 base::WeakPtrFactory<SynchronousCompositorImpl> weak_ptr_factory_;
112 113
113 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl); 114 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl);
114 }; 115 };
115 116
116 } // namespace content 117 } // namespace content
117 118
118 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ 119 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | content/browser/android/in_process/synchronous_compositor_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698