Simplify how we find NativeWindow from WebContents
This commit is contained in:
parent
cda8b119e2
commit
7c69c2846b
4 changed files with 8 additions and 16 deletions
|
@ -91,8 +91,8 @@ class NativeWindow : public brightray::DefaultWebContentsDelegate,
|
|||
// managing the window's live.
|
||||
static NativeWindow* Create(const mate::Dictionary& options);
|
||||
|
||||
// Find a window from its process id and routing id.
|
||||
static NativeWindow* FromRenderView(int process_id, int routing_id);
|
||||
// Find a window from its WebContents
|
||||
static NativeWindow* FromWebContents(content::WebContents* web_contents);
|
||||
|
||||
void InitFromOptions(const mate::Dictionary& options);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue