| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 IsExternalScrollActive() const override; | |
| 91 void SetNeedsAnimate(const AnimationCallback& scroll_animation) override; | 90 void SetNeedsAnimate(const AnimationCallback& scroll_animation) override; |
| 92 | 91 |
| 93 void DidOverscroll(const DidOverscrollParams& params); | 92 void DidOverscroll(const DidOverscrollParams& params); |
| 94 void DidStopFlinging(); | 93 void DidStopFlinging(); |
| 95 | 94 |
| 96 private: | 95 private: |
| 97 friend class WebContentsUserData<SynchronousCompositorImpl>; | 96 friend class WebContentsUserData<SynchronousCompositorImpl>; |
| 98 friend class SynchronousCompositor; | 97 friend class SynchronousCompositor; |
| 99 explicit SynchronousCompositorImpl(WebContents* contents); | 98 explicit SynchronousCompositorImpl(WebContents* contents); |
| 100 ~SynchronousCompositorImpl() override; | 99 ~SynchronousCompositorImpl() override; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 118 bool renderer_needs_begin_frames_; | 117 bool renderer_needs_begin_frames_; |
| 119 | 118 |
| 120 base::WeakPtrFactory<SynchronousCompositorImpl> weak_ptr_factory_; | 119 base::WeakPtrFactory<SynchronousCompositorImpl> weak_ptr_factory_; |
| 121 | 120 |
| 122 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl); | 121 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl); |
| 123 }; | 122 }; |
| 124 | 123 |
| 125 } // namespace content | 124 } // namespace content |
| 126 | 125 |
| 127 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ | 126 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ |
| OLD | NEW |