#include "ui/touch_selection/touch_handle.h"
#include <algorithm>
#include <cmath>
#include <ostream>
#include "base/check_op.h"
#include "base/notreached.h"
namespace ui {
namespace {
constexpr auto kFadeDuration = …;
constexpr double kFadeDistanceSquared = …;
constexpr float kMinTouchMajorForHitTesting = …;
constexpr float kMaxTouchMajorForHitTesting = …;
bool RectIntersectsCircle(const gfx::RectF& rect,
const gfx::PointF& circle_center,
float circle_radius) { … }
}
static std::ostream& operator<<(std::ostream& os,
const TouchHandleOrientation& orientation) { … }
TouchHandle::TouchHandle(TouchHandleClient* client,
TouchHandleOrientation orientation,
const gfx::RectF& viewport_rect)
: … { … }
TouchHandle::~TouchHandle() { … }
void TouchHandle::SetEnabled(bool enabled) { … }
void TouchHandle::SetVisible(bool visible, AnimationStyle animation_style) { … }
void TouchHandle::SetFocus(const gfx::PointF& top, const gfx::PointF& bottom) { … }
void TouchHandle::SetViewportRect(const gfx::RectF& viewport_rect) { … }
void TouchHandle::SetOrientation(TouchHandleOrientation orientation) { … }
bool TouchHandle::WillHandleTouchEvent(const MotionEvent& event) { … }
bool TouchHandle::IsActive() const { … }
bool TouchHandle::Animate(base::TimeTicks frame_time) { … }
gfx::RectF TouchHandle::GetVisibleBounds() const { … }
void TouchHandle::UpdateHandleLayout() { … }
void TouchHandle::SetTransparent() { … }
gfx::PointF TouchHandle::ComputeHandleOrigin() const { … }
void TouchHandle::BeginDrag() { … }
void TouchHandle::EndDrag() { … }
void TouchHandle::BeginFade() { … }
void TouchHandle::EndFade() { … }
void TouchHandle::SetAlpha(float alpha) { … }
void TouchHandle::SetUpdateLayoutRequired() { … }
}