Commit 37be332c authored by Peter Kasting's avatar Peter Kasting Committed by Commit Bot

Replace null ButtonListener*s with null Button::PressedCallbacks.

Bug: 772945
Change-Id: Ibeba130c3ad900eb279fd5b6e7e2ab0ba63f545b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2501061
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Commit-Queue: James Cook <jamescook@chromium.org>
Reviewed-by: default avatarJames Cook <jamescook@chromium.org>
Cr-Commit-Position: refs/heads/master@{#821295}
parent ed16c5f9
......@@ -79,7 +79,7 @@ END_METADATA
HUDTabButton::HUDTabButton(Style style,
const DisplayMode display_mode,
const base::string16& text)
: views::LabelButton(nullptr, text),
: views::LabelButton(views::Button::PressedCallback(), text),
style_(style),
display_mode_(display_mode) {
SetHorizontalAlignment(gfx::ALIGN_CENTER);
......
......@@ -18,7 +18,7 @@ namespace ash {
ShelfButton::ShelfButton(Shelf* shelf,
ShelfButtonDelegate* shelf_button_delegate)
: Button(nullptr),
: Button(Button::PressedCallback()),
shelf_(shelf),
shelf_button_delegate_(shelf_button_delegate) {
DCHECK(shelf_button_delegate_);
......
......@@ -30,7 +30,7 @@ class DummyButton : public views::Button {
DISALLOW_COPY_AND_ASSIGN(DummyButton);
};
DummyButton::DummyButton() : views::Button(nullptr) {}
DummyButton::DummyButton() : views::Button(views::Button::PressedCallback()) {}
// A simple light weight test double dummy for a ui::Event.
class DummyEvent : public ui::Event {
......
......@@ -126,7 +126,7 @@ class AsyncWindowStateChangeObserver : public WindowStateObserver,
// role button as the overview focus widget's contents.
class OverviewFocusButton : public views::Button {
public:
OverviewFocusButton() : views::Button(/*listener=*/nullptr) {
OverviewFocusButton() : views::Button(views::Button::PressedCallback()) {
// Make this not focusable to avoid accessibility error since this view has
// no accessible name.
SetFocusBehavior(FocusBehavior::NEVER);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment