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