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:
Cheng Zhao 2018-10-23 23:57:13 +09:00 committed by John Kleinschmidt
parent 43a8b6039e
commit 260778e0fb
10 changed files with 157 additions and 2 deletions

View file

@ -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() {}