summaryrefslogtreecommitdiffstats
path: root/src/core/web_engine_settings.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-10-23 15:07:16 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-11-02 09:53:21 +0000
commit18ea13a7f5e083538910646c52a96a5e4642d1f2 (patch)
tree93e9d944d16030669be07d5d597bdf4f2d323d64 /src/core/web_engine_settings.h
parentba63729ed9a39e122475ac8860cee27fc235241b (diff)
Add setting to inhibit autoplay until user interaction
Pass through the PlaybackRequiresUserGesture Chromium setting which Chrome enables by default on Android. Task-number: QTBUG-60799 Change-Id: I105fc7d558f9b67417a0047ecb1efe7677817ea4 Reviewed-by: Florian Bruhin <qt-project.org@the-compiler.org> Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/core/web_engine_settings.h')
-rw-r--r--src/core/web_engine_settings.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/web_engine_settings.h b/src/core/web_engine_settings.h
index ea647a61f..5881303a2 100644
--- a/src/core/web_engine_settings.h
+++ b/src/core/web_engine_settings.h
@@ -85,7 +85,8 @@ public:
AllowRunningInsecureContent,
AllowGeolocationOnInsecureOrigins,
AllowWindowActivationFromJavaScript,
- ShowScrollBars
+ ShowScrollBars,
+ PlaybackRequiresUserGesture,
};
// Must match the values from the public API in qwebenginesettings.h.
@@ -125,6 +126,7 @@ public:
void setAttribute(Attribute, bool on);
bool testAttribute(Attribute) const;
void resetAttribute(Attribute);
+ bool isAttributeExplicitlySet(Attribute) const;
void setFontFamily(FontFamily, const QString &);
QString fontFamily(FontFamily);