| 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_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 "ui/gfx/vector2d_f.h" | 9 #include "ui/gfx/vector2d_f.h" |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 virtual void SetTotalRootLayerScrollOffset(gfx::Vector2dF new_value) = 0; | 30 virtual void SetTotalRootLayerScrollOffset(gfx::Vector2dF new_value) = 0; |
| 31 virtual gfx::Vector2dF GetTotalRootLayerScrollOffset() = 0; | 31 virtual gfx::Vector2dF GetTotalRootLayerScrollOffset() = 0; |
| 32 virtual bool IsExternalFlingActive() const = 0; | 32 virtual bool IsExternalFlingActive() const = 0; |
| 33 virtual void SetRootLayerPageScaleFactor(float page_scale_factor) = 0; | 33 virtual void SetRootLayerPageScaleFactor(float page_scale_factor) = 0; |
| 34 virtual void SetRootLayerScrollableSize(gfx::SizeF scrollable_size) = 0; | 34 virtual void SetRootLayerScrollableSize(gfx::SizeF scrollable_size) = 0; |
| 35 | 35 |
| 36 virtual void DidOverscroll(gfx::Vector2dF accumulated_overscroll, | 36 virtual void DidOverscroll(gfx::Vector2dF accumulated_overscroll, |
| 37 gfx::Vector2dF latest_overscroll_delta, | 37 gfx::Vector2dF latest_overscroll_delta, |
| 38 gfx::Vector2dF current_fling_velocity) = 0; | 38 gfx::Vector2dF current_fling_velocity) = 0; |
| 39 | 39 |
| 40 virtual void DidStopFlinging() = 0; |
| 41 |
| 40 // When true, should periodically call | 42 // When true, should periodically call |
| 41 // SynchronousCompositorOutputSurface::DemandDrawHw. Note that this value | 43 // SynchronousCompositorOutputSurface::DemandDrawHw. Note that this value |
| 42 // can change inside DemandDrawHw call. | 44 // can change inside DemandDrawHw call. |
| 43 virtual void SetContinuousInvalidate(bool invalidate) = 0; | 45 virtual void SetContinuousInvalidate(bool invalidate) = 0; |
| 44 | 46 |
| 45 virtual void DidUpdateContent() = 0; | 47 virtual void DidUpdateContent() = 0; |
| 46 | 48 |
| 47 protected: | 49 protected: |
| 48 SynchronousCompositorClient() {} | 50 SynchronousCompositorClient() {} |
| 49 virtual ~SynchronousCompositorClient() {} | 51 virtual ~SynchronousCompositorClient() {} |
| 50 | 52 |
| 51 private: | 53 private: |
| 52 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorClient); | 54 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorClient); |
| 53 }; | 55 }; |
| 54 | 56 |
| 55 } // namespace content | 57 } // namespace content |
| 56 | 58 |
| 57 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_ | 59 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_ |
| OLD | NEW |