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

Unified Diff: third_party/WebKit/Source/web/LinkHighlightImpl.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/LinkHighlightImpl.h
diff --git a/third_party/WebKit/Source/web/LinkHighlightImpl.h b/third_party/WebKit/Source/web/LinkHighlightImpl.h
index d92a28a7ecd2cf877745496d52f7d84548f54c30..86c28fc314404fa8dcb41480fcf89f2fc1c61123 100644
--- a/third_party/WebKit/Source/web/LinkHighlightImpl.h
+++ b/third_party/WebKit/Source/web/LinkHighlightImpl.h
@@ -36,7 +36,7 @@
#include "public/platform/WebContentLayerClient.h"
#include "web/WebExport.h"
#include "wtf/Forward.h"
-#include "wtf/OwnPtr.h"
+#include <memory>
namespace blink {
@@ -52,7 +52,7 @@ class WEB_EXPORT LinkHighlightImpl final : public LinkHighlight
, public CompositorAnimationDelegate
, public CompositorAnimationPlayerClient {
public:
- static PassOwnPtr<LinkHighlightImpl> create(Node*, WebViewImpl*);
+ static std::unique_ptr<LinkHighlightImpl> create(Node*, WebViewImpl*);
~LinkHighlightImpl() override;
WebContentLayer* contentLayer();
@@ -91,15 +91,15 @@ private:
// size since the last call to this function.
bool computeHighlightLayerPathAndPosition(const LayoutBoxModelObject&);
- OwnPtr<WebContentLayer> m_contentLayer;
- OwnPtr<WebLayer> m_clipLayer;
+ std::unique_ptr<WebContentLayer> m_contentLayer;
+ std::unique_ptr<WebLayer> m_clipLayer;
Path m_path;
Persistent<Node> m_node;
WebViewImpl* m_owningWebViewImpl;
GraphicsLayer* m_currentGraphicsLayer;
bool m_isScrollingGraphicsLayer;
- OwnPtr<CompositorAnimationPlayer> m_compositorPlayer;
+ std::unique_ptr<CompositorAnimationPlayer> m_compositorPlayer;
bool m_geometryNeedsUpdate;
bool m_isAnimating;
« no previous file with comments | « third_party/WebKit/Source/web/InspectorOverlay.cpp ('k') | third_party/WebKit/Source/web/LinkHighlightImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698