naiveproxy/components/arc/common/gfx.mojom

29 lines
902 B
Plaintext
Raw Permalink Normal View History

2018-02-02 13:49:39 +03:00
// Copyright 2017 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.
// Defines structs (and its related type mappings) related gfx.
// Eventually, we may want to migrate mojom files under ui/gfx.
// However, currently there is no well developed roll mechanism, so
// API diverge can be more problematic, unfortunately. So, instead of sharing,
// defines structs by ourselves.
module arc.mojom;
// Represents a rectangle. Note that the wire format is different from
// the one defined in geometry.mojom in ui/gfx for backward compatibility.
struct Rect {
int32 left;
int32 top;
int32 right;
int32 bottom;
};
// Represents a range in a text. It is an open interval [start, end).
struct Range {
// Start offset in UTF-16 index.
uint32 start;
// End offset in UTF-16 index.
uint32 end;
};