Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(861)

Side by Side Diff: ppapi/api/dev/ppb_var_resource_dev.idl

Issue 148213016: [PPAPI] Moving pp::VarResource_Dev API into pp::Var (now stable). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 * found in the LICENSE file.
4 */
5
6 /**
7 * This file defines the <code>PPB_VarResource</code> struct providing
8 * a way to interact with resource vars.
9 */
10
11 label Chrome {
12 M32 = 0.1
13 };
14
15 [macro="PPB_VAR_RESOURCE_DEV_INTERFACE"]
16 interface PPB_VarResource_Dev {
17 /**
18 * Converts a resource-type var to a <code>PP_Resource</code>.
19 *
20 * @param[in] var A <code>PP_Var</code> struct containing a resource-type var.
21 *
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
24 * behalf of the caller.
25 */
26 PP_Resource VarToResource([in] PP_Var var);
27
28 /**
29 * Creates a new <code>PP_Var</code> from a given resource.
30 *
31 * @param[in] resource A <code>PP_Resource</code> to be wrapped in a var.
32 *
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
35 * 1 on behalf of the caller.
36 */
37 PP_Var VarFromResource([in] PP_Resource resource);
38 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698