OLD | NEW |
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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_Var</code> struct. | 7 * This file defines the <code>PPB_Var</code> struct. |
8 */ | 8 */ |
9 | 9 |
10 label Chrome { | 10 label Chrome { |
11 M13 = 0.5, | |
12 M14 = 1.0 | 11 M14 = 1.0 |
13 }; | 12 }; |
14 | 13 |
15 /** | 14 /** |
16 * PPB_Var API | 15 * PPB_Var API |
17 */ | 16 */ |
18 interface PPB_Var { | 17 interface PPB_Var { |
19 /** | 18 /** |
20 * AddRef() adds a reference to the given var. If this is not a refcounted | 19 * AddRef() adds a reference to the given var. If this is not a refcounted |
21 * object, this function will do nothing so you can always call it no matter | 20 * object, this function will do nothing so you can always call it no matter |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 * @param[in] var A PP_Var struct containing a string-type var. | 82 * @param[in] var A PP_Var struct containing a string-type var. |
84 * @param[in,out] len A pointer to the length of the string-type var. | 83 * @param[in,out] len A pointer to the length of the string-type var. |
85 * | 84 * |
86 * @return A char* encoded in UTF-8. | 85 * @return A char* encoded in UTF-8. |
87 */ | 86 */ |
88 str_t VarToUtf8( | 87 str_t VarToUtf8( |
89 [in] PP_Var var, | 88 [in] PP_Var var, |
90 [out] uint32_t len); | 89 [out] uint32_t len); |
91 }; | 90 }; |
92 | 91 |
OLD | NEW |