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 */
5
6[generate_thunk]
7
8/**
9 * This file defines the <code>PPB_Simple</code> interface.
10 */
11
12label Chrome {
13  M13 = 0.5,
14  M14 = 1.0,
15  M15 = 1.5
16};
17
18interface PPB_Simple {
19  PP_Resource Create([in] PP_Instance instance);
20
21  PP_Bool IsSimple([in] PP_Resource resource);
22
23  [deprecate=1.0]
24  void PostMessage([in] PP_Instance instance, [in] PP_Var message);
25
26  uint32_t DoUint32Instance([in] PP_Instance instance);
27
28  [version=1.5]
29  uint32_t DoUint32Instance([in] PP_Instance instance,
30                            [in] PP_Resource resource);
31
32  uint32_t DoUint32Resource([in] PP_Resource instance);
33
34  [report_errors=False]
35  uint32_t DoUint32ResourceNoErrors([in] PP_Resource instance);
36
37  [version=1.0, on_failure="12"]
38  int32_t OnFailure12([in] PP_Instance instance);
39};
40