| 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/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 void RequestNewOutputSurface() override; | 60 void RequestNewOutputSurface() override; |
| 61 void DidFailToInitializeOutputSurface() override; | 61 void DidFailToInitializeOutputSurface() override; |
| 62 void DidInitializeOutputSurface() override; | 62 void DidInitializeOutputSurface() override; |
| 63 void WillCommit() override; | 63 void WillCommit() override; |
| 64 void DidCommit() override; | 64 void DidCommit() override; |
| 65 void DidCommitAndDrawFrame() override; | 65 void DidCommitAndDrawFrame() override; |
| 66 void DidCompleteSwapBuffers() override; | 66 void DidCompleteSwapBuffers() override; |
| 67 void RateLimitSharedMainThreadContext() override {} | 67 void RateLimitSharedMainThreadContext() override {} |
| 68 | 68 |
| 69 // blink::WebLayerTreeView implementation. | 69 // blink::WebLayerTreeView implementation. |
| 70 virtual void setSurfaceReady(); | |
| 71 virtual void setRootLayer(const blink::WebLayer& layer); | 70 virtual void setRootLayer(const blink::WebLayer& layer); |
| 72 virtual void clearRootLayer(); | 71 virtual void clearRootLayer(); |
| 73 virtual void setViewportSize(const blink::WebSize& device_viewport_size); | 72 virtual void setViewportSize(const blink::WebSize& device_viewport_size); |
| 74 virtual blink::WebSize deviceViewportSize() const; | 73 virtual blink::WebSize deviceViewportSize() const; |
| 75 virtual void setDeviceScaleFactor(float); | 74 virtual void setDeviceScaleFactor(float); |
| 76 virtual float deviceScaleFactor() const; | 75 virtual float deviceScaleFactor() const; |
| 77 virtual void setBackgroundColor(blink::WebColor color); | 76 virtual void setBackgroundColor(blink::WebColor color); |
| 78 virtual void setHasTransparentBackground(bool has_transparent_background); | 77 virtual void setHasTransparentBackground(bool has_transparent_background); |
| 79 virtual void setOverhangBitmap(const SkBitmap& bitmap); | 78 virtual void setOverhangBitmap(const SkBitmap& bitmap); |
| 80 virtual void setVisible(bool visible); | 79 virtual void setVisible(bool visible); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 main_thread_compositor_task_runner_; | 127 main_thread_compositor_task_runner_; |
| 129 base::WeakPtr<WebLayerTreeViewImpl> main_thread_bound_weak_ptr_; | 128 base::WeakPtr<WebLayerTreeViewImpl> main_thread_bound_weak_ptr_; |
| 130 | 129 |
| 131 base::WeakPtrFactory<WebLayerTreeViewImpl> weak_factory_; | 130 base::WeakPtrFactory<WebLayerTreeViewImpl> weak_factory_; |
| 132 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImpl); | 131 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImpl); |
| 133 }; | 132 }; |
| 134 | 133 |
| 135 } // namespace mojo | 134 } // namespace mojo |
| 136 | 135 |
| 137 #endif // MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_ | 136 #endif // MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_ |
| OLD | NEW |