| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 virtual ~Delegate() { } | 58 virtual ~Delegate() { } |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 static PassOwnPtr<PageOverlay> create(WebViewImpl*, PageOverlay::Delegate*); | 61 static PassOwnPtr<PageOverlay> create(WebViewImpl*, PageOverlay::Delegate*); |
| 62 | 62 |
| 63 ~PageOverlay(); | 63 ~PageOverlay(); |
| 64 | 64 |
| 65 void update(); | 65 void update(); |
| 66 | 66 |
| 67 GraphicsLayer* graphicsLayer() const { return m_layer.get(); } | 67 GraphicsLayer* graphicsLayer() const { return m_layer.get(); } |
| 68 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi
s); } | 68 DisplayItemClient displayItemClient() const { return DisplayItemClient(this)
; } |
| 69 String debugName() const { return "PageOverlay"; } | 69 String debugName() const { return "PageOverlay"; } |
| 70 | 70 |
| 71 // GraphicsLayerClient implementation | 71 // GraphicsLayerClient implementation |
| 72 void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPain
tingPhase, const IntRect* inClip) const override; | 72 void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPain
tingPhase, const IntRect* inClip) const override; |
| 73 String debugName(const GraphicsLayer*) override; | 73 String debugName(const GraphicsLayer*) override; |
| 74 | 74 |
| 75 private: | 75 private: |
| 76 PageOverlay(WebViewImpl*, PageOverlay::Delegate*); | 76 PageOverlay(WebViewImpl*, PageOverlay::Delegate*); |
| 77 | 77 |
| 78 WebViewImpl* m_viewImpl; | 78 WebViewImpl* m_viewImpl; |
| 79 Persistent<PageOverlay::Delegate> m_delegate; | 79 Persistent<PageOverlay::Delegate> m_delegate; |
| 80 OwnPtr<GraphicsLayer> m_layer; | 80 OwnPtr<GraphicsLayer> m_layer; |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 } // namespace blink | 83 } // namespace blink |
| 84 | 84 |
| 85 #endif // PageOverlay_h | 85 #endif // PageOverlay_h |
| OLD | NEW |