chromium/ui/views/view_model.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ui/views/view_model.h"

#include <stddef.h>

#include "base/check_op.h"
#include "base/ranges/algorithm.h"
#include "ui/views/view.h"

namespace views {

// views in `entries_` are owned by their parents, no need to delete them.
ViewModelBase::~ViewModelBase() = default;

void ViewModelBase::Remove(size_t index) {}

void ViewModelBase::Move(size_t index, size_t target_index) {}

void ViewModelBase::MoveViewOnly(size_t index, size_t target_index) {}

void ViewModelBase::Clear() {}

std::optional<size_t> ViewModelBase::GetIndexOfView(const View* view) const {}

ViewModelBase::ViewModelBase() = default;

void ViewModelBase::AddUnsafe(View* view, size_t index) {}

}  // namespace views