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

Unified Diff: public/web/WebFrame.h

Issue 516753002: Only set fake UserGestureIndicator for tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Only set for tests Created 6 years, 4 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/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebFrame.h
diff --git a/public/web/WebFrame.h b/public/web/WebFrame.h
index 152ba41805fee80d2b7a23727b68e7c805dae727..68954fb6fa88d8e1b71268af005ae37242c7a0a1 100644
--- a/public/web/WebFrame.h
+++ b/public/web/WebFrame.h
@@ -302,6 +302,11 @@ public:
virtual v8::Handle<v8::Value> executeScriptAndReturnValue(
const WebScriptSource&) = 0;
+ // ONLY FOR TESTS: Same as above but sets a fake UserGestureIndicator before
+ // execution.
+ virtual v8::Handle<v8::Value> executeScriptAndReturnValueForTests(
+ const WebScriptSource&);
+
// worldID must be > 0 (as 0 represents the main world).
// worldID must be < EmbedderWorldIdLimit, high number used internally.
virtual void executeScriptInIsolatedWorld(
« no previous file with comments | « Source/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698