| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "WebFloatPoint.h" | 31 #include "WebFloatPoint.h" |
| 32 #include "WebNonCopyable.h" | 32 #include "WebNonCopyable.h" |
| 33 #include "WebPrivateOwnPtr.h" | 33 #include "WebPrivateOwnPtr.h" |
| 34 #include "WebSize.h" | 34 #include "WebSize.h" |
| 35 | 35 |
| 36 class SkBitmap; | 36 class SkBitmap; |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 class WebCompositeAndReadbackAsyncCallback; | 40 class WebCompositeAndReadbackAsyncCallback; |
| 41 class WebCompositorAnimationTimeline; |
| 41 class WebLayer; | 42 class WebLayer; |
| 42 struct WebPoint; | 43 struct WebPoint; |
| 43 struct WebSelectionBound; | 44 struct WebSelectionBound; |
| 44 | 45 |
| 45 class WebLayerTreeView { | 46 class WebLayerTreeView { |
| 46 public: | 47 public: |
| 47 virtual ~WebLayerTreeView() { } | 48 virtual ~WebLayerTreeView() { } |
| 48 | 49 |
| 49 // Initialization and lifecycle -------------------------------------- | 50 // Initialization and lifecycle -------------------------------------- |
| 50 | 51 |
| 51 // Sets the root of the tree. The root is set by way of the constructor. | 52 // Sets the root of the tree. The root is set by way of the constructor. |
| 52 virtual void setRootLayer(const WebLayer&) = 0; | 53 virtual void setRootLayer(const WebLayer&) = 0; |
| 53 virtual void clearRootLayer() = 0; | 54 virtual void clearRootLayer() = 0; |
| 54 | 55 |
| 56 virtual void setCompositorAnimationTimeline(WebCompositorAnimationTimeline*)
{ } |
| 55 | 57 |
| 56 // View properties --------------------------------------------------- | 58 // View properties --------------------------------------------------- |
| 57 | 59 |
| 58 virtual void setViewportSize(const WebSize& deviceViewportSize) = 0; | 60 virtual void setViewportSize(const WebSize& deviceViewportSize) = 0; |
| 59 // Gives the viewport size in physical device pixels. | 61 // Gives the viewport size in physical device pixels. |
| 60 virtual WebSize deviceViewportSize() const = 0; | 62 virtual WebSize deviceViewportSize() const = 0; |
| 61 | 63 |
| 62 virtual void setDeviceScaleFactor(float) = 0; | 64 virtual void setDeviceScaleFactor(float) = 0; |
| 63 virtual float deviceScaleFactor() const = 0; | 65 virtual float deviceScaleFactor() const = 0; |
| 64 | 66 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 // Toggles continuous painting | 143 // Toggles continuous painting |
| 142 virtual void setContinuousPaintingEnabled(bool) { } | 144 virtual void setContinuousPaintingEnabled(bool) { } |
| 143 | 145 |
| 144 // Toggles scroll bottleneck rects on the HUD layer | 146 // Toggles scroll bottleneck rects on the HUD layer |
| 145 virtual void setShowScrollBottleneckRects(bool) { } | 147 virtual void setShowScrollBottleneckRects(bool) { } |
| 146 }; | 148 }; |
| 147 | 149 |
| 148 } // namespace blink | 150 } // namespace blink |
| 149 | 151 |
| 150 #endif // WebLayerTreeView_h | 152 #endif // WebLayerTreeView_h |
| OLD | NEW |