1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21

fuchsia_web / shell / present_frame.h [blame]

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

#ifndef FUCHSIA_WEB_SHELL_PRESENT_FRAME_H_
#define FUCHSIA_WEB_SHELL_PRESENT_FRAME_H_

#include <fuchsia/element/cpp/fidl.h>
#include <fuchsia/web/cpp/fidl.h>

// Presents the given frame by setting up the necessary views, connecting to a
// fuchsia view presentation protocol, and forwarding the given annotation
// controller and annotations. This function will return the reference to a
// GraphialPresenterPtr to allow any async FIDL callbacks and error handlers to
// complete without being dropped.
fuchsia::element::GraphicalPresenterPtr PresentFrame(
    fuchsia::web::Frame* frame,
    fidl::InterfaceHandle<fuchsia::element::AnnotationController>
        annotation_controller);

#endif  // FUCHSIA_WEB_SHELL_PRESENT_FRAME_H_