| 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 WebContentLayerImpl_h | 5 #ifndef WebContentLayerImpl_h |
| 6 #define WebContentLayerImpl_h | 6 #define WebContentLayerImpl_h |
| 7 | 7 |
| 8 #include "ContentLayerChromiumClient.h" | 8 #include "ContentLayerChromiumClient.h" |
| 9 #include "WebLayerImpl.h" | 9 #include "WebLayerImpl.h" |
| 10 #include <public/WebContentLayer.h> | 10 #include <public/WebContentLayer.h> |
| 11 #include <wtf/PassRefPtr.h> | 11 #include <wtf/OwnPtr.h> |
| 12 | 12 |
| 13 namespace WebKit { | 13 namespace WebKit { |
| 14 class WebContentLayerClient; | 14 class WebContentLayerClient; |
| 15 | 15 |
| 16 class WebContentLayerImpl : public WebContentLayer, | 16 class WebContentLayerImpl : public WebContentLayer, |
| 17 public WebCore::ContentLayerChromiumClient { | 17 public WebCore::ContentLayerChromiumClient { |
| 18 public: | 18 public: |
| 19 explicit WebContentLayerImpl(WebContentLayerClient*); | 19 explicit WebContentLayerImpl(WebContentLayerClient*); |
| 20 | 20 |
| 21 // WebContentLayer implementation. | 21 // WebContentLayer implementation. |
| 22 virtual WebLayer* layer() OVERRIDE; | 22 virtual WebLayer* layer() OVERRIDE; |
| 23 virtual void setDoubleSided(bool) OVERRIDE; | 23 virtual void setDoubleSided(bool) OVERRIDE; |
| 24 virtual void setContentsScale(float) OVERRIDE; | 24 virtual void setContentsScale(float) OVERRIDE; |
| 25 virtual void setUseLCDText(bool) OVERRIDE; | 25 virtual void setUseLCDText(bool) OVERRIDE; |
| 26 virtual void setDrawCheckerboardForMissingTiles(bool) OVERRIDE; | 26 virtual void setDrawCheckerboardForMissingTiles(bool) OVERRIDE; |
| 27 | 27 |
| 28 protected: | 28 protected: |
| 29 virtual ~WebContentLayerImpl(); | 29 virtual ~WebContentLayerImpl(); |
| 30 | 30 |
| 31 // ContentLayerChromiumClient implementation. | 31 // ContentLayerChromiumClient implementation. |
| 32 virtual void paintContents(SkCanvas*, const WebCore::IntRect& clip, WebCore:
:FloatRect& opaque) OVERRIDE; | 32 virtual void paintContents(SkCanvas*, const WebCore::IntRect& clip, WebCore:
:FloatRect& opaque) OVERRIDE; |
| 33 | 33 |
| 34 OwnPtr<WebLayerImpl> m_webLayerImpl; | 34 OwnPtr<WebLayerImpl> m_layer; |
| 35 WebContentLayerClient* m_client; | 35 WebContentLayerClient* m_client; |
| 36 bool m_drawsContent; | 36 bool m_drawsContent; |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 } // namespace WebKit | 39 } // namespace WebKit |
| 40 | 40 |
| 41 #endif // WebContentLayerImpl_h | 41 #endif // WebContentLayerImpl_h |
| OLD | NEW |