blob: 78c697b88960a0d93806fde8a26e022731a9ba41 [file] [log] [blame]
// Copyright 2015 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 "cc/base/cc_export.h"
#include "cc/input/scrollbar.h"
#include "cc/proto/layer.pb.h"
namespace cc {
class Region;
namespace proto {
class Region;
} // namespace proto
// TODO(dtrainor): Move these to a class and make them static
// (
CC_EXPORT void RegionToProto(const Region& region, proto::Region* proto);
CC_EXPORT Region RegionFromProto(const proto::Region& proto);
// Conversion methods for ScrollbarOrientation.
CC_EXPORT proto::SolidColorScrollbarLayerProperties::ScrollbarOrientation
ScrollbarOrientationToProto(const ScrollbarOrientation& orientation);
CC_EXPORT ScrollbarOrientation ScrollbarOrientationFromProto(
const proto::SolidColorScrollbarLayerProperties::ScrollbarOrientation&
} // namespace cc