What is the difference between WebSiteGenerator class and Has WebView checkbox in doctype

Hello,

does anybody know what the difference is between WebSiteGenerator class and ‘Has WebView’ checkbox in doctype?
Are they two different ways to create WebView? or both are part of the same solution? hopefully somebody can shine a light here, thanks,