chore: remove native_mate (Part 7) (#20561)
* refactor: use gin converters in api::Protocol * refactor: convert JS constructor impl to gin * refactor: use InitWithArgs helper * fix: gin_helper::Dictionary should behave the same with mate * fix cpplint warnings * refactor: no more need to patch gin/dictionary.h
This commit is contained in:
parent
6c6bff81ac
commit
1ecfcc8c70
43 changed files with 274 additions and 368 deletions
|
@ -80,7 +80,7 @@ void WebContentsView::WebContentsDestroyed() {
|
|||
|
||||
// static
|
||||
mate::WrappableBase* WebContentsView::New(
|
||||
mate::Arguments* args,
|
||||
gin::Arguments* args,
|
||||
mate::Handle<WebContents> web_contents) {
|
||||
// Currently we only support InspectableWebContents, e.g. the WebContents
|
||||
// created by users directly. To support devToolsWebContents we need to create
|
||||
|
@ -101,7 +101,7 @@ mate::WrappableBase* WebContentsView::New(
|
|||
// Constructor call.
|
||||
auto* view = new WebContentsView(args->isolate(), web_contents,
|
||||
web_contents->managed_web_contents());
|
||||
view->InitWith(args->isolate(), args->GetThis());
|
||||
view->InitWithArgs(args);
|
||||
return view;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue