#include "cc/input/snap_selection_strategy.h"
#include <cmath>
namespace cc {
std::unique_ptr<SnapSelectionStrategy>
SnapSelectionStrategy::CreateForEndPosition(const gfx::PointF& current_position,
bool scrolled_x,
bool scrolled_y) { … }
std::unique_ptr<SnapSelectionStrategy>
SnapSelectionStrategy::CreateForDirection(gfx::PointF current_position,
gfx::Vector2dF step,
bool use_fractional_offsets,
SnapStopAlwaysFilter filter) { … }
std::unique_ptr<SnapSelectionStrategy>
SnapSelectionStrategy::CreateForEndAndDirection(gfx::PointF current_position,
gfx::Vector2dF displacement,
bool use_fractional_offsets) { … }
std::unique_ptr<SnapSelectionStrategy>
SnapSelectionStrategy::CreateForTargetElement(gfx::PointF current_position) { … }
bool SnapSelectionStrategy::HasIntendedDirection() const { … }
bool SnapSelectionStrategy::ShouldRespectSnapStop() const { … }
bool SnapSelectionStrategy::IsValidSnapArea(SearchAxis axis,
const SnapAreaData& area) const { … }
bool SnapSelectionStrategy::ShouldPrioritizeSnapTargets() const { … }
bool SnapSelectionStrategy::UsingFractionalOffsets() const { … }
bool EndPositionStrategy::ShouldSnapOnX() const { … }
bool EndPositionStrategy::ShouldSnapOnY() const { … }
gfx::PointF EndPositionStrategy::intended_position() const { … }
gfx::PointF EndPositionStrategy::base_position() const { … }
bool EndPositionStrategy::IsValidSnapPosition(SearchAxis axis,
float position) const { … }
bool EndPositionStrategy::HasIntendedDirection() const { … }
bool EndPositionStrategy::ShouldPrioritizeSnapTargets() const { … }
const std::optional<SnapSearchResult>& EndPositionStrategy::PickBestResult(
const std::optional<SnapSearchResult>& closest,
const std::optional<SnapSearchResult>& covering) const { … }
std::unique_ptr<SnapSelectionStrategy> EndPositionStrategy::Clone() const { … }
bool DirectionStrategy::ShouldSnapOnX() const { … }
bool DirectionStrategy::ShouldSnapOnY() const { … }
gfx::PointF DirectionStrategy::intended_position() const { … }
gfx::PointF DirectionStrategy::base_position() const { … }
bool DirectionStrategy::IsValidSnapPosition(SearchAxis axis,
float position) const { … }
bool DirectionStrategy::IsValidSnapArea(SearchAxis axis,
const SnapAreaData& area) const { … }
const std::optional<SnapSearchResult>& DirectionStrategy::PickBestResult(
const std::optional<SnapSearchResult>& closest,
const std::optional<SnapSearchResult>& covering) const { … }
bool DirectionStrategy::UsingFractionalOffsets() const { … }
std::unique_ptr<SnapSelectionStrategy> DirectionStrategy::Clone() const { … }
bool EndAndDirectionStrategy::ShouldSnapOnX() const { … }
bool EndAndDirectionStrategy::ShouldSnapOnY() const { … }
gfx::PointF EndAndDirectionStrategy::intended_position() const { … }
gfx::PointF EndAndDirectionStrategy::base_position() const { … }
bool EndAndDirectionStrategy::IsValidSnapPosition(SearchAxis axis,
float position) const { … }
bool EndAndDirectionStrategy::ShouldRespectSnapStop() const { … }
const std::optional<SnapSearchResult>& EndAndDirectionStrategy::PickBestResult(
const std::optional<SnapSearchResult>& closest,
const std::optional<SnapSearchResult>& covering) const { … }
bool EndAndDirectionStrategy::UsingFractionalOffsets() const { … }
std::unique_ptr<SnapSelectionStrategy> EndAndDirectionStrategy::Clone() const { … }
}