Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1247)

Unified Diff: cc/input/layer_selection_bound.h

Issue 1532973002: Add support for (de)serializing LayerSelectionBound. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/input/layer_selection_bound.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/input/layer_selection_bound.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698