| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 virtual void setHasTransparentBackground(bool has_transparent_background); | 82 virtual void setHasTransparentBackground(bool has_transparent_background); |
| 83 virtual void setVisible(bool visible); | 83 virtual void setVisible(bool visible); |
| 84 virtual void setPageScaleFactorAndLimits(float page_scale_factor, | 84 virtual void setPageScaleFactorAndLimits(float page_scale_factor, |
| 85 float minimum, | 85 float minimum, |
| 86 float maximum); | 86 float maximum); |
| 87 virtual void startPageScaleAnimation(const blink::WebPoint& destination, | 87 virtual void startPageScaleAnimation(const blink::WebPoint& destination, |
| 88 bool use_anchor, | 88 bool use_anchor, |
| 89 float new_page_scale, | 89 float new_page_scale, |
| 90 double duration_sec); | 90 double duration_sec); |
| 91 virtual void heuristicsForGpuRasterizationUpdated(bool matches_heuristic) {} | 91 virtual void heuristicsForGpuRasterizationUpdated(bool matches_heuristic) {} |
| 92 virtual void setTopControlsContentOffset(float offset) {} | |
| 93 virtual void setNeedsAnimate(); | 92 virtual void setNeedsAnimate(); |
| 94 virtual bool commitRequested() const; | 93 virtual bool commitRequested() const; |
| 95 virtual void didStopFlinging() {} | 94 virtual void didStopFlinging() {} |
| 96 virtual void compositeAndReadbackAsync( | 95 virtual void compositeAndReadbackAsync( |
| 97 blink::WebCompositeAndReadbackAsyncCallback* callback) {} | 96 blink::WebCompositeAndReadbackAsyncCallback* callback) {} |
| 98 virtual void finishAllRendering(); | 97 virtual void finishAllRendering(); |
| 99 virtual void setDeferCommits(bool defer_commits) {} | 98 virtual void setDeferCommits(bool defer_commits) {} |
| 100 virtual void registerForAnimations(blink::WebLayer* layer); | 99 virtual void registerForAnimations(blink::WebLayer* layer); |
| 101 virtual void registerViewportLayers( | 100 virtual void registerViewportLayers( |
| 102 const blink::WebLayer* overscrollElasticityLayer, | 101 const blink::WebLayer* overscrollElasticityLayer, |
| (...skipping 25 matching lines...) Expand all 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 html_viewer | 134 } // namespace html_viewer |
| 136 | 135 |
| 137 #endif // MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_ | 136 #endif // MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_ |
| OLD | NEW |