| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * | 10 * |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #ifndef PageOverlay_h | 29 #ifndef PageOverlay_h |
| 30 #define PageOverlay_h | 30 #define PageOverlay_h |
| 31 | 31 |
| 32 #include "wtf/OwnPtr.h" | 32 #include "wtf/OwnPtr.h" |
| 33 #include "wtf/PassOwnPtr.h" | 33 #include "wtf/PassOwnPtr.h" |
| 34 | 34 |
| 35 namespace WebCore { | 35 namespace blink { |
| 36 class GraphicsContext; | 36 class GraphicsContext; |
| 37 class GraphicsLayer; | 37 class GraphicsLayer; |
| 38 class GraphicsLayerClient; | 38 class GraphicsLayerClient; |
| 39 } | 39 } |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 class OverlayGraphicsLayerClientImpl; | 42 class OverlayGraphicsLayerClientImpl; |
| 43 class WebPageOverlay; | 43 class WebPageOverlay; |
| 44 class WebViewImpl; | 44 class WebViewImpl; |
| 45 struct WebRect; | 45 struct WebRect; |
| 46 | 46 |
| 47 class PageOverlay { | 47 class PageOverlay { |
| 48 public: | 48 public: |
| 49 static PassOwnPtr<PageOverlay> create(WebViewImpl*, WebPageOverlay*); | 49 static PassOwnPtr<PageOverlay> create(WebViewImpl*, WebPageOverlay*); |
| 50 | 50 |
| 51 ~PageOverlay() { } | 51 ~PageOverlay() { } |
| 52 | 52 |
| 53 WebPageOverlay* overlay() const { return m_overlay; } | 53 WebPageOverlay* overlay() const { return m_overlay; } |
| 54 void setOverlay(WebPageOverlay* overlay) { m_overlay = overlay; } | 54 void setOverlay(WebPageOverlay* overlay) { m_overlay = overlay; } |
| 55 | 55 |
| 56 int zOrder() const { return m_zOrder; } | 56 int zOrder() const { return m_zOrder; } |
| 57 void setZOrder(int zOrder) { m_zOrder = zOrder; } | 57 void setZOrder(int zOrder) { m_zOrder = zOrder; } |
| 58 | 58 |
| 59 void clear(); | 59 void clear(); |
| 60 void update(); | 60 void update(); |
| 61 void paintWebFrame(WebCore::GraphicsContext&); | 61 void paintWebFrame(blink::GraphicsContext&); |
| 62 | 62 |
| 63 WebCore::GraphicsLayer* graphicsLayer() const { return m_layer.get(); } | 63 blink::GraphicsLayer* graphicsLayer() const { return m_layer.get(); } |
| 64 | 64 |
| 65 private: | 65 private: |
| 66 PageOverlay(WebViewImpl*, WebPageOverlay*); | 66 PageOverlay(WebViewImpl*, WebPageOverlay*); |
| 67 void invalidateWebFrame(); | 67 void invalidateWebFrame(); |
| 68 | 68 |
| 69 WebViewImpl* m_viewImpl; | 69 WebViewImpl* m_viewImpl; |
| 70 WebPageOverlay* m_overlay; | 70 WebPageOverlay* m_overlay; |
| 71 OwnPtr<WebCore::GraphicsLayerClient> m_layerClient; | 71 OwnPtr<blink::GraphicsLayerClient> m_layerClient; |
| 72 OwnPtr<WebCore::GraphicsLayer> m_layer; | 72 OwnPtr<blink::GraphicsLayer> m_layer; |
| 73 int m_zOrder; | 73 int m_zOrder; |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 } // namespace blink | 76 } // namespace blink |
| 77 | 77 |
| 78 #endif // PageOverlay_h | 78 #endif // PageOverlay_h |
| OLD | NEW |