| OLD | NEW |
| 1 // Copyright 2009 Google Inc. All Rights Reserved. | 1 // Copyright 2009 Google Inc. All Rights Reserved. |
| 2 // Author: micapolos@google.com (Michal Pociecha-Los) | 2 // Author: micapolos@google.com (Michal Pociecha-Los) |
| 3 // | 3 // |
| 4 // Messages containing data about the annotations drawn on the screenshot of a | 4 // Messages containing data about the annotations drawn on the screenshot of a |
| 5 // web page. | 5 // web page. |
| 6 | 6 |
| 7 syntax = "proto2"; | 7 syntax = "proto2"; |
| 8 | 8 |
| 9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
| 10 | 10 |
| 11 package userfeedback; | 11 package userfeedback; |
| 12 | 12 |
| 13 import "math.proto"; | 13 import "math.proto"; |
| 14 import "dom.proto"; | 14 import "dom.proto"; |
| 15 | 15 |
| 16 // An annotation drawn by the user on the screenshot of a web page. | 16 // An annotation drawn by the user on the screenshot of a web page. |
| 17 message Annotation { | 17 message Annotation { |
| 18 // A rectangular area covered by this annotation on annotated image. | 18 // A rectangular area covered by this annotation on annotated image. |
| 19 // The (0, 0) coordinate is placed in the top-left corner of the image. | 19 // The (0, 0) coordinate is placed in the top-left corner of the image. |
| 20 // One unit corresponds to one pixel. | 20 // One unit corresponds to one pixel. |
| 21 required Rectangle rectangle = 1; | 21 required Rectangle rectangle = 1; |
| 22 | 22 |
| 23 // A snippet of text displayed inside annotated portion of a web page. | 23 // A snippet of text displayed inside annotated portion of a web page. |
| 24 optional string snippet = 2; | 24 optional string snippet = 2; |
| 25 | 25 |
| 26 // A path from root element of the document to the annotated element. | 26 // A path from root element of the document to the annotated element. |
| 27 optional HtmlPath annotatedElementPath = 3; | 27 optional HtmlPath annotatedElementPath = 3; |
| 28 }; | 28 }; |
| OLD | NEW |