| 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 <public/WebLayer.h> | 8 #include <public/WebLayer.h> |
| 9 #include <wtf/PassRefPtr.h> | 9 #include <wtf/PassRefPtr.h> |
| 10 #include <wtf/RefPtr.h> | 10 #include <wtf/RefPtr.h> |
| 11 | 11 |
| 12 namespace WebCore { | 12 namespace cc { |
| 13 class LayerChromium; | 13 class LayerChromium; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace WebKit { | 16 namespace WebKit { |
| 17 | 17 |
| 18 class WebLayerImpl : public WebLayer { | 18 class WebLayerImpl : public WebLayer { |
| 19 public: | 19 public: |
| 20 WebLayerImpl(); | 20 WebLayerImpl(); |
| 21 explicit WebLayerImpl(PassRefPtr<WebCore::LayerChromium>); | 21 explicit WebLayerImpl(PassRefPtr<cc::LayerChromium>); |
| 22 virtual ~WebLayerImpl(); | 22 virtual ~WebLayerImpl(); |
| 23 | 23 |
| 24 // WebLayer implementation. | 24 // WebLayer implementation. |
| 25 virtual int id() const OVERRIDE; | 25 virtual int id() const OVERRIDE; |
| 26 virtual void invalidateRect(const WebFloatRect&) OVERRIDE; | 26 virtual void invalidateRect(const WebFloatRect&) OVERRIDE; |
| 27 virtual void invalidate() OVERRIDE; | 27 virtual void invalidate() OVERRIDE; |
| 28 virtual void addChild(WebLayer*) OVERRIDE; | 28 virtual void addChild(WebLayer*) OVERRIDE; |
| 29 virtual void insertChild(WebLayer*, size_t index) OVERRIDE; | 29 virtual void insertChild(WebLayer*, size_t index) OVERRIDE; |
| 30 virtual void replaceChild(WebLayer* reference, WebLayer* newLayer) OVERRIDE; | 30 virtual void replaceChild(WebLayer* reference, WebLayer* newLayer) OVERRIDE; |
| 31 virtual void removeFromParent() OVERRIDE; | 31 virtual void removeFromParent() OVERRIDE; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 virtual WebPoint scrollPosition() const OVERRIDE; | 76 virtual WebPoint scrollPosition() const OVERRIDE; |
| 77 virtual void setMaxScrollPosition(WebSize) OVERRIDE; | 77 virtual void setMaxScrollPosition(WebSize) OVERRIDE; |
| 78 virtual void setScrollable(bool) OVERRIDE; | 78 virtual void setScrollable(bool) OVERRIDE; |
| 79 virtual void setHaveWheelEventHandlers(bool) OVERRIDE; | 79 virtual void setHaveWheelEventHandlers(bool) OVERRIDE; |
| 80 virtual void setShouldScrollOnMainThread(bool) OVERRIDE; | 80 virtual void setShouldScrollOnMainThread(bool) OVERRIDE; |
| 81 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) OVERRIDE; | 81 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) OVERRIDE; |
| 82 virtual void setIsContainerForFixedPositionLayers(bool) OVERRIDE; | 82 virtual void setIsContainerForFixedPositionLayers(bool) OVERRIDE; |
| 83 virtual void setFixedToContainerLayer(bool) OVERRIDE; | 83 virtual void setFixedToContainerLayer(bool) OVERRIDE; |
| 84 virtual void setScrollClient(WebLayerScrollClient*) OVERRIDE; | 84 virtual void setScrollClient(WebLayerScrollClient*) OVERRIDE; |
| 85 | 85 |
| 86 WebCore::LayerChromium* layer() const; | 86 cc::LayerChromium* layer() const; |
| 87 | 87 |
| 88 protected: | 88 protected: |
| 89 RefPtr<WebCore::LayerChromium> m_layer; | 89 RefPtr<cc::LayerChromium> m_layer; |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace WebKit | 92 } // namespace WebKit |
| 93 | 93 |
| 94 #endif // WebLayerImpl_h | 94 #endif // WebLayerImpl_h |
| OLD | NEW |