annotations.proto 919 B

1234567891011121314151617181920212223242526272829
  1. // Copyright 2014 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. // Messages containing data about the annotations drawn on the screenshot of a
  5. // web page.
  6. syntax = "proto2";
  7. option optimize_for = LITE_RUNTIME;
  8. package userfeedback;
  9. import "math.proto";
  10. import "dom.proto";
  11. // An annotation drawn by the user on the screenshot of a web page.
  12. message Annotation {
  13. // A rectangular area covered by this annotation on annotated image.
  14. // The (0, 0) coordinate is placed in the top-left corner of the image.
  15. // One unit corresponds to one pixel.
  16. required Rectangle rectangle = 1;
  17. // A snippet of text displayed inside annotated portion of a web page.
  18. optional string snippet = 2;
  19. // A path from root element of the document to the annotated element.
  20. optional HtmlPath annotatedElementPath = 3;
  21. };