summaryrefslogtreecommitdiffstats
path: root/ppapi/generators
diff options
context:
space:
mode:
authormek@chromium.org <mek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-13 03:40:31 +0000
committermek@chromium.org <mek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-13 03:40:31 +0000
commitc1e5fb151ec29af7c95f2a5d8712c6f8d879ef3a (patch)
treee2c0ceabd09bc415734825ba16d473cc689ab952 /ppapi/generators
parent1e2420662fae0f8046ecbc7dd1aa458cd7b56e2d (diff)
downloadchromium_src-c1e5fb151ec29af7c95f2a5d8712c6f8d879ef3a.zip
chromium_src-c1e5fb151ec29af7c95f2a5d8712c6f8d879ef3a.tar.gz
chromium_src-c1e5fb151ec29af7c95f2a5d8712c6f8d879ef3a.tar.bz2
Implement app.window.get() and app.window.getAll().
Also fixes the idl parser and schema compiler to support arrays as return types. BUG=179737 Review URL: https://codereview.chromium.org/57913004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234730 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/generators')
-rwxr-xr-xppapi/generators/idl_parser.py6
-rw-r--r--ppapi/generators/test_parser/interface.idl3
2 files changed, 6 insertions, 3 deletions
diff --git a/ppapi/generators/idl_parser.py b/ppapi/generators/idl_parser.py
index 40751e3..2c526fb 100755
--- a/ppapi/generators/idl_parser.py
+++ b/ppapi/generators/idl_parser.py
@@ -732,10 +732,10 @@ class IDLParser(IDLLexer):
if self.parse_debug: DumpReduction('attribute', p)
def p_member_function(self, p):
- """member_function : modifiers static SYMBOL SYMBOL param_list"""
+ """member_function : modifiers static SYMBOL arrays SYMBOL param_list"""
typeref = self.BuildAttribute('TYPEREF', p[3])
- children = ListFromConcat(p[1], p[2], typeref, p[5])
- p[0] = self.BuildNamed('Member', p, 4, children)
+ children = ListFromConcat(p[1], p[2], typeref, p[4], p[6])
+ p[0] = self.BuildNamed('Member', p, 5, children)
if self.parse_debug: DumpReduction('function', p)
def p_static(self, p):
diff --git a/ppapi/generators/test_parser/interface.idl b/ppapi/generators/test_parser/interface.idl
index 6b52402..712027a 100644
--- a/ppapi/generators/test_parser/interface.idl
+++ b/ppapi/generators/test_parser/interface.idl
@@ -27,6 +27,9 @@ interface Interface1 {
[out] PP_Size size,
/* OK Param(is_always_opaque) */
[out] PP_Bool is_always_opaque);
+
+ /* OK Member(ReturnArray) */
+ PP_Resource[] ReturnArray();
};