chromium/components/performance_manager/decorators/frame_visibility_decorator.cc

// Copyright 2020 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/performance_manager/decorators/frame_visibility_decorator.h"

#include "components/performance_manager/graph/frame_node_impl.h"
#include "components/performance_manager/graph/page_node_impl.h"
#include "components/performance_manager/public/features.h"

namespace performance_manager {

namespace {

// Returns true if `page_node`'s content is being mirrored.
bool IsBeingMirrored(const PageNode* page_node) {}

FrameNode::Visibility GetFrameNodeVisibility(FrameNodeImpl* frame_node,
                                             bool is_page_user_visible) {}

// Update a frame node's visibility and its children following a change in the
// page visibility.
void UpdateFrameTreeVisibility(FrameNodeImpl* frame_node,
                               bool is_page_user_visible) {}

}  // namespace

FrameVisibilityDecorator::FrameVisibilityDecorator() = default;

FrameVisibilityDecorator::~FrameVisibilityDecorator() = default;

void FrameVisibilityDecorator::OnPassedToGraph(Graph* graph) {}

void FrameVisibilityDecorator::OnTakenFromGraph(Graph* graph) {}

void FrameVisibilityDecorator::OnPageNodeAdded(const PageNode* page_node) {}

void FrameVisibilityDecorator::OnBeforePageNodeRemoved(
    const PageNode* page_node) {}

void FrameVisibilityDecorator::OnIsVisibleChanged(const PageNode* page_node) {}

void FrameVisibilityDecorator::OnIsBeingMirroredChanged(
    const PageNode* page_node) {}

void FrameVisibilityDecorator::OnFrameNodeInitializing(
    const FrameNode* frame_node) {}

void FrameVisibilityDecorator::OnCurrentFrameChanged(
    const FrameNode* previous_frame_node,
    const FrameNode* current_frame_node) {}

void FrameVisibilityDecorator::OnViewportIntersectionStateChanged(
    const FrameNode* frame_node) {}

void FrameVisibilityDecorator::OnPageUserVisibilityChanged(
    const PageNode* page_node,
    bool page_is_user_visible) {}

void FrameVisibilityDecorator::OnFramePropertyChanged(
    const FrameNode* frame_node) {}

bool FrameVisibilityDecorator::IsPageUserVisible(const PageNode* page_node) {}

}  // namespace performance_manager