refactor: move set_owned_by_client calls to base View (#22739)
* refactor: move set_owned_by_client() to WebContentsView * refactor: do set_owned_by_client() in View
This commit is contained in:
parent
aa15a2cc03
commit
42f138282f
6 changed files with 9 additions and 18 deletions
|
@ -13,7 +13,6 @@ namespace electron {
|
|||
namespace api {
|
||||
|
||||
Button::Button(views::Button* impl) : View(impl) {
|
||||
view()->set_owned_by_client();
|
||||
// Make the button focusable as per the platform.
|
||||
button()->SetFocusForPlatform();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue