chromium/third_party/blink/renderer/core/layout/geometry/writing_mode_converter.h

// 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.

#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_GEOMETRY_WRITING_MODE_CONVERTER_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_GEOMETRY_WRITING_MODE_CONVERTER_H_

#include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/core/layout/geometry/logical_rect.h"
#include "third_party/blink/renderer/core/layout/geometry/physical_rect.h"
#include "third_party/blink/renderer/platform/text/writing_direction_mode.h"

namespace blink {

// This class represents CSS property values to convert between logical and
// physical coordinate systems. See:
// https://drafts.csswg.org/css-writing-modes-3/#logical-to-physical
class CORE_EXPORT WritingModeConverter {};

inline LogicalOffset WritingModeConverter::ToLogical(
    const PhysicalOffset& offset,
    const PhysicalSize& inner_size) const {}

inline PhysicalOffset WritingModeConverter::ToPhysical(
    const LogicalOffset& offset,
    const PhysicalSize& inner_size) const {}

inline LogicalSize WritingModeConverter::ToLogical(
    const PhysicalSize& size) const {}

inline PhysicalSize WritingModeConverter::ToPhysical(
    const LogicalSize& size) const {}

inline LogicalRect WritingModeConverter::ToLogical(
    const PhysicalRect& rect) const {}

inline PhysicalRect WritingModeConverter::ToPhysical(
    const LogicalRect& rect) const {}

inline gfx::PointF WritingModeConverter::ToLogical(
    const gfx::PointF& offset) const {}

inline gfx::SizeF WritingModeConverter::ToLogical(
    const gfx::SizeF& size) const {}

inline gfx::RectF WritingModeConverter::ToLogical(
    const gfx::RectF& rect) const {}

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_GEOMETRY_WRITING_MODE_CONVERTER_H_