blob: 73dd361236b5e1664c1aa9b7a17c75f36d2b268e [file] [log] [blame]
// Copyright 2018 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 CHROME_BROWSER_UI_VIEWS_MD_TEXT_BUTTON_WITH_DOWN_ARROW_H_
#define CHROME_BROWSER_UI_VIEWS_MD_TEXT_BUTTON_WITH_DOWN_ARROW_H_
#include <string>
#include "base/macros.h"
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/views/controls/button/md_text_button.h"
namespace views {
// The material design themed text button with a drop arrow displayed on the
// right side.
class MdTextButtonWithDownArrow : public MdTextButton {
public:
METADATA_HEADER(MdTextButtonWithDownArrow);
MdTextButtonWithDownArrow(PressedCallback callback,
const std::u16string& text);
MdTextButtonWithDownArrow(const MdTextButtonWithDownArrow&) = delete;
MdTextButtonWithDownArrow& operator=(const MdTextButtonWithDownArrow&) =
delete;
~MdTextButtonWithDownArrow() override;
protected:
// views::MdTextButton:
void OnThemeChanged() override;
private:
void SetDropArrowImage();
};
} // namespace views
#endif // CHROME_BROWSER_UI_VIEWS_MD_TEXT_BUTTON_WITH_DOWN_ARROW_H_