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

Unified Diff: third_party/WebKit/public/web/WebScopedWindowFocusAllowedIndicator.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
Index: third_party/WebKit/public/web/WebScopedWindowFocusAllowedIndicator.h
diff --git a/third_party/WebKit/public/web/WebScopedWindowFocusAllowedIndicator.h b/third_party/WebKit/public/web/WebScopedWindowFocusAllowedIndicator.h
index 2a020b50233ce4bdcd4e94da2f5dd5748c10e491..31c36f404f5e9df34486566e938be99509ee4a19 100644
--- a/third_party/WebKit/public/web/WebScopedWindowFocusAllowedIndicator.h
+++ b/third_party/WebKit/public/web/WebScopedWindowFocusAllowedIndicator.h
@@ -31,7 +31,8 @@
#ifndef WebScopedWindowFocusAllowedIndicator_h
#define WebScopedWindowFocusAllowedIndicator_h
-#include "public/platform/WebPrivateOwnPtr.h"
+#include "public/platform/WebCommon.h"
+#include <memory>
namespace blink {
@@ -40,14 +41,11 @@ class WebDocument;
class WebScopedWindowFocusAllowedIndicator {
public:
- explicit WebScopedWindowFocusAllowedIndicator(WebDocument* document) { initialize(document); }
- ~WebScopedWindowFocusAllowedIndicator() { reset(); }
+ BLINK_EXPORT explicit WebScopedWindowFocusAllowedIndicator(WebDocument* document);
+ BLINK_EXPORT ~WebScopedWindowFocusAllowedIndicator();
private:
- BLINK_EXPORT void initialize(WebDocument*);
- BLINK_EXPORT void reset();
-
- WebPrivateOwnPtr<ScopedWindowFocusAllowedIndicator> m_private;
+ std::unique_ptr<ScopedWindowFocusAllowedIndicator> m_private;
};
}
« no previous file with comments | « third_party/WebKit/public/web/WebScopedUserGesture.h ('k') | third_party/WebKit/public/web/WebSurroundingText.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698