Use webContents BrowserContext.
Also fix some code styles.
This commit is contained in:
parent
99bfc9b7f5
commit
969916442f
6 changed files with 78 additions and 66 deletions
|
@ -89,6 +89,7 @@ class WebContents : public mate::EventEmitter,
|
|||
void ToggleDevTools();
|
||||
void InspectElement(int x, int y);
|
||||
void InspectServiceWorker();
|
||||
v8::Local<v8::Value> Session(v8::Isolate* isolate);
|
||||
void HasServiceWorker(const base::Callback<void(bool)>&);
|
||||
void UnregisterServiceWorker(const base::Callback<void(bool)>&);
|
||||
void SetAudioMuted(bool muted);
|
||||
|
@ -239,7 +240,6 @@ class WebContents : public mate::EventEmitter,
|
|||
// Returns the default size of the guestview.
|
||||
gfx::Size GetDefaultSize() const;
|
||||
|
||||
v8::Local<v8::Value> Session(v8::Isolate* isolate);
|
||||
|
||||
v8::Global<v8::Value> session_;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue