Refactor android test results logging.
[chromium-blink-merge.git] / ppapi / api / pp_size.idl
blobf289231c364ca4fea7f967c481d7226409a338b5
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file.
4 */
6 /**
7 * This file defines the width and height of a 2D rectangle.
8 */
10 /**
11 * The <code>PP_Size</code> struct contains the size of a 2D rectangle.
13 [assert_size(8)]
14 struct PP_Size {
15 /** This value represents the width of the rectangle. */
16 int32_t width;
17 /** This value represents the height of the rectangle. */
18 int32_t height;
21 #inline c
22 /**
23 * @addtogroup Functions
24 * @{
27 /**
28 * PP_MakeSize() creates a <code>PP_Size</code> given a width and height as
29 * int32_t values.
31 * @param[in] w An int32_t value representing a width.
32 * @param[in] h An int32_t value representing a height.
34 * @return A <code>PP_Size</code> structure.
36 PP_INLINE struct PP_Size PP_MakeSize(int32_t w, int32_t h) {
37 struct PP_Size ret;
38 ret.width = w;
39 ret.height = h;
40 return ret;
42 /**
43 * @}
45 #endinl