blob: bab80be97c31b574d2f1eb7205164a8cdf71b4ea [file] [log] [blame]
// Copyright 2021 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_PROJECTOR_UI_PROJECTOR_BUTTON_H_
#define ASH_PROJECTOR_UI_PROJECTOR_BUTTON_H_
#include "ash/ash_export.h"
#include "ui/views/controls/button/image_button.h"
namespace ash {
// Projector button base class, which handles common styles (rounded background,
// size, etc) and ink drop. The button is also toggleable. This is used by
// |ProjectorColorButton|, |ProjectorImageButton|, etc.
class ASH_EXPORT ProjectorButton : public views::ToggleImageButton {
public:
const int kProjectorButtonSize = 32;
explicit ProjectorButton(views::Button::PressedCallback callback);
ProjectorButton(const ProjectorButton&) = delete;
ProjectorButton& operator=(const ProjectorButton&) = delete;
~ProjectorButton() override = default;
// views::ToggleImageButton:
void OnPaintBackground(gfx::Canvas* canvas) override;
void OnThemeChanged() override;
};
} // namespace ash
#endif // ASH_PROJECTOR_UI_PROJECTOR_BUTTON_H_