1*635a8641SAndroid Build Coastguard Worker// Copyright 2014 The Chromium Authors. All rights reserved. 2*635a8641SAndroid Build Coastguard Worker// Use of this source code is governed by a BSD-style license that can be 3*635a8641SAndroid Build Coastguard Worker// found in the LICENSE file. 4*635a8641SAndroid Build Coastguard Worker 5*635a8641SAndroid Build Coastguard Workermodule gfx.mojom; 6*635a8641SAndroid Build Coastguard Worker 7*635a8641SAndroid Build Coastguard Worker// Don't make backwards-incompatible changes to this definition! 8*635a8641SAndroid Build Coastguard Worker// It's used in PageState serialization, so backwards incompatible changes 9*635a8641SAndroid Build Coastguard Worker// would cause stored PageState objects to be un-parseable. 10*635a8641SAndroid Build Coastguard Workerstruct Point { 11*635a8641SAndroid Build Coastguard Worker int32 x; 12*635a8641SAndroid Build Coastguard Worker int32 y; 13*635a8641SAndroid Build Coastguard Worker}; 14*635a8641SAndroid Build Coastguard Worker 15*635a8641SAndroid Build Coastguard Worker// Don't make backwards-incompatible changes to this definition! 16*635a8641SAndroid Build Coastguard Worker// It's used in PageState serialization, so backwards incompatible changes 17*635a8641SAndroid Build Coastguard Worker// would cause stored PageState objects to be un-parseable. Please contact the 18*635a8641SAndroid Build Coastguard Worker// page state serialization owners before making such a change. 19*635a8641SAndroid Build Coastguard Workerstruct PointF { 20*635a8641SAndroid Build Coastguard Worker float x; 21*635a8641SAndroid Build Coastguard Worker float y; 22*635a8641SAndroid Build Coastguard Worker}; 23*635a8641SAndroid Build Coastguard Worker 24*635a8641SAndroid Build Coastguard Workerstruct Size { 25*635a8641SAndroid Build Coastguard Worker int32 width; 26*635a8641SAndroid Build Coastguard Worker int32 height; 27*635a8641SAndroid Build Coastguard Worker}; 28*635a8641SAndroid Build Coastguard Worker 29*635a8641SAndroid Build Coastguard Workerstruct SizeF { 30*635a8641SAndroid Build Coastguard Worker float width; 31*635a8641SAndroid Build Coastguard Worker float height; 32*635a8641SAndroid Build Coastguard Worker}; 33*635a8641SAndroid Build Coastguard Worker 34*635a8641SAndroid Build Coastguard Workerstruct Rect { 35*635a8641SAndroid Build Coastguard Worker int32 x; 36*635a8641SAndroid Build Coastguard Worker int32 y; 37*635a8641SAndroid Build Coastguard Worker int32 width; 38*635a8641SAndroid Build Coastguard Worker int32 height; 39*635a8641SAndroid Build Coastguard Worker}; 40*635a8641SAndroid Build Coastguard Worker 41*635a8641SAndroid Build Coastguard Workerstruct RectF { 42*635a8641SAndroid Build Coastguard Worker float x; 43*635a8641SAndroid Build Coastguard Worker float y; 44*635a8641SAndroid Build Coastguard Worker float width; 45*635a8641SAndroid Build Coastguard Worker float height; 46*635a8641SAndroid Build Coastguard Worker}; 47*635a8641SAndroid Build Coastguard Worker 48*635a8641SAndroid Build Coastguard Workerstruct Insets { 49*635a8641SAndroid Build Coastguard Worker int32 top; 50*635a8641SAndroid Build Coastguard Worker int32 left; 51*635a8641SAndroid Build Coastguard Worker int32 bottom; 52*635a8641SAndroid Build Coastguard Worker int32 right; 53*635a8641SAndroid Build Coastguard Worker}; 54*635a8641SAndroid Build Coastguard Worker 55*635a8641SAndroid Build Coastguard Workerstruct InsetsF { 56*635a8641SAndroid Build Coastguard Worker float top; 57*635a8641SAndroid Build Coastguard Worker float left; 58*635a8641SAndroid Build Coastguard Worker float bottom; 59*635a8641SAndroid Build Coastguard Worker float right; 60*635a8641SAndroid Build Coastguard Worker}; 61*635a8641SAndroid Build Coastguard Worker 62*635a8641SAndroid Build Coastguard Workerstruct Vector2d { 63*635a8641SAndroid Build Coastguard Worker int32 x; 64*635a8641SAndroid Build Coastguard Worker int32 y; 65*635a8641SAndroid Build Coastguard Worker}; 66*635a8641SAndroid Build Coastguard Worker 67*635a8641SAndroid Build Coastguard Workerstruct Vector2dF { 68*635a8641SAndroid Build Coastguard Worker float x; 69*635a8641SAndroid Build Coastguard Worker float y; 70*635a8641SAndroid Build Coastguard Worker}; 71*635a8641SAndroid Build Coastguard Worker 72*635a8641SAndroid Build Coastguard Workerstruct ScrollOffset { 73*635a8641SAndroid Build Coastguard Worker float x; 74*635a8641SAndroid Build Coastguard Worker float y; 75*635a8641SAndroid Build Coastguard Worker}; 76