OLD | NEW |
| (Empty) |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CC_PROTO_CC_CONVERSIONS_H_ | |
6 #define CC_PROTO_CC_CONVERSIONS_H_ | |
7 | |
8 #include "cc/base/cc_export.h" | |
9 #include "cc/input/scrollbar.h" | |
10 #include "cc/proto/layer.pb.h" | |
11 #include "cc/trees/clip_node.h" | |
12 | |
13 namespace cc { | |
14 class Region; | |
15 | |
16 namespace proto { | |
17 class Region; | |
18 } // namespace proto | |
19 | |
20 // TODO(dtrainor): Move these to a class and make them static | |
21 // (crbug.com/548432). | |
22 CC_EXPORT void RegionToProto(const Region& region, proto::Region* proto); | |
23 CC_EXPORT Region RegionFromProto(const proto::Region& proto); | |
24 | |
25 // Conversion methods for ScrollbarOrientation. | |
26 CC_EXPORT proto::SolidColorScrollbarLayerProperties::ScrollbarOrientation | |
27 ScrollbarOrientationToProto(const ScrollbarOrientation& orientation); | |
28 CC_EXPORT ScrollbarOrientation ScrollbarOrientationFromProto( | |
29 const proto::SolidColorScrollbarLayerProperties::ScrollbarOrientation& | |
30 proto); | |
31 | |
32 } // namespace cc | |
33 | |
34 #endif // CC_PROTO_CC_CONVERSIONS_H_ | |
OLD | NEW |