| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #include <memory> | 31 #include <memory> |
| 32 #include "core/frame/LocalFrame.h" | 32 #include "core/frame/LocalFrame.h" |
| 33 #include "core/frame/VisualViewport.h" | 33 #include "core/frame/VisualViewport.h" |
| 34 #include "core/page/Page.h" | 34 #include "core/page/Page.h" |
| 35 #include "core/page/scrolling/ScrollingCoordinator.h" | 35 #include "core/page/scrolling/ScrollingCoordinator.h" |
| 36 #include "platform/graphics/GraphicsContext.h" | 36 #include "platform/graphics/GraphicsContext.h" |
| 37 #include "platform/graphics/GraphicsLayer.h" | 37 #include "platform/graphics/GraphicsLayer.h" |
| 38 #include "platform/graphics/GraphicsLayerClient.h" | 38 #include "platform/graphics/GraphicsLayerClient.h" |
| 39 #include "platform/scroll/MainThreadScrollingReason.h" | 39 #include "platform/scroll/MainThreadScrollingReason.h" |
| 40 #include "platform/wtf/PtrUtil.h" |
| 40 #include "public/platform/WebLayer.h" | 41 #include "public/platform/WebLayer.h" |
| 41 #include "public/web/WebViewClient.h" | 42 #include "public/web/WebViewClient.h" |
| 42 #include "web/WebDevToolsAgentImpl.h" | 43 #include "web/WebDevToolsAgentImpl.h" |
| 43 #include "web/WebFrameWidgetImpl.h" | 44 #include "web/WebFrameWidgetImpl.h" |
| 44 #include "web/WebLocalFrameImpl.h" | 45 #include "web/WebLocalFrameImpl.h" |
| 45 #include "wtf/PtrUtil.h" | |
| 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 Loading... |
| 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 |
| OLD | NEW |