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

Unified Diff: third_party/WebKit/public/web/WebSurroundingText.h

Issue 2143323002: Remove WebPrivateOwnPtr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 5 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
« no previous file with comments | « third_party/WebKit/public/web/WebScopedWindowFocusAllowedIndicator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebSurroundingText.h
diff --git a/third_party/WebKit/public/web/WebSurroundingText.h b/third_party/WebKit/public/web/WebSurroundingText.h
index 464837c3cef2fe7ec45cfd48d8b2b7b746c6de45..4b7af237d49b41fb24174dd6abf4523df264be3b 100644
--- a/third_party/WebKit/public/web/WebSurroundingText.h
+++ b/third_party/WebKit/public/web/WebSurroundingText.h
@@ -25,10 +25,10 @@
#ifndef WebSurroundingText_h
#define WebSurroundingText_h
-#include "../platform/WebPrivateOwnPtr.h"
#include "../platform/WebString.h"
#include "WebNode.h"
#include "WebRange.h"
+#include <memory>
namespace blink {
@@ -41,11 +41,10 @@ struct WebPoint;
// API. It allows caller to know the text surrounding a point or a range.
class WebSurroundingText {
public:
- WebSurroundingText() { }
- ~WebSurroundingText() { reset(); }
+ BLINK_EXPORT WebSurroundingText();
+ BLINK_EXPORT ~WebSurroundingText();
BLINK_EXPORT bool isNull() const;
- BLINK_EXPORT void reset();
// Initializes the object to get the surrounding text centered in the
// position relative to a provided node.
@@ -78,7 +77,7 @@ public:
BLINK_EXPORT WebRange rangeFromContentOffsets(size_t startOffsetInContent, size_t endOffsetInContent);
protected:
- WebPrivateOwnPtr<SurroundingText> m_private;
+ std::unique_ptr<SurroundingText> m_private;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/public/web/WebScopedWindowFocusAllowedIndicator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698