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

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

Issue 319183004: Prefer to forward-declare GraphicsContext in headers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: schenney nit (pare down platform/geometry/ includes to *Rect.h) Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/platform/scroll/ScrollbarThemeOverlay.h ('k') | Source/web/WebDevToolsAgentImpl.cpp » ('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 13 matching lines...) Expand all
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
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 #include "config.h" 29 #include "config.h"
30 #include "web/PageOverlay.h" 30 #include "web/PageOverlay.h"
31 31
32 #include "core/frame/Settings.h" 32 #include "core/frame/Settings.h"
33 #include "core/page/Page.h" 33 #include "core/page/Page.h"
34 #include "platform/graphics/GraphicsContext.h"
34 #include "platform/graphics/GraphicsLayer.h" 35 #include "platform/graphics/GraphicsLayer.h"
35 #include "platform/graphics/GraphicsLayerClient.h" 36 #include "platform/graphics/GraphicsLayerClient.h"
36 #include "public/platform/WebLayer.h" 37 #include "public/platform/WebLayer.h"
37 #include "public/web/WebPageOverlay.h" 38 #include "public/web/WebPageOverlay.h"
38 #include "public/web/WebViewClient.h" 39 #include "public/web/WebViewClient.h"
39 #include "web/WebViewImpl.h" 40 #include "web/WebViewImpl.h"
40 41
41 using namespace WebCore; 42 using namespace WebCore;
42 43
43 namespace blink { 44 namespace blink {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // this is not on a critical codepath? In order to do so, we'd 159 // this is not on a critical codepath? In order to do so, we'd
159 // have to take scrolling into account. 160 // have to take scrolling into account.
160 const WebSize& size = m_viewImpl->size(); 161 const WebSize& size = m_viewImpl->size();
161 WebRect damagedRect(0, 0, size.width, size.height); 162 WebRect damagedRect(0, 0, size.width, size.height);
162 if (m_viewImpl->client()) 163 if (m_viewImpl->client())
163 m_viewImpl->client()->didInvalidateRect(damagedRect); 164 m_viewImpl->client()->didInvalidateRect(damagedRect);
164 } 165 }
165 } 166 }
166 167
167 } // namespace blink 168 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/scroll/ScrollbarThemeOverlay.h ('k') | Source/web/WebDevToolsAgentImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698