Molybden API
Loading...
Searching...
No Matches
molybden::ProfilePrefs Class Referenceabstract

The Chromium profile preferences. More...

#include <profile_prefs.hpp>

Public Member Functions

virtual std::shared_ptr< Profileprofile ()=0
 Returns the profile for these preferences.
 
virtual bool isAutofillEnabled ()=0
 Returns true if the web form autofill for the simple HTML INPUT values, credit cards, or the user data is enabled.
 
virtual void enableAutofill ()=0
 Enables the web form autofill for the simple HTML INPUT values, credit cards, and user data.
 
virtual void disableAutofill ()=0
 Disables the web form autofill for the simple HTML INPUT values, credit cards, and user data.
 
virtual bool isCaretBrowsingEnabled ()=0
 Returns true if the caret browsing is enabled.
 
virtual void enableCaretBrowsing ()=0
 Enables the caret browsing.
 
virtual void disableCaretBrowsing ()=0
 Disables the caret browsing.
 
virtual void enablePdfViewer ()=0
 Enables the built-in PDF viewer.
 
virtual void disablePdfViewer ()=0
 Disables the built-in PDF viewer.
 
virtual bool isPdfViewerEnabled ()=0
 Indicates whether the built-in PDF viewer is enabled or not.
 

Detailed Description

The Chromium profile preferences.

Member Function Documentation

◆ disablePdfViewer()

virtual void molybden::ProfilePrefs::disablePdfViewer ( )
pure virtual

Disables the built-in PDF viewer.

Does nothing if the PDF viewer is already disabled.

◆ enablePdfViewer()

virtual void molybden::ProfilePrefs::enablePdfViewer ( )
pure virtual

Enables the built-in PDF viewer.

Does nothing if the PDF viewer is already enabled.

◆ isAutofillEnabled()

virtual bool molybden::ProfilePrefs::isAutofillEnabled ( )
pure virtual

Returns true if the web form autofill for the simple HTML INPUT values, credit cards, or the user data is enabled.

By default, the autofill is enabled.

Important: the autofill for passwords is always enabled except the cases when a site has an invalid SSL certificate or the scheme is not registered as web-safe. The list of web-safe schemes: HTTP, HTTPS, WS, and WSS.

◆ isCaretBrowsingEnabled()

virtual bool molybden::ProfilePrefs::isCaretBrowsingEnabled ( )
pure virtual

Returns true if the caret browsing is enabled.

The caret browsing allows using the arrow keys to browse the text on web pages. By default, the caret browsing is disabled.

◆ isPdfViewerEnabled()

virtual bool molybden::ProfilePrefs::isPdfViewerEnabled ( )
pure virtual

Indicates whether the built-in PDF viewer is enabled or not.

This preference controls how Molybden handles navigations to web pages embedding PDF documents. When the built-in PDF Viewer is enabled, then PDF documents will be displayed in it. Otherwise, the library will download the PDF document, like any other resource that cannot be rendered in the browser. The download can be configured via the BrowserDelegate::OnStartDownload(const StartDownloadArgs&, std::unique_ptr<StartDownloadAction>)

Changing this preference affects only subsequent navigations and does not affect the already loaded web pages.

By default, PDF Viewer is enabled.


The documentation for this class was generated from the following file: