forked from WebKit/WebKit-http
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Source/WebCore: Add support for consumable user gestures
https://bugs.webkit.org/show_bug.cgi?id=94867 Reviewed by Adam Barth. Adds a static counter of the number of consumable gestures. This is decremented either when a gestures falls out of scope or is consumed via a call to consumeUserGesture(). Planned usage in Chromium is to prevent the piggybacking of multiple popup windows on a single user gesture. No new tests as this should not change behavior. The platform must implement consumable gestures for this to do anything. * bindings/v8/ScriptController.cpp: (WebCore::ScriptController::consumeUserGesture): (WebCore): * bindings/v8/ScriptController.h: (ScriptController): * dom/UserGestureIndicator.cpp: (WebCore): (WebCore::UserGestureIndicator::UserGestureIndicator): (WebCore::UserGestureIndicator::~UserGestureIndicator): (WebCore::UserGestureIndicator::consumeUserGesture): * dom/UserGestureIndicator.h: (WebCore::UserGestureIndicator::processingUserGesture): (UserGestureIndicator): Source/WebKit/chromium: Plumb consumeUserGesture() to the chromium platform layer. https://bugs.webkit.org/show_bug.cgi?id=9475294867 Reviewed by Adam Barth. * public/WebFrame.h: (WebFrame): * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::consumeUserGesture): (WebKit): * src/WebFrameImpl.h: (WebFrameImpl): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126609 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Cris Neckar
committed
Aug 24, 2012
1 parent
d91b10f
commit d038605
Showing
7 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters