blob: c8c2719f2be48927e29ff9354915e2b5712ba3c2 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/common/render_frame_metadata_struct_traits.h"
#include "ui/gfx/geometry/mojo/geometry_struct_traits.h"
namespace mojo {
// static
bool StructTraits<content::mojom::RenderFrameMetadataDataView,
cc::RenderFrameMetadata>::
Read(content::mojom::RenderFrameMetadataDataView data,
cc::RenderFrameMetadata* out) {
return data.ReadRootScrollOffset(&out->root_scroll_offset);
}
} // namespace mojo