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

Unified Diff: third_party/WebKit/Source/core/frame/Frame.h

Issue 2625773002: Reenable framebusting (Closed)
Patch Set: Fix unit tests Created 3 years, 11 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/core/frame/Frame.h
diff --git a/third_party/WebKit/Source/core/frame/Frame.h b/third_party/WebKit/Source/core/frame/Frame.h
index 5f0aec9661d5f574e2c77278ab873dd9aee6c008..dd718a7d0db6c9c26a83dd8fb6975f9ee3c5a59a 100644
--- a/third_party/WebKit/Source/core/frame/Frame.h
+++ b/third_party/WebKit/Source/core/frame/Frame.h
@@ -89,8 +89,6 @@ class CORE_EXPORT Frame : public GarbageCollectedFinalized<Frame> {
void disconnectOwnerElement();
virtual bool shouldClose() = 0;
- virtual void setDocumentHasReceivedUserGesture() = 0;
-
FrameClient* client() const;
// NOTE: Page is moving out of Blink up into the browser process as
@@ -147,6 +145,9 @@ class CORE_EXPORT Frame : public GarbageCollectedFinalized<Frame> {
virtual void didChangeVisibilityState();
+ void setDocumentHasReceivedUserGesture();
+ bool hasReceivedUserGesture() const { return m_hasReceivedUserGesture; }
+
bool isDetaching() const { return m_isDetaching; }
protected:
@@ -158,6 +159,7 @@ class CORE_EXPORT Frame : public GarbageCollectedFinalized<Frame> {
Member<FrameOwner> m_owner;
Member<DOMWindow> m_domWindow;
+ bool m_hasReceivedUserGesture = false;
bool m_isDetaching = false;
private:

Powered by Google App Engine
This is Rietveld 408576698