OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |