#include "chrome/browser/enterprise/watermark/watermark_example.h"
#include <memory>
#include "cc/paint/paint_canvas.h"
#include "chrome/browser/enterprise/watermark/watermark_view.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/geometry/transform.h"
#include "ui/gfx/skia_paint_util.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/controls/button/checkbox.h"
#include "ui/views/controls/label.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/box_layout_view.h"
#include "ui/views/layout/layout_manager.h"
namespace {
class GradientView : public views::View { … };
class CustomLayoutManager : views::LayoutManager { … };
BEGIN_METADATA(…)
}
WatermarkExample::WatermarkExample()
: … { … }
void WatermarkExample::CreateExampleView(views::View* container) { … }
std::unique_ptr<views::BoxLayoutView> WatermarkExample::AddSliderGroup(
const std::string& name,
const std::vector<SliderInfo>& slider_infos,
std::vector<views::Slider*>& sliders,
std::vector<views::Label*>& labels) { … }
void WatermarkExample::SliderValueChanged(views::Slider* sender,
float value,
float old_value,
views::SliderChangeReason reason) { … }
void WatermarkExample::UpdateWatermarkViewBackground() { … }
WatermarkExample::~WatermarkExample() = default;
WatermarkTextArea::WatermarkTextArea(enterprise_watermark::WatermarkView* view)
: … { … }
void WatermarkTextArea::OnTextChanged() { … }
BEGIN_METADATA(…)