summaryrefslogtreecommitdiffstats
path: root/chrome/browser/feedback/proto/annotations.proto
blob: 8a3d1c4f8a4c8e6249d29e679d53f40297081b88 (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
27
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// 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;
};