|
Move persistent gesture state to Document, add DocumentUserGestureToken
Non-test gesture tokens are now created as a DocumentUserGestureToken, which take a Document* (which can be null, but such uses are limited). When it is created, it sets the m_hasReceivedUserGesture flag on Document.
Remove UserGestureIndicator::s_processedUserGestureSinceLoad, as Document::m_hasReceivedUserGesture is very similar and not process-wide.
BUG= 624061
Committed: https://crrev.com/26ce312cc8b3f53dc76df85e45c17bba93685fc3
Cr-Commit-Position: refs/heads/master@{#427481}
Total comments: 28
Total comments: 3
Total comments: 1
Total comments: 5
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+294 lines, -180 lines) |
Patch |
 |
M |
content/renderer/render_frame_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
extensions/renderer/dispatcher.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
extensions/renderer/guest_view/guest_view_internal_custom_bindings.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
extensions/renderer/messaging_bindings.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
extensions/renderer/user_gestures_native_handler.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/Document.h
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/Document.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/Source/core/dom/DocumentUserGestureToken.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+45 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/Source/core/dom/DocumentUserGestureTokenTest.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+36 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/Element.cpp
|
View
|
1
2
3
4
7
8
9
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/AutoplayExperimentTest.cpp
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/HTMLVideoElementTest.cpp
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/input/EventHandler.cpp
|
View
|
1
2
3
4
5
6
|
5 chunks |
+24 lines, -18 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/input/GestureManager.cpp
|
View
|
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/input/KeyboardEventManager.cpp
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/input/PointerEventManager.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/input/TouchEventManager.cpp
|
View
|
|
2 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/inspector/DevToolsHost.cpp
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/loader/FrameLoader.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+8 lines, -10 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/page/DragController.cpp
|
View
|
1
2
3
4
5
6
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/page/Page.cpp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
|
View
|
1
2
3
4
5
6
|
2 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/accessibility/AXObject.cpp
|
View
|
1
2
3
4
5
6
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/notifications/Notification.cpp
|
View
|
5
6
8
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/remoteplayback/RemotePlaybackTest.cpp
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp
|
View
|
1
2
3
4
5
|
6 chunks |
+11 lines, -10 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/UserGestureIndicator.h
|
View
|
1
2
3
4
|
3 chunks |
+3 lines, -14 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/UserGestureIndicator.cpp
|
View
|
1
2
3
4
|
3 chunks |
+0 lines, -15 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/UserGestureIndicatorTest.cpp
|
View
|
|
6 chunks |
+23 lines, -17 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp
|
View
|
1
2
3
4
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
|
View
|
1
2
3
4
5
6
|
4 chunks |
+9 lines, -6 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/WebScopedUserGesture.cpp
|
View
|
1
2
3
|
2 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/WebUserGestureIndicator.cpp
|
View
|
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/WebViewImpl.cpp
|
View
|
1
2
3
4
5
6
|
9 chunks |
+24 lines, -23 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/tests/WebFrameTest.cpp
|
View
|
1
2
3
4
5
6
|
10 chunks |
+10 lines, -9 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/tests/WebUserGestureTokenTest.cpp
|
View
|
|
4 chunks |
+3 lines, -7 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/public/web/WebScopedUserGesture.h
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/public/web/WebUserGestureIndicator.h
|
View
|
1
2
3
4
5
|
2 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
Total messages: 84 (51 generated)
|