feat: add MdTextButton to View APIs (#15328)
* view: make button focusable by default * view: add MdTextButton * view: add common methods to LabelButton
This commit is contained in:
parent
43a8b6039e
commit
260778e0fb
10 changed files with 157 additions and 2 deletions
|
@ -13,8 +13,10 @@ namespace atom {
|
|||
|
||||
namespace api {
|
||||
|
||||
Button::Button(views::Button* button) : View(button) {
|
||||
Button::Button(views::Button* impl) : View(impl) {
|
||||
view()->set_owned_by_client();
|
||||
// Make the button focusable as per the platform.
|
||||
button()->SetFocusForPlatform();
|
||||
}
|
||||
|
||||
Button::~Button() {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue