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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #include "web/WebFrameWidgetImpl.h" | 42 #include "web/WebFrameWidgetImpl.h" |
43 #include "web/WebLocalFrameImpl.h" | 43 #include "web/WebLocalFrameImpl.h" |
44 #include "wtf/PtrUtil.h" | 44 #include "wtf/PtrUtil.h" |
45 #include <memory> | 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 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, |
56 std::unique_ptr<PageOverlay::Delegate> delegate) | 56 std::unique_ptr<PageOverlay::Delegate> delegate) |
57 : m_frameImpl(frameImpl), m_delegate(std::move(delegate)) {} | 57 : m_frameImpl(frameImpl), m_delegate(std::move(delegate)) {} |
58 | 58 |
59 PageOverlay::~PageOverlay() { | 59 PageOverlay::~PageOverlay() { |
60 if (!m_layer) | 60 if (!m_layer) |
61 return; | 61 return; |
62 | 62 |
(...skipping 55 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 |