Home | History | Annotate | Download | only in proto
      1 // Copyright 2009 Google Inc. All Rights Reserved.
      2 // Author: micapolos (a] google.com (Michal Pociecha-Los)
      3 //
      4 // Messages containing data about the annotations drawn on the screenshot of a 
      5 // web page.
      6 
      7 syntax = "proto2";
      8 
      9 option optimize_for = LITE_RUNTIME;
     10 
     11 package userfeedback;
     12 
     13 import "math.proto";
     14 import "dom.proto";
     15 
     16 // An annotation drawn by the user on the screenshot of a web page.
     17 message Annotation {
     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.
     20   // One unit corresponds to one pixel.
     21   required Rectangle rectangle = 1;
     22 
     23   // A snippet of text displayed inside annotated portion of a web page.
     24   optional string snippet = 2;
     25 
     26   // A path from root element of the document to the annotated element.
     27   optional HtmlPath annotatedElementPath = 3;
     28 };
     29