blob: cc6b8cd4ab50693b6fc5a57ebf0e9e9348b1838f [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_LOGIN_UI_LOGIN_BUTTON_H_
#define ASH_LOGIN_UI_LOGIN_BUTTON_H_
#include "ash/ash_export.h"
#include "ui/views/controls/button/image_button.h"
#include "ui/views/view.h"
namespace ash {
// This class adds ripple effects for touch targets in the lockscreen.
class ASH_EXPORT LoginButton : public views::ImageButton {
public:
explicit LoginButton(views::ButtonListener* listener);
~LoginButton() override;
// views::InkDropHost:
std::unique_ptr<views::InkDrop> CreateInkDrop() override;
std::unique_ptr<views::InkDropMask> CreateInkDropMask() const override;
std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override;
std::unique_ptr<views::InkDropHighlight> CreateInkDropHighlight()
const override;
private:
int GetInkDropRadius() const;
DISALLOW_COPY_AND_ASSIGN(LoginButton);
};
} // namespace ash
#endif // ASH_LOGIN_UI_LOGIN_BUTTON_H_