diff options
Diffstat (limited to 'cc/input/layer_selection_bound.h')
-rw-r--r-- | cc/input/layer_selection_bound.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/cc/input/layer_selection_bound.h b/cc/input/layer_selection_bound.h index dece32b..fa17399 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,13 @@ struct CC_EXPORT LayerSelectionBound { gfx::Point edge_top; gfx::Point edge_bottom; int layer_id; -}; -bool operator==(const LayerSelectionBound& lhs, const LayerSelectionBound& rhs); -bool operator!=(const LayerSelectionBound& lhs, const LayerSelectionBound& rhs); + bool operator==(const LayerSelectionBound& other) const; + bool operator!=(const LayerSelectionBound& other) const; + + void ToProtobuf(proto::LayerSelectionBound* proto) const; + void FromProtobuf(const proto::LayerSelectionBound& proto); +}; typedef Selection<LayerSelectionBound> LayerSelection; |