| 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/RefPtr.h> | 10 #include <wtf/RefPtr.h> |
| 10 | 11 |
| 11 namespace WebCore { | 12 namespace WebCore { |
| 12 class LayerChromium; | 13 class LayerChromium; |
| 13 } | 14 } |
| 14 | 15 |
| 15 namespace WebKit { | 16 namespace WebKit { |
| 16 | 17 |
| 17 class WebLayerImpl : public WebLayer { | 18 class WebLayerImpl : public WebLayer { |
| 18 public: | 19 public: |
| 20 WebLayerImpl(); |
| 19 explicit WebLayerImpl(PassRefPtr<WebCore::LayerChromium>); | 21 explicit WebLayerImpl(PassRefPtr<WebCore::LayerChromium>); |
| 20 virtual ~WebLayerImpl(); | 22 virtual ~WebLayerImpl(); |
| 21 | 23 |
| 22 // WebLayer implementation. | 24 // WebLayer implementation. |
| 23 virtual int id() const OVERRIDE; | 25 virtual int id() const OVERRIDE; |
| 24 virtual void invalidateRect(const WebFloatRect&) OVERRIDE; | 26 virtual void invalidateRect(const WebFloatRect&) OVERRIDE; |
| 25 virtual void invalidate() OVERRIDE; | 27 virtual void invalidate() OVERRIDE; |
| 26 virtual void addChild(WebLayer*) OVERRIDE; | 28 virtual void addChild(WebLayer*) OVERRIDE; |
| 27 virtual void insertChild(WebLayer*, size_t index) OVERRIDE; | 29 virtual void insertChild(WebLayer*, size_t index) OVERRIDE; |
| 28 virtual void replaceChild(WebLayer* reference, WebLayer* newLayer) OVERRIDE; | 30 virtual void replaceChild(WebLayer* reference, WebLayer* newLayer) OVERRIDE; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 82 |
| 81 WebCore::LayerChromium* layer() const; | 83 WebCore::LayerChromium* layer() const; |
| 82 | 84 |
| 83 protected: | 85 protected: |
| 84 RefPtr<WebCore::LayerChromium> m_layer; | 86 RefPtr<WebCore::LayerChromium> m_layer; |
| 85 }; | 87 }; |
| 86 | 88 |
| 87 } // namespace WebKit | 89 } // namespace WebKit |
| 88 | 90 |
| 89 #endif // WebLayerImpl_h | 91 #endif // WebLayerImpl_h |
| OLD | NEW |