| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 virtual void UpdateFrameMetaData( | 71 virtual void UpdateFrameMetaData( |
| 72 const cc::CompositorFrameMetadata& frame_info) OVERRIDE; | 72 const cc::CompositorFrameMetadata& frame_info) OVERRIDE; |
| 73 virtual void DidActivatePendingTree() OVERRIDE; | 73 virtual void DidActivatePendingTree() OVERRIDE; |
| 74 | 74 |
| 75 // LayerScrollOffsetDelegate | 75 // LayerScrollOffsetDelegate |
| 76 virtual void SetMaxScrollOffset(gfx::Vector2dF max_scroll_offset) OVERRIDE; | 76 virtual void SetMaxScrollOffset(gfx::Vector2dF max_scroll_offset) OVERRIDE; |
| 77 virtual void SetTotalScrollOffset(gfx::Vector2dF new_value) OVERRIDE; | 77 virtual void SetTotalScrollOffset(gfx::Vector2dF new_value) OVERRIDE; |
| 78 virtual gfx::Vector2dF GetTotalScrollOffset() OVERRIDE; | 78 virtual gfx::Vector2dF GetTotalScrollOffset() OVERRIDE; |
| 79 virtual bool IsExternalFlingActive() const OVERRIDE; | 79 virtual bool IsExternalFlingActive() const OVERRIDE; |
| 80 virtual void SetTotalPageScaleFactor(float page_scale_factor) OVERRIDE; | 80 virtual void SetTotalPageScaleFactor(float page_scale_factor) OVERRIDE; |
| 81 virtual void SetScrollableSize(gfx::SizeF scrollable_size) OVERRIDE; | 81 virtual void SetScrollableSize(const gfx::SizeF& scrollable_size) OVERRIDE; |
| 82 | 82 |
| 83 void SetInputHandler(cc::InputHandler* input_handler); | 83 void SetInputHandler(cc::InputHandler* input_handler); |
| 84 void DidOverscroll(const cc::DidOverscrollParams& params); | 84 void DidOverscroll(const cc::DidOverscrollParams& params); |
| 85 | 85 |
| 86 private: | 86 private: |
| 87 explicit SynchronousCompositorImpl(WebContents* contents); | 87 explicit SynchronousCompositorImpl(WebContents* contents); |
| 88 virtual ~SynchronousCompositorImpl(); | 88 virtual ~SynchronousCompositorImpl(); |
| 89 friend class WebContentsUserData<SynchronousCompositorImpl>; | 89 friend class WebContentsUserData<SynchronousCompositorImpl>; |
| 90 | 90 |
| 91 void DidCreateSynchronousOutputSurface( | 91 void DidCreateSynchronousOutputSurface( |
| 92 SynchronousCompositorOutputSurface* output_surface); | 92 SynchronousCompositorOutputSurface* output_surface); |
| 93 bool CalledOnValidThread() const; | 93 bool CalledOnValidThread() const; |
| 94 | 94 |
| 95 SynchronousCompositorClient* compositor_client_; | 95 SynchronousCompositorClient* compositor_client_; |
| 96 SynchronousCompositorOutputSurface* output_surface_; | 96 SynchronousCompositorOutputSurface* output_surface_; |
| 97 WebContents* contents_; | 97 WebContents* contents_; |
| 98 cc::InputHandler* input_handler_; | 98 cc::InputHandler* input_handler_; |
| 99 | 99 |
| 100 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl); | 100 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl); |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 } // namespace content | 103 } // namespace content |
| 104 | 104 |
| 105 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ | 105 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ |
| OLD | NEW |