summaryrefslogtreecommitdiffstats
path: root/cc/proto/layer_selection_bound.proto
blob: 2503e8aa6d0004022a3fb749f9144cd0bc25932b (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
28
29
30
31
32
33
// Copyright 2015 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.

syntax = "proto2";

import "point.proto";

option optimize_for = LITE_RUNTIME;

package cc.proto;

message LayerSelectionBound {
  enum SelectionBoundType {
    UNKNOWN = 0;
    LEFT = 1;
    RIGHT = 2;
    CENTER = 3;
    EMPTY = 4;
  }

  optional SelectionBoundType type = 1;
  optional Point edge_top = 2;
  optional Point edge_bottom = 3;
  optional int32 layer_id = 4;
}

message LayerSelection {
  optional LayerSelectionBound start = 1;
  optional LayerSelectionBound end = 2;
  optional bool is_editable = 3;
  optional bool is_empty_text_form_control = 4;
}