Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: Source/web/PageOverlay.cpp

Issue 634893002: Replace OVERRIDE and FINAL with override and final in WebKit/public (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/web/NotificationPresenterImpl.h ('k') | Source/web/PopupContainer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/web/NotificationPresenterImpl.h ('k') | Source/web/PopupContainer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698