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

Unified Diff: third_party/WebKit/public/web/WebScopedUserGesture.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/WebScopedUserGesture.h
diff --git a/third_party/WebKit/public/web/WebScopedUserGesture.h b/third_party/WebKit/public/web/WebScopedUserGesture.h
index a4e3903f3f4dc20439ba672f8492318d829aa197..4210f7c064d636129cbee074e79bc7124fa230fe 100644
--- a/third_party/WebKit/public/web/WebScopedUserGesture.h
+++ b/third_party/WebKit/public/web/WebScopedUserGesture.h
@@ -31,7 +31,8 @@
#ifndef WebScopedUserGesture_h
#define WebScopedUserGesture_h
-#include "../platform/WebPrivateOwnPtr.h"
+#include "public/platform/WebCommon.h"
+#include <memory>
namespace blink {
@@ -53,16 +54,12 @@ class WebUserGestureToken;
// gesture.
class WebScopedUserGesture {
public:
- explicit WebScopedUserGesture(const WebUserGestureToken& token) { initializeWithToken(token); }
- WebScopedUserGesture() { initialize(); }
- ~WebScopedUserGesture() { reset(); }
+ BLINK_EXPORT explicit WebScopedUserGesture(const WebUserGestureToken& token);
+ BLINK_EXPORT WebScopedUserGesture();
+ BLINK_EXPORT ~WebScopedUserGesture();
private:
- BLINK_EXPORT void initialize();
- BLINK_EXPORT void initializeWithToken(const WebUserGestureToken&);
- BLINK_EXPORT void reset();
-
- WebPrivateOwnPtr<UserGestureIndicator> m_indicator;
+ std::unique_ptr<UserGestureIndicator> m_indicator;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/public/web/WebFrame.h ('k') | third_party/WebKit/public/web/WebScopedWindowFocusAllowedIndicator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698