Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* Copyright 2013 The Chromium Authors. All rights reserved. | 1 /* Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 */ | 4 */ |
| 5 | 5 |
| 6 /** | 6 /** |
| 7 * This file defines the <code>PPB_VarResource</code> struct providing | 7 * This file defines the <code>PPB_VarResource</code> struct providing |
| 8 * a way to interact with resource vars. | 8 * a way to interact with resource vars. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 label Chrome { | 11 label Chrome { |
| 12 M32 = 0.1 | 12 M34 = 1.0 |
| 13 }; | 13 }; |
| 14 | 14 |
| 15 [macro="PPB_VAR_RESOURCE_DEV_INTERFACE"] | 15 [macro="PPB_VAR_RESOURCE_INTERFACE"] |
| 16 interface PPB_VarResource_Dev { | 16 interface PPB_VarResource { |
|
yzshen1
2014/02/04 17:53:21
I remember that we had considered the alternative
dmichael (off chromium)
2014/02/04 17:55:47
My recollection is that we had decided to merge it
Matt Giuca
2014/02/06 08:51:14
Done.
| |
| 17 /** | 17 /** |
| 18 * Converts a resource-type var to a <code>PP_Resource</code>. | 18 * Converts a resource-type var to a <code>PP_Resource</code>. |
| 19 * | 19 * |
| 20 * @param[in] var A <code>PP_Var</code> struct containing a resource-type var. | 20 * @param[in] var A <code>PP_Var</code> struct containing a resource-type var. |
| 21 * | 21 * |
| 22 * @return A <code>PP_Resource</code> retrieved from the var, or 0 if the var | 22 * @return A <code>PP_Resource</code> retrieved from the var, or 0 if the var |
| 23 * is not a resource. The reference count of the resource is incremented on | 23 * is not a resource. The reference count of the resource is incremented on |
| 24 * behalf of the caller. | 24 * behalf of the caller. |
| 25 */ | 25 */ |
| 26 PP_Resource VarToResource([in] PP_Var var); | 26 PP_Resource VarToResource([in] PP_Var var); |
| 27 | 27 |
| 28 /** | 28 /** |
| 29 * Creates a new <code>PP_Var</code> from a given resource. | 29 * Creates a new <code>PP_Var</code> from a given resource. |
| 30 * | 30 * |
| 31 * @param[in] resource A <code>PP_Resource</code> to be wrapped in a var. | 31 * @param[in] resource A <code>PP_Resource</code> to be wrapped in a var. |
| 32 * | 32 * |
| 33 * @return A <code>PP_Var</code> created for this resource, with type | 33 * @return A <code>PP_Var</code> created for this resource, with type |
| 34 * <code>PP_VARTYPE_RESOURCE</code>. The reference count of the var is set to | 34 * <code>PP_VARTYPE_RESOURCE</code>. The reference count of the var is set to |
| 35 * 1 on behalf of the caller. | 35 * 1 on behalf of the caller. |
| 36 */ | 36 */ |
| 37 PP_Var VarFromResource([in] PP_Resource resource); | 37 PP_Var VarFromResource([in] PP_Resource resource); |
| 38 }; | 38 }; |
| OLD | NEW |