diff options
Diffstat (limited to 'chromium/ui/views/controls/button/toggle_button.cc')
-rw-r--r-- | chromium/ui/views/controls/button/toggle_button.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/chromium/ui/views/controls/button/toggle_button.cc b/chromium/ui/views/controls/button/toggle_button.cc index 0362e8cf428..e64e389141f 100644 --- a/chromium/ui/views/controls/button/toggle_button.cc +++ b/chromium/ui/views/controls/button/toggle_button.cc @@ -126,7 +126,6 @@ ToggleButton::ToggleButton(PressedCallback callback) slide_animation_.SetTweenType(gfx::Tween::LINEAR); thumb_view_ = AddChildView(std::make_unique<ThumbView>()); SetInkDropMode(InkDropMode::ON); - SetFocusForPlatform(); // TODO(pbos): Update the highlight-path shape so that a FocusRing can be used // on top of it to increase contrast. Disabling it for now addresses a // regression in crbug.com/1031983, but a matching FocusRing would probably be @@ -135,9 +134,6 @@ ToggleButton::ToggleButton(PressedCallback callback) SetHasInkDropActionOnClick(true); } -ToggleButton::ToggleButton(ButtonListener* listener) - : ToggleButton(PressedCallback(listener, this)) {} - ToggleButton::~ToggleButton() { // Destroying ink drop early allows ink drop layer to be properly removed, SetInkDropMode(InkDropMode::OFF); |