Commit acce2537 authored by Pierre Rossi's avatar Pierre Rossi
Browse files

Add static asserts for internal file picker enum


Keeping it in sync with its content equivalent.

Change-Id: If0dbd79844b836ee8fe26b1e9c414f355c026302
Reviewed-by: default avatarAndras Becsi <andras.becsi@theqtcompany.com>
Showing with 5 additions and 0 deletions
...@@ -808,6 +808,11 @@ void WebContentsAdapter::dpiScaleChanged() ...@@ -808,6 +808,11 @@ void WebContentsAdapter::dpiScaleChanged()
impl->NotifyScreenInfoChanged(); impl->NotifyScreenInfoChanged();
} }
ASSERT_ENUMS_MATCH(WebContentsAdapterClient::Open, content::FileChooserParams::Open)
ASSERT_ENUMS_MATCH(WebContentsAdapterClient::OpenMultiple, content::FileChooserParams::OpenMultiple)
ASSERT_ENUMS_MATCH(WebContentsAdapterClient::UploadFolder, content::FileChooserParams::UploadFolder)
ASSERT_ENUMS_MATCH(WebContentsAdapterClient::Save, content::FileChooserParams::Save)
void WebContentsAdapter::filesSelectedInChooser(const QStringList &fileList, WebContentsAdapterClient::FileChooserMode mode) void WebContentsAdapter::filesSelectedInChooser(const QStringList &fileList, WebContentsAdapterClient::FileChooserMode mode)
{ {
Q_D(WebContentsAdapter); Q_D(WebContentsAdapter);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment