| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 WebLayerImpl_h | 5 #ifndef WebLayerImpl_h |
| 6 #define WebLayerImpl_h | 6 #define WebLayerImpl_h |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h" | 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h" |
| 10 | 10 |
| 11 namespace cc { | 11 namespace cc { |
| 12 class LayerChromium; | 12 class Layer; |
| 13 } | 13 } |
| 14 | 14 |
| 15 namespace WebKit { | 15 namespace WebKit { |
| 16 | 16 |
| 17 class WebLayerImpl : public WebLayer { | 17 class WebLayerImpl : public WebLayer { |
| 18 public: | 18 public: |
| 19 WebLayerImpl(); | 19 WebLayerImpl(); |
| 20 explicit WebLayerImpl(scoped_refptr<cc::LayerChromium>); | 20 explicit WebLayerImpl(scoped_refptr<cc::Layer>); |
| 21 virtual ~WebLayerImpl(); | 21 virtual ~WebLayerImpl(); |
| 22 | 22 |
| 23 // WebLayer implementation. | 23 // WebLayer implementation. |
| 24 virtual int id() const OVERRIDE; | 24 virtual int id() const OVERRIDE; |
| 25 virtual void invalidateRect(const WebFloatRect&) OVERRIDE; | 25 virtual void invalidateRect(const WebFloatRect&) OVERRIDE; |
| 26 virtual void invalidate() OVERRIDE; | 26 virtual void invalidate() OVERRIDE; |
| 27 virtual void addChild(WebLayer*) OVERRIDE; | 27 virtual void addChild(WebLayer*) OVERRIDE; |
| 28 virtual void insertChild(WebLayer*, size_t index) OVERRIDE; | 28 virtual void insertChild(WebLayer*, size_t index) OVERRIDE; |
| 29 virtual void replaceChild(WebLayer* reference, WebLayer* newLayer) OVERRIDE; | 29 virtual void replaceChild(WebLayer* reference, WebLayer* newLayer) OVERRIDE; |
| 30 virtual void removeFromParent() OVERRIDE; | 30 virtual void removeFromParent() OVERRIDE; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 virtual void setShouldScrollOnMainThread(bool) OVERRIDE; | 83 virtual void setShouldScrollOnMainThread(bool) OVERRIDE; |
| 84 virtual bool shouldScrollOnMainThread() const; | 84 virtual bool shouldScrollOnMainThread() const; |
| 85 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) OVERRIDE; | 85 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) OVERRIDE; |
| 86 virtual WebVector<WebRect> nonFastScrollableRegion() const; | 86 virtual WebVector<WebRect> nonFastScrollableRegion() const; |
| 87 virtual void setIsContainerForFixedPositionLayers(bool) OVERRIDE; | 87 virtual void setIsContainerForFixedPositionLayers(bool) OVERRIDE; |
| 88 virtual bool isContainerForFixedPositionLayers() const; | 88 virtual bool isContainerForFixedPositionLayers() const; |
| 89 virtual void setFixedToContainerLayer(bool) OVERRIDE; | 89 virtual void setFixedToContainerLayer(bool) OVERRIDE; |
| 90 virtual bool fixedToContainerLayer() const; | 90 virtual bool fixedToContainerLayer() const; |
| 91 virtual void setScrollClient(WebLayerScrollClient*) OVERRIDE; | 91 virtual void setScrollClient(WebLayerScrollClient*) OVERRIDE; |
| 92 | 92 |
| 93 cc::LayerChromium* layer() const; | 93 cc::Layer* layer() const; |
| 94 | 94 |
| 95 protected: | 95 protected: |
| 96 scoped_refptr<cc::LayerChromium> m_layer; | 96 scoped_refptr<cc::Layer> m_layer; |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 } // namespace WebKit | 99 } // namespace WebKit |
| 100 | 100 |
| 101 #endif // WebLayerImpl_h | 101 #endif // WebLayerImpl_h |
| OLD | NEW |