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