| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_ | 5 #ifndef MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_ |
| 6 #define MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_ | 6 #define MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 void set_view(View* view) { view_ = view; } | 44 void set_view(View* view) { view_ = view; } |
| 45 | 45 |
| 46 // cc::LayerTreeHostClient implementation. | 46 // cc::LayerTreeHostClient implementation. |
| 47 virtual void WillBeginMainFrame(int frame_id) OVERRIDE; | 47 virtual void WillBeginMainFrame(int frame_id) OVERRIDE; |
| 48 virtual void DidBeginMainFrame() OVERRIDE; | 48 virtual void DidBeginMainFrame() OVERRIDE; |
| 49 virtual void BeginMainFrame(const cc::BeginFrameArgs& args) OVERRIDE; | 49 virtual void BeginMainFrame(const cc::BeginFrameArgs& args) OVERRIDE; |
| 50 virtual void Layout() OVERRIDE; | 50 virtual void Layout() OVERRIDE; |
| 51 virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, | 51 virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, |
| 52 float page_scale, | 52 float page_scale, |
| 53 float top_controls_delta) OVERRIDE; | 53 float top_controls_delta) OVERRIDE; |
| 54 virtual void RequestNewOutputSurface(bool fallback) OVERRIDE; | 54 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( |
| 55 bool fallback) OVERRIDE; |
| 55 virtual void DidInitializeOutputSurface() OVERRIDE; | 56 virtual void DidInitializeOutputSurface() OVERRIDE; |
| 56 virtual void WillCommit() OVERRIDE; | 57 virtual void WillCommit() OVERRIDE; |
| 57 virtual void DidCommit() OVERRIDE; | 58 virtual void DidCommit() OVERRIDE; |
| 58 virtual void DidCommitAndDrawFrame() OVERRIDE; | 59 virtual void DidCommitAndDrawFrame() OVERRIDE; |
| 59 virtual void DidCompleteSwapBuffers() OVERRIDE; | 60 virtual void DidCompleteSwapBuffers() OVERRIDE; |
| 60 virtual void RateLimitSharedMainThreadContext() OVERRIDE {} | 61 virtual void RateLimitSharedMainThreadContext() OVERRIDE {} |
| 61 | 62 |
| 62 // blink::WebLayerTreeView implementation. | 63 // blink::WebLayerTreeView implementation. |
| 63 virtual void setSurfaceReady() OVERRIDE; | 64 virtual void setSurfaceReady() OVERRIDE; |
| 64 virtual void setRootLayer(const blink::WebLayer& layer) OVERRIDE; | 65 virtual void setRootLayer(const blink::WebLayer& layer) OVERRIDE; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 main_thread_compositor_task_runner_; | 123 main_thread_compositor_task_runner_; |
| 123 base::WeakPtr<WebLayerTreeViewImpl> main_thread_bound_weak_ptr_; | 124 base::WeakPtr<WebLayerTreeViewImpl> main_thread_bound_weak_ptr_; |
| 124 | 125 |
| 125 base::WeakPtrFactory<WebLayerTreeViewImpl> weak_factory_; | 126 base::WeakPtrFactory<WebLayerTreeViewImpl> weak_factory_; |
| 126 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImpl); | 127 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImpl); |
| 127 }; | 128 }; |
| 128 | 129 |
| 129 } // namespace mojo | 130 } // namespace mojo |
| 130 | 131 |
| 131 #endif // MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_ | 132 #endif // MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_ |
| OLD | NEW |