summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/web_contents_adapter_client.h6
-rw-r--r--src/core/web_contents_view_qt.cpp4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/core/web_contents_adapter_client.h b/src/core/web_contents_adapter_client.h
index 9d2054859..559898411 100644
--- a/src/core/web_contents_adapter_client.h
+++ b/src/core/web_contents_adapter_client.h
@@ -79,8 +79,8 @@ public:
: mediaType(MediaTypeNone)
, hasImageContent(false)
, mediaFlags(0)
-#if defined(ENABLE_SPELLCHECK)
, isEditable(false)
+#if defined(ENABLE_SPELLCHECK)
, isSpellCheckerEnabled(false)
#endif
{
@@ -128,8 +128,8 @@ public:
bool hasImageContent;
uint mediaFlags;
QString suggestedFileName;
-#if defined(ENABLE_SPELLCHECK)
bool isEditable;
+#if defined(ENABLE_SPELLCHECK)
bool isSpellCheckerEnabled;
QString misspelledWord;
QStringList spellCheckerSuggestions;
@@ -226,7 +226,7 @@ public:
virtual bool isBeingAdopted() = 0;
virtual void close() = 0;
virtual void windowCloseRejected() = 0;
- virtual bool contextMenuRequested(const WebEngineContextMenuData&) = 0;
+ virtual bool contextMenuRequested(const WebEngineContextMenuData &) = 0;
virtual void navigationRequested(int navigationType, const QUrl &url, int &navigationRequestAction, bool isMainFrame) = 0;
virtual void requestFullScreenMode(const QUrl &origin, bool fullscreen) = 0;
virtual bool isFullScreenMode() const = 0;
diff --git a/src/core/web_contents_view_qt.cpp b/src/core/web_contents_view_qt.cpp
index 370f1e78f..1d39d8af8 100644
--- a/src/core/web_contents_view_qt.cpp
+++ b/src/core/web_contents_view_qt.cpp
@@ -150,7 +150,7 @@ ASSERT_ENUMS_MATCH(WebEngineContextMenuData::MediaControls, blink::WebContextMen
ASSERT_ENUMS_MATCH(WebEngineContextMenuData::MediaCanPrint, blink::WebContextMenuData::MediaCanPrint)
ASSERT_ENUMS_MATCH(WebEngineContextMenuData::MediaCanRotate, blink::WebContextMenuData::MediaCanRotate)
-static WebEngineContextMenuData fromParams(const content::ContextMenuParams &params)
+static inline WebEngineContextMenuData fromParams(const content::ContextMenuParams &params)
{
WebEngineContextMenuData ret;
ret.pos = QPoint(params.x, params.y);
@@ -162,8 +162,8 @@ static WebEngineContextMenuData fromParams(const content::ContextMenuParams &par
ret.hasImageContent = params.has_image_contents;
ret.mediaFlags = params.media_flags;
ret.suggestedFileName = toQt(params.suggested_filename.data());
-#if defined(ENABLE_SPELLCHECK)
ret.isEditable = params.is_editable;
+#if defined(ENABLE_SPELLCHECK)
ret.misspelledWord = toQt(params.misspelled_word);
ret.spellCheckerSuggestions = fromVector(params.dictionary_suggestions);
#endif