summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Page/Page.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/Page/Page.h')
-rw-r--r--Userland/Libraries/LibWeb/Page/Page.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Page/Page.h b/Userland/Libraries/LibWeb/Page/Page.h
index 2857920477..7bd0fbdee4 100644
--- a/Userland/Libraries/LibWeb/Page/Page.h
+++ b/Userland/Libraries/LibWeb/Page/Page.h
@@ -114,6 +114,8 @@ public:
void dismiss_dialog();
void accept_dialog();
+ bool pdf_viewer_supported() const { return m_pdf_viewer_supported; }
+
private:
PageClient& m_client;
@@ -139,6 +141,12 @@ private:
Optional<Empty> m_pending_alert_response;
Optional<bool> m_pending_confirm_response;
Optional<DeprecatedString> m_pending_prompt_response;
+
+ // https://html.spec.whatwg.org/multipage/system-state.html#pdf-viewer-supported
+ // Each user agent has a PDF viewer supported boolean, whose value is implementation-defined (and might vary according to user preferences).
+ // Spec Note: This value also impacts the navigation processing model.
+ // FIXME: Actually support pdf viewing
+ bool m_pdf_viewer_supported { false };
};
class PageClient {