| 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 24 matching lines...) Expand all Loading... |
| 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 "platform/wtf/PtrUtil.h" |
| 41 #include "public/platform/WebLayer.h" | 41 #include "public/platform/WebLayer.h" |
| 42 #include "public/web/WebViewClient.h" | 42 #include "public/web/WebViewClient.h" |
| 43 #include "web/WebDevToolsAgentImpl.h" | 43 #include "web/WebDevToolsAgentImpl.h" |
| 44 #include "web/WebFrameWidgetImpl.h" | 44 #include "web/WebFrameWidgetImpl.h" |
| 45 #include "web/WebLocalFrameImpl.h" | |
| 46 | 45 |
| 47 namespace blink { | 46 namespace blink { |
| 48 | 47 |
| 49 std::unique_ptr<PageOverlay> PageOverlay::Create( | 48 std::unique_ptr<PageOverlay> PageOverlay::Create( |
| 50 WebLocalFrameImpl* frame_impl, | 49 WebLocalFrameImpl* frame_impl, |
| 51 std::unique_ptr<PageOverlay::Delegate> delegate) { | 50 std::unique_ptr<PageOverlay::Delegate> delegate) { |
| 52 return WTF::WrapUnique(new PageOverlay(frame_impl, std::move(delegate))); | 51 return WTF::WrapUnique(new PageOverlay(frame_impl, std::move(delegate))); |
| 53 } | 52 } |
| 54 | 53 |
| 55 PageOverlay::PageOverlay(WebLocalFrameImpl* frame_impl, | 54 PageOverlay::PageOverlay(WebLocalFrameImpl* frame_impl, |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 const IntRect& interest_rect) const { | 118 const IntRect& interest_rect) const { |
| 120 DCHECK(layer_); | 119 DCHECK(layer_); |
| 121 delegate_->PaintPageOverlay(*this, gc, interest_rect.Size()); | 120 delegate_->PaintPageOverlay(*this, gc, interest_rect.Size()); |
| 122 } | 121 } |
| 123 | 122 |
| 124 String PageOverlay::DebugName(const GraphicsLayer*) const { | 123 String PageOverlay::DebugName(const GraphicsLayer*) const { |
| 125 return "WebViewImpl Page Overlay Content Layer"; | 124 return "WebViewImpl Page Overlay Content Layer"; |
| 126 } | 125 } |
| 127 | 126 |
| 128 } // namespace blink | 127 } // namespace blink |
| OLD | NEW |