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

Unified Diff: Source/core/page/Page.h

Issue 225853005: Add support for setting password value gated on user's gesture in a page (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « Source/core/html/forms/PasswordInputType.cpp ('k') | Source/core/page/Page.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/Page.h
diff --git a/Source/core/page/Page.h b/Source/core/page/Page.h
index f09626010b73984641fc17603d237795fb5fa493..783d3e9f4c6d11651f566089b727bd632d6615f7 100644
--- a/Source/core/page/Page.h
+++ b/Source/core/page/Page.h
@@ -224,6 +224,10 @@ public:
void willBeDestroyed();
+ // Note: m_userGestureSeenSinceLastNavigation is set to false on every page navigation.
+ void setUserGestureSeen() { m_userGestureSeenSinceLastNavigation = true; }
+ bool userGestureSeenSinceLastNavigation() const { return m_userGestureSeenSinceLastNavigation; }
+
protected:
PageLifecycleNotifier& lifecycleNotifier();
@@ -290,6 +294,8 @@ private:
bool m_isPainting;
#endif
+ bool m_userGestureSeenSinceLastNavigation;
+
HashSet<MultisamplingChangedObserver*> m_multisamplingChangedObservers;
// A pointer to all the interfaces provided to in-process Frames for this Page.
« no previous file with comments | « Source/core/html/forms/PasswordInputType.cpp ('k') | Source/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698