| 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 "WebLayerImpl.h" | |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "cc/content_layer_client.h" | |
| 11 #include "third_party/WebKit/Source/Platform/chromium/public/WebContentLayer.h" | |
| 12 | |
| 13 namespace cc { | |
| 14 class IntRect; | |
| 15 class FloatRect; | |
| 16 } | |
| 17 | |
| 18 namespace WebKit { | |
| 19 class WebContentLayerClient; | |
| 20 | |
| 21 class WebContentLayerImpl : public WebContentLayer, | |
| 22 public cc::ContentLayerChromiumClient { | |
| 23 public: | |
| 24 explicit WebContentLayerImpl(WebContentLayerClient*); | |
| 25 | |
| 26 // WebContentLayer implementation. | |
| 27 virtual WebLayer* layer() OVERRIDE; | |
| 28 virtual void setDoubleSided(bool) OVERRIDE; | |
| 29 virtual void setBoundsContainPageScale(bool) OVERRIDE; | |
| 30 virtual bool boundsContainPageScale() const OVERRIDE; | |
| 31 virtual void setUseLCDText(bool) OVERRIDE; | |
| 32 virtual void setDrawCheckerboardForMissingTiles(bool) OVERRIDE; | |
| 33 | |
| 34 protected: | |
| 35 virtual ~WebContentLayerImpl(); | |
| 36 | |
| 37 // ContentLayerChromiumClient implementation. | |
| 38 virtual void paintContents(SkCanvas*, const cc::IntRect& clip, cc::FloatRect
& opaque) OVERRIDE; | |
| 39 | |
| 40 scoped_ptr<WebLayerImpl> m_layer; | |
| 41 WebContentLayerClient* m_client; | |
| 42 bool m_drawsContent; | |
| 43 }; | |
| 44 | |
| 45 } // namespace WebKit | |
| 46 | |
| 47 #endif // WebContentLayerImpl_h | |
| OLD | NEW |