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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(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 void DidStopFlinging(); |
85 | 86 |
86 private: | 87 private: |
87 explicit SynchronousCompositorImpl(WebContents* contents); | 88 explicit SynchronousCompositorImpl(WebContents* contents); |
88 virtual ~SynchronousCompositorImpl(); | 89 virtual ~SynchronousCompositorImpl(); |
89 friend class WebContentsUserData<SynchronousCompositorImpl>; | 90 friend class WebContentsUserData<SynchronousCompositorImpl>; |
90 | 91 |
91 void DidCreateSynchronousOutputSurface( | 92 void DidCreateSynchronousOutputSurface( |
92 SynchronousCompositorOutputSurface* output_surface); | 93 SynchronousCompositorOutputSurface* output_surface); |
93 bool CalledOnValidThread() const; | 94 bool CalledOnValidThread() const; |
94 | 95 |
95 SynchronousCompositorClient* compositor_client_; | 96 SynchronousCompositorClient* compositor_client_; |
96 SynchronousCompositorOutputSurface* output_surface_; | 97 SynchronousCompositorOutputSurface* output_surface_; |
97 WebContents* contents_; | 98 WebContents* contents_; |
98 cc::InputHandler* input_handler_; | 99 cc::InputHandler* input_handler_; |
99 | 100 |
100 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl); | 101 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl); |
101 }; | 102 }; |
102 | 103 |
103 } // namespace content | 104 } // namespace content |
104 | 105 |
105 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ | 106 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ |
OLD | NEW |