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

Unified Diff: third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp

Issue 2408333004: Move persistent gesture state to Document, add DocumentUserGestureToken (Closed)
Patch Set: Rebase Created 4 years, 2 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/inspector/ThreadDebugger.cpp
diff --git a/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp b/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp
index cefc8d3079dba864d9b02f1cfdcc5cc805e2ca43..f3e1edfd727892f4c577ff8b78de903e94773b91 100644
--- a/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp
+++ b/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp
@@ -17,6 +17,7 @@
#include "bindings/core/v8/V8Node.h"
#include "bindings/core/v8/V8NodeList.h"
#include "bindings/core/v8/V8ScriptRunner.h"
+#include "core/dom/DocumentUserGestureToken.h"
#include "core/inspector/ConsoleMessage.h"
#include "core/inspector/InspectorDOMDebuggerAgent.h"
#include "core/inspector/InspectorTraceEvents.h"
@@ -136,8 +137,8 @@ void ThreadDebugger::promiseRejectionRevoked(v8::Local<v8::Context> context,
}
void ThreadDebugger::beginUserGesture() {
- m_userGestureIndicator =
- wrapUnique(new UserGestureIndicator(UserGestureToken::create()));
+ m_userGestureIndicator = wrapUnique(
+ new UserGestureIndicator(DocumentUserGestureToken::create(nullptr)));
}
void ThreadDebugger::endUserGesture() {

Powered by Google App Engine
This is Rietveld 408576698