#include "ui/gfx/selection_model.h"
#include <ostream>
#include "base/check.h"
#include "base/format_macros.h"
#include "base/strings/stringprintf.h"
namespace gfx {
SelectionModel::SelectionModel()
: … { … }
SelectionModel::SelectionModel(size_t position, LogicalCursorDirection affinity)
: … { … }
SelectionModel::SelectionModel(const Range& selection,
LogicalCursorDirection affinity)
: … { … }
SelectionModel::SelectionModel(const std::vector<Range>& selections,
LogicalCursorDirection affinity)
: … { … }
SelectionModel::SelectionModel(const SelectionModel& selection_model) = default;
SelectionModel::~SelectionModel() = default;
void SelectionModel::AddSecondarySelection(const Range& selection) { … }
std::vector<Range> SelectionModel::GetAllSelections() const { … }
bool SelectionModel::operator==(const SelectionModel& sel) const { … }
std::string SelectionModel::ToString() const { … }
std::ostream& operator<<(std::ostream& out, const SelectionModel& model) { … }
}