Add background page web contents type

This commit is contained in:
Kevin Sawicki 2016-06-14 09:27:36 -07:00
parent ee0bab6389
commit f29801ad2b
3 changed files with 19 additions and 5 deletions

View file

@ -44,9 +44,10 @@ class WebContents : public mate::TrackableObject<WebContents>,
public content::WebContentsObserver {
public:
enum Type {
BACKGROUND_PAGE, // A DevTools extension background page.
BROWSER_WINDOW, // Used by BrowserWindow.
WEB_VIEW, // Used by <webview>.
REMOTE, // Thin wrap around an existing WebContents.
WEB_VIEW, // Used by <webview>.
};
// For node.js callback function type: function(error, buffer)