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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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
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 10 matching lines...) Expand all
21 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 21 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
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 "web/PageOverlay.h" 29 #include "web/PageOverlay.h"
30 30
31 #include <memory>
31 #include "core/frame/FrameHost.h" 32 #include "core/frame/FrameHost.h"
32 #include "core/frame/LocalFrame.h" 33 #include "core/frame/LocalFrame.h"
33 #include "core/frame/VisualViewport.h" 34 #include "core/frame/VisualViewport.h"
34 #include "core/page/scrolling/ScrollingCoordinator.h" 35 #include "core/page/scrolling/ScrollingCoordinator.h"
35 #include "platform/graphics/GraphicsContext.h" 36 #include "platform/graphics/GraphicsContext.h"
36 #include "platform/graphics/GraphicsLayer.h" 37 #include "platform/graphics/GraphicsLayer.h"
37 #include "platform/graphics/GraphicsLayerClient.h" 38 #include "platform/graphics/GraphicsLayerClient.h"
38 #include "platform/scroll/MainThreadScrollingReason.h" 39 #include "platform/scroll/MainThreadScrollingReason.h"
39 #include "public/platform/WebLayer.h" 40 #include "public/platform/WebLayer.h"
40 #include "public/web/WebViewClient.h" 41 #include "public/web/WebViewClient.h"
41 #include "web/WebDevToolsAgentImpl.h" 42 #include "web/WebDevToolsAgentImpl.h"
42 #include "web/WebFrameWidgetImpl.h" 43 #include "web/WebFrameWidgetImpl.h"
43 #include "web/WebLocalFrameImpl.h" 44 #include "web/WebLocalFrameImpl.h"
44 #include "wtf/PtrUtil.h" 45 #include "wtf/PtrUtil.h"
45 #include <memory>
46 46
47 namespace blink { 47 namespace blink {
48 48
49 std::unique_ptr<PageOverlay> PageOverlay::create( 49 std::unique_ptr<PageOverlay> PageOverlay::create(
50 WebLocalFrameImpl* frameImpl, 50 WebLocalFrameImpl* frameImpl,
51 std::unique_ptr<PageOverlay::Delegate> delegate) { 51 std::unique_ptr<PageOverlay::Delegate> delegate) {
52 return WTF::wrapUnique(new PageOverlay(frameImpl, std::move(delegate))); 52 return WTF::wrapUnique(new PageOverlay(frameImpl, std::move(delegate)));
53 } 53 }
54 54
55 PageOverlay::PageOverlay(WebLocalFrameImpl* frameImpl, 55 PageOverlay::PageOverlay(WebLocalFrameImpl* frameImpl,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 const IntRect& interestRect) const { 118 const IntRect& interestRect) const {
119 DCHECK(m_layer); 119 DCHECK(m_layer);
120 m_delegate->paintPageOverlay(*this, gc, interestRect.size()); 120 m_delegate->paintPageOverlay(*this, gc, interestRect.size());
121 } 121 }
122 122
123 String PageOverlay::debugName(const GraphicsLayer*) const { 123 String PageOverlay::debugName(const GraphicsLayer*) const {
124 return "WebViewImpl Page Overlay Content Layer"; 124 return "WebViewImpl Page Overlay Content Layer";
125 } 125 }
126 126
127 } // namespace blink 127 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/PageOverlay.h ('k') | third_party/WebKit/Source/web/PageOverlayTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698