Index: cc/input/layer_selection_bound.h |
diff --git a/cc/input/layer_selection_bound.h b/cc/input/layer_selection_bound.h |
index dece32bdbd209061b953a08e2e13550274989a09..aba388541281ed5f89ee3e75b7554c031752de93 100644 |
--- a/cc/input/layer_selection_bound.h |
+++ b/cc/input/layer_selection_bound.h |
@@ -12,6 +12,10 @@ |
namespace cc { |
+namespace proto { |
+class LayerSelectionBound; |
+} // namespace proto |
+ |
// Marker for a selection end-point attached to a specific layer. |
struct CC_EXPORT LayerSelectionBound { |
LayerSelectionBound(); |
@@ -21,10 +25,15 @@ struct CC_EXPORT LayerSelectionBound { |
gfx::Point edge_top; |
gfx::Point edge_bottom; |
int layer_id; |
+ |
+ void ToProtobuf(proto::LayerSelectionBound* proto) const; |
+ void FromProtobuf(const proto::LayerSelectionBound& proto); |
}; |
-bool operator==(const LayerSelectionBound& lhs, const LayerSelectionBound& rhs); |
-bool operator!=(const LayerSelectionBound& lhs, const LayerSelectionBound& rhs); |
+CC_EXPORT bool operator==(const LayerSelectionBound& lhs, |
vmpstr
2015/12/18 07:46:02
While here, did you want to just make these member
nyquist
2015/12/18 18:53:13
Done. I tried before I uploaded, but I realize I m
|
+ const LayerSelectionBound& rhs); |
+CC_EXPORT bool operator!=(const LayerSelectionBound& lhs, |
+ const LayerSelectionBound& rhs); |
typedef Selection<LayerSelectionBound> LayerSelection; |