| 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/OwnPtr.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 setBoundsContainPageScale(bool) OVERRIDE; |
| 25 virtual bool boundsContainPageScale() const OVERRIDE; |
| 25 virtual void setUseLCDText(bool) OVERRIDE; | 26 virtual void setUseLCDText(bool) OVERRIDE; |
| 26 virtual void setDrawCheckerboardForMissingTiles(bool) OVERRIDE; | 27 virtual void setDrawCheckerboardForMissingTiles(bool) OVERRIDE; |
| 27 | 28 |
| 28 protected: | 29 protected: |
| 29 virtual ~WebContentLayerImpl(); | 30 virtual ~WebContentLayerImpl(); |
| 30 | 31 |
| 31 // ContentLayerChromiumClient implementation. | 32 // ContentLayerChromiumClient implementation. |
| 32 virtual void paintContents(SkCanvas*, const WebCore::IntRect& clip, WebCore:
:FloatRect& opaque) OVERRIDE; | 33 virtual void paintContents(SkCanvas*, const WebCore::IntRect& clip, WebCore:
:FloatRect& opaque) OVERRIDE; |
| 33 | 34 |
| 34 OwnPtr<WebLayerImpl> m_layer; | 35 OwnPtr<WebLayerImpl> m_layer; |
| 35 WebContentLayerClient* m_client; | 36 WebContentLayerClient* m_client; |
| 36 bool m_drawsContent; | 37 bool m_drawsContent; |
| 37 }; | 38 }; |
| 38 | 39 |
| 39 } // namespace WebKit | 40 } // namespace WebKit |
| 40 | 41 |
| 41 #endif // WebContentLayerImpl_h | 42 #endif // WebContentLayerImpl_h |
| OLD | NEW |