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

Unified Diff: third_party/WebKit/WebCore/page/FrameLoadRequest.h

Issue 1116002: Test CL for WebKit try bot. (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 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/WebCore/loader/FrameLoader.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/WebCore/page/FrameLoadRequest.h
===================================================================
--- third_party/WebKit/WebCore/page/FrameLoadRequest.h (revision 57160)
+++ third_party/WebKit/WebCore/page/FrameLoadRequest.h (working copy)
@@ -33,17 +33,23 @@
struct FrameLoadRequest {
public:
FrameLoadRequest()
+ : m_fromUserGestureSet(false)
+ , m_fromUserGesture(false)
{
}
FrameLoadRequest(const ResourceRequest& resourceRequest)
: m_resourceRequest(resourceRequest)
+ , m_fromUserGestureSet(false)
+ , m_fromUserGesture(false)
{
}
FrameLoadRequest(const ResourceRequest& resourceRequest, const String& frameName)
: m_resourceRequest(resourceRequest)
, m_frameName(frameName)
+ , m_fromUserGestureSet(false)
+ , m_fromUserGesture(false)
{
}
@@ -54,10 +60,15 @@
const String& frameName() const { return m_frameName; }
void setFrameName(const String& frameName) { m_frameName = frameName; }
+ bool isFromUserGestureSet() const { return m_fromUserGestureSet; }
+ bool isFromUserGesture() const { ASSERT(m_fromUserGestureSet); return m_fromUserGesture; }
+ void setIsFromUserGesture(bool b) { m_fromUserGestureSet = true; m_fromUserGesture = b; }
private:
ResourceRequest m_resourceRequest;
String m_frameName;
+ bool m_fromUserGestureSet;
+ bool m_fromUserGesture;
};
}
« no previous file with comments | « third_party/WebKit/WebCore/loader/FrameLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698