#include "ui/views/examples/button_example.h"
#include <memory>
#include <utility>
#include "base/strings/utf_string_conversions.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/image/image.h"
#include "ui/gfx/scoped_canvas.h"
#include "ui/gfx/skia_paint_util.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/animation/ink_drop.h"
#include "ui/views/animation/ink_drop_highlight.h"
#include "ui/views/background.h"
#include "ui/views/controls/button/image_button.h"
#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/button/md_text_button.h"
#include "ui/views/examples/examples_color_id.h"
#include "ui/views/examples/examples_window.h"
#include "ui/views/examples/grit/views_examples_resources.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/box_layout_view.h"
#include "ui/views/layout/fill_layout.h"
#include "ui/views/metadata/view_factory.h"
#include "ui/views/resources/grit/views_resources.h"
#include "ui/views/style/platform_style.h"
#include "ui/views/vector_icons.h"
#include "ui/views/view.h"
#include "ui/views/view_utils.h"
ASCIIToUTF16;
namespace {
const char16_t kLabelButton[] = …;
const char16_t kLongText[] = …;
}
namespace views::examples {
class SolidRoundRectPainterWithShadow : public Painter { … };
class FabButton : public views::MdTextButton { … };
BEGIN_METADATA(…)
ButtonExample::ButtonExample() : … { … }
ButtonExample::~ButtonExample() = default;
void ButtonExample::CreateExampleView(View* container) { … }
void ButtonExample::LabelButtonPressed(LabelButton* label_button,
const ui::Event& event) { … }
void ButtonExample::ImageButtonPressed() { … }
}