chromium/components/user_education/common/tutorial_description.cc

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

#include "components/user_education/common/tutorial_description.h"

#include <string_view>
#include <variant>

#include "components/user_education/common/events.h"
#include "third_party/abseil-cpp/absl/types/variant.h"
#include "ui/base/interaction/element_identifier.h"
#include "ui/base/interaction/element_tracker.h"
#include "ui/base/interaction/interaction_sequence.h"

namespace user_education {

ScopedTutorialState::ScopedTutorialState(ui::ElementContext context)
    :{}
ScopedTutorialState::~ScopedTutorialState() = default;

TutorialDescription::TutorialDescription() = default;
TutorialDescription::TutorialDescription(TutorialDescription&&) noexcept =
    default;
TutorialDescription& TutorialDescription::operator=(
    TutorialDescription&&) noexcept = default;
TutorialDescription::~TutorialDescription() = default;

TutorialDescription::Step::Step() = default;

TutorialDescription::Step::Step(ElementSpecifier element,
                                ui::InteractionSequence::StepType step_type,
                                HelpBubbleArrow arrow,
                                ui::CustomElementEventType event_type)
    :{}

TutorialDescription::Step::Step(const TutorialDescription::Step&) = default;
TutorialDescription::Step& TutorialDescription::Step::operator=(
    const TutorialDescription::Step&) = default;
TutorialDescription::Step::~Step() = default;

TutorialDescription::Step& TutorialDescription::Step::NameElement(
    std::string name) {}

bool TutorialDescription::Step::ShouldShowBubble() const {}

TutorialDescription::BubbleStep&
TutorialDescription::BubbleStep::AddDefaultNextButton() {}

TutorialDescription::WaitForAnyOf::WaitForAnyOf(ElementSpecifier first,
                                                bool wait_for_event)
    :{}

TutorialDescription::WaitForAnyOf& TutorialDescription::WaitForAnyOf::Or(
    ElementSpecifier element,
    bool wait_for_event) {}

// static
TutorialDescription::ConditionalCallback TutorialDescription::AlwaysRun() {}

// static
TutorialDescription::ConditionalCallback TutorialDescription::RunIfPresent() {}

}  // namespace user_education