OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/cancelable_callback.h" | 9 #include "base/cancelable_callback.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 virtual void SetWindowBounds(const gfx::Size& size) OVERRIDE; | 68 virtual void SetWindowBounds(const gfx::Size& size) OVERRIDE; |
69 virtual void SetHasTransparentBackground(bool flag) OVERRIDE; | 69 virtual void SetHasTransparentBackground(bool flag) OVERRIDE; |
70 virtual void SetNeedsComposite() OVERRIDE; | 70 virtual void SetNeedsComposite() OVERRIDE; |
71 virtual UIResourceProvider& GetUIResourceProvider() OVERRIDE; | 71 virtual UIResourceProvider& GetUIResourceProvider() OVERRIDE; |
72 | 72 |
73 // LayerTreeHostClient implementation. | 73 // LayerTreeHostClient implementation. |
74 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} | 74 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} |
75 virtual void DidBeginMainFrame() OVERRIDE {} | 75 virtual void DidBeginMainFrame() OVERRIDE {} |
76 virtual void BeginMainFrame(const cc::BeginFrameArgs& args) OVERRIDE {} | 76 virtual void BeginMainFrame(const cc::BeginFrameArgs& args) OVERRIDE {} |
77 virtual void Layout() OVERRIDE; | 77 virtual void Layout() OVERRIDE; |
| 78 virtual void SetTopControlsContentOffset(int offset) OVERRIDE {} |
78 virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta, | 79 virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta, |
79 float page_scale) OVERRIDE {} | 80 float page_scale) OVERRIDE {} |
80 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) | 81 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) |
81 OVERRIDE; | 82 OVERRIDE; |
82 virtual void DidInitializeOutputSurface() OVERRIDE {} | 83 virtual void DidInitializeOutputSurface() OVERRIDE {} |
83 virtual void WillCommit() OVERRIDE {} | 84 virtual void WillCommit() OVERRIDE {} |
84 virtual void DidCommit() OVERRIDE; | 85 virtual void DidCommit() OVERRIDE; |
85 virtual void DidCommitAndDrawFrame() OVERRIDE {} | 86 virtual void DidCommitAndDrawFrame() OVERRIDE {} |
86 virtual void DidCompleteSwapBuffers() OVERRIDE; | 87 virtual void DidCompleteSwapBuffers() OVERRIDE; |
87 | 88 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 base::TimeTicks last_vsync_; | 184 base::TimeTicks last_vsync_; |
184 | 185 |
185 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 186 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
186 | 187 |
187 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 188 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
188 }; | 189 }; |
189 | 190 |
190 } // namespace content | 191 } // namespace content |
191 | 192 |
192 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 193 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
OLD | NEW |