#include "ui/touch_selection/touch_handle_drawable_aura.h"
#include "ui/aura/window.h"
#include "ui/aura/window_targeter.h"
#include "ui/base/cursor/cursor.h"
#include "ui/base/hit_test.h"
#include "ui/base/models/image_model.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/ui_base_features.h"
#include "ui/color/color_id.h"
#include "ui/color/color_provider.h"
#include "ui/color/color_provider_manager.h"
#include "ui/compositor/layer.h"
#include "ui/compositor/paint_recorder.h"
#include "ui/events/event.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/geometry/outsets_f.h"
#include "ui/gfx/geometry/point_conversions.h"
#include "ui/gfx/image/image.h"
#include "ui/native_theme/native_theme.h"
#include "ui/native_theme/native_theme_observer.h"
#include "ui/resources/grit/ui_resources.h"
#include "ui/touch_selection//vector_icons/vector_icons.h"
namespace ui {
namespace {
constexpr int kSelectionHandleVerticalOffset = …;
constexpr int kSelectionHandlePadding = …;
constexpr float kSelectionHandleMaxOpacity = …;
constexpr float kEpsilon = …;
gfx::Image* GetHandleImage(TouchHandleOrientation orientation) { … }
ImageModel GetHandleVectorIcon(TouchHandleOrientation orientation) { … }
bool IsNearlyZero(float value) { … }
}
TouchHandleDrawableAura::TouchHandleDrawableAura(aura::Window* parent)
: … { … }
TouchHandleDrawableAura::~TouchHandleDrawableAura() = default;
void TouchHandleDrawableAura::UpdateWindowBounds() { … }
bool TouchHandleDrawableAura::IsVisible() const { … }
void TouchHandleDrawableAura::SetEnabled(bool enabled) { … }
void TouchHandleDrawableAura::SetOrientation(TouchHandleOrientation orientation,
bool mirror_vertical,
bool mirror_horizontal) { … }
void TouchHandleDrawableAura::SetOrigin(const gfx::PointF& position) { … }
void TouchHandleDrawableAura::SetAlpha(float alpha) { … }
gfx::RectF TouchHandleDrawableAura::GetVisibleBounds() const { … }
float TouchHandleDrawableAura::GetDrawableHorizontalPaddingRatio() const { … }
void TouchHandleDrawableAura::OnPaintLayer(const PaintContext& context) { … }
void TouchHandleDrawableAura::OnNativeThemeUpdated(
NativeTheme* observed_theme) { … }
}