chromium/ui/gfx/ipc/geometry/gfx_param_traits.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/354829279): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "ui/gfx/ipc/geometry/gfx_param_traits.h"

#include <stddef.h>
#include <stdint.h>

#include <string>

#include "base/strings/stringprintf.h"
#include "ui/gfx/geometry/point3_f.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/rect_f.h"
#include "ui/gfx/geometry/vector2d_f.h"

namespace IPC {

void ParamTraits<gfx::Point>::Write(base::Pickle* m, const gfx::Point& p) {}

bool ParamTraits<gfx::Point>::Read(const base::Pickle* m,
                                   base::PickleIterator* iter,
                                   gfx::Point* r) {}

void ParamTraits<gfx::Point>::Log(const gfx::Point& p, std::string* l) {}

void ParamTraits<gfx::PointF>::Write(base::Pickle* m, const gfx::PointF& p) {}

bool ParamTraits<gfx::PointF>::Read(const base::Pickle* m,
                                    base::PickleIterator* iter,
                                    gfx::PointF* r) {}

void ParamTraits<gfx::PointF>::Log(const gfx::PointF& p, std::string* l) {}

void ParamTraits<gfx::Point3F>::Write(base::Pickle* m, const gfx::Point3F& p) {}

bool ParamTraits<gfx::Point3F>::Read(const base::Pickle* m,
                                     base::PickleIterator* iter,
                                     gfx::Point3F* r) {}

void ParamTraits<gfx::Point3F>::Log(const gfx::Point3F& p, std::string* l) {}

void ParamTraits<gfx::Size>::Write(base::Pickle* m, const gfx::Size& p) {}

bool ParamTraits<gfx::Size>::Read(const base::Pickle* m,
                                  base::PickleIterator* iter,
                                  gfx::Size* r) {}

void ParamTraits<gfx::Size>::Log(const gfx::Size& p, std::string* l) {}

void ParamTraits<gfx::SizeF>::Write(base::Pickle* m, const gfx::SizeF& p) {}

bool ParamTraits<gfx::SizeF>::Read(const base::Pickle* m,
                                   base::PickleIterator* iter,
                                   gfx::SizeF* r) {}

void ParamTraits<gfx::SizeF>::Log(const gfx::SizeF& p, std::string* l) {}

void ParamTraits<gfx::Vector2d>::Write(base::Pickle* m,
                                       const gfx::Vector2d& p) {}

bool ParamTraits<gfx::Vector2d>::Read(const base::Pickle* m,
                                      base::PickleIterator* iter,
                                      gfx::Vector2d* r) {}

void ParamTraits<gfx::Vector2d>::Log(const gfx::Vector2d& v, std::string* l) {}

void ParamTraits<gfx::Vector2dF>::Write(base::Pickle* m,
                                        const gfx::Vector2dF& p) {}

bool ParamTraits<gfx::Vector2dF>::Read(const base::Pickle* m,
                                       base::PickleIterator* iter,
                                       gfx::Vector2dF* r) {}

void ParamTraits<gfx::Vector2dF>::Log(const gfx::Vector2dF& v, std::string* l) {}

void ParamTraits<gfx::Rect>::Write(base::Pickle* m, const gfx::Rect& p) {}

bool ParamTraits<gfx::Rect>::Read(const base::Pickle* m,
                                  base::PickleIterator* iter,
                                  gfx::Rect* r) {}

void ParamTraits<gfx::Rect>::Log(const gfx::Rect& p, std::string* l) {}

void ParamTraits<gfx::RectF>::Write(base::Pickle* m, const gfx::RectF& p) {}

bool ParamTraits<gfx::RectF>::Read(const base::Pickle* m,
                                   base::PickleIterator* iter,
                                   gfx::RectF* r) {}

void ParamTraits<gfx::RectF>::Log(const gfx::RectF& p, std::string* l) {}

}  // namespace IPC