summaryrefslogtreecommitdiffstats
path: root/chrome/browser/userfeedback/proto/annotations.proto
blob: b99aa04a851009c01d72941c6a33a273944249c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2009 Google Inc. All Rights Reserved.
// Author: micapolos@google.com (Michal Pociecha-Los)
//
// Messages containing data about the annotations drawn on the screenshot of a 
// web page.

syntax = "proto2";

package userfeedback;

import "math.proto";
import "dom.proto";

// An annotation drawn by the user on the screenshot of a web page.
message Annotation {
  // A rectangular area covered by this annotation on annotated image.
  // The (0, 0) coordinate is placed in the top-left corner of the image.
  // One unit corresponds to one pixel.
  required Rectangle rectangle = 1;

  // A snippet of text displayed inside annotated portion of a web page.
  optional string snippet = 2;

  // A path from root element of the document to the annotated element.
  optional HtmlPath annotatedElementPath = 3;
};