summaryrefslogtreecommitdiff
path: root/chromium/ppapi/generators/test_parser/interface.idl
blob: 712027a88d8b58673e50d79df76f23038b509eae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/* Copyright (c) 2011 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/* Tests for interface */

/* OK Interface(Interface1) */
interface Interface1 {
  /* OK Member(OneParam) */
  PP_Bool OneParam(
      /* OK Param(resource) */
      [in] PP_Resource resource);

  /* OK Member(TwoParam) */
  PP_Resource TwoParam(
      /* OK Param(instance) */
      [in] PP_Instance instance,
      /* OK Param(size) */
      [in] PP_Size size);

  /* OK Member(ThreeParam) */
  PP_Bool ThreeParam(
      /* OK Param(graphics_2d) */
      [in] PP_Resource graphics_2d,
      /* OK Param(size) */
      [out] PP_Size size,
      /* OK Param(is_always_opaque) */
      [out] PP_Bool is_always_opaque);

  /* OK Member(ReturnArray) */
  PP_Resource[] ReturnArray();
};


/* OK Interface(Interface2) */
interface Interface2 {
  /* OK Member(OneParam) */
  PP_Bool OneParam(
      /* OK Param(resource) */
      [in] PP_Resource resource);

  /* OK Member(TwoParam) */
  PP_Resource TwoParam(
      /* OK Param(instance) */
      [in] PP_Instance instance,
      /* OK Param(size) */
      /* FAIL Missing argument. */
      [in] PP_Size size, );

  /* OK Member(ThreeParam) */
  PP_Bool ThreeParam(
      /* OK Param(graphics_2d) */
      [in] PP_Resource graphics_2d,
      /* FAIL Unexpected "," after symbol PP_Size. */
      [out] PP_Size,
      /* OK Param(is_always_opaque) */
      [out] PP_Bool is_always_opaque);
};