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 | 64 |
65 class OverlayGraphicsLayerClientImpl : public GraphicsLayerClient { | 65 class OverlayGraphicsLayerClientImpl : public GraphicsLayerClient { |
66 public: | 66 public: |
67 static PassOwnPtr<OverlayGraphicsLayerClientImpl> create(WebPageOverlay* ove
rlay) | 67 static PassOwnPtr<OverlayGraphicsLayerClientImpl> create(WebPageOverlay* ove
rlay) |
68 { | 68 { |
69 return adoptPtr(new OverlayGraphicsLayerClientImpl(overlay)); | 69 return adoptPtr(new OverlayGraphicsLayerClientImpl(overlay)); |
70 } | 70 } |
71 | 71 |
72 virtual ~OverlayGraphicsLayerClientImpl() { } | 72 virtual ~OverlayGraphicsLayerClientImpl() { } |
73 | 73 |
74 virtual void notifyAnimationStarted(const GraphicsLayer*, double monotonicTi
me) OVERRIDE { } | 74 virtual void notifyAnimationStarted(const GraphicsLayer*, double monotonicTi
me) override { } |
75 | 75 |
76 virtual void paintContents(const GraphicsLayer*, GraphicsContext& gc, Graphi
csLayerPaintingPhase, const IntRect& inClip) | 76 virtual void paintContents(const GraphicsLayer*, GraphicsContext& gc, Graphi
csLayerPaintingPhase, const IntRect& inClip) |
77 { | 77 { |
78 gc.save(); | 78 gc.save(); |
79 m_overlay->paintPageOverlay(ToWebCanvas(&gc)); | 79 m_overlay->paintPageOverlay(ToWebCanvas(&gc)); |
80 gc.restore(); | 80 gc.restore(); |
81 } | 81 } |
82 | 82 |
83 virtual String debugName(const GraphicsLayer* graphicsLayer) OVERRIDE | 83 virtual String debugName(const GraphicsLayer* graphicsLayer) override |
84 { | 84 { |
85 return String("WebViewImpl Page Overlay Content Layer"); | 85 return String("WebViewImpl Page Overlay Content Layer"); |
86 } | 86 } |
87 | 87 |
88 private: | 88 private: |
89 explicit OverlayGraphicsLayerClientImpl(WebPageOverlay* overlay) | 89 explicit OverlayGraphicsLayerClientImpl(WebPageOverlay* overlay) |
90 : m_overlay(overlay) | 90 : m_overlay(overlay) |
91 { | 91 { |
92 } | 92 } |
93 | 93 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 // this is not on a critical codepath? In order to do so, we'd | 155 // this is not on a critical codepath? In order to do so, we'd |
156 // have to take scrolling into account. | 156 // have to take scrolling into account. |
157 const WebSize& size = m_viewImpl->size(); | 157 const WebSize& size = m_viewImpl->size(); |
158 WebRect damagedRect(0, 0, size.width, size.height); | 158 WebRect damagedRect(0, 0, size.width, size.height); |
159 if (m_viewImpl->client()) | 159 if (m_viewImpl->client()) |
160 m_viewImpl->client()->didInvalidateRect(damagedRect); | 160 m_viewImpl->client()->didInvalidateRect(damagedRect); |
161 } | 161 } |
162 } | 162 } |
163 | 163 |
164 } // namespace blink | 164 } // namespace blink |
OLD | NEW |