diff options
author | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2017-10-23 17:31:27 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2017-11-01 03:07:41 +0000 |
commit | eb7fc4eb593d723f1ac2ed4e5b523afd34e992ac (patch) | |
tree | a0a812ed805803cddb3c4c47abc711134f208130 /generate-binding-glue.py | |
parent | 6072fd18501ed0d2eb8699bbeae950f9cd005ad2 (diff) |
Add drawing_area parameter to API
Add drawing_area parameter in activateSurface API
and syncDraw event.
This is needed for the following feature
- To request writting area
- To inform application of writting area
I assume that
"normal.full" is a full size area in application area,
and "split.[main|sub]" is an upper/lower half size area
in application area.
For example, when Navigation app receives syncDraw event
which the label is Navigation, and the area name is
"normal.full", it means Navigation will be displayed
as a full size(in application area).
When Navigation app receives syncDraw event which
the label is same, and the area name is "split.main",
it means Navigation will be displayed
as an upper half size(in application area).
Application must return endDraw after changing its design
according to the size,
when the application receives syncDraw event.
Layout is defined in layers.json file.
Current layout is set to full screen.
Bug-AGL: SPEC-987
Change-Id: I5efed3dda88275e18dc1d951b98bdfcfc79ee46b
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'generate-binding-glue.py')
-rw-r--r-- | generate-binding-glue.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/generate-binding-glue.py b/generate-binding-glue.py index de78634..dbebbcd 100644 --- a/generate-binding-glue.py +++ b/generate-binding-glue.py @@ -93,6 +93,7 @@ def emit_afb_api(api): p(' typedef wm::result<json_object *> result_type;') p(' struct wm::App *app;') p(' void send_event(char const *evname, char const *label);') + p(' void send_event(char const *evname, char const *label, char const *area);') for f in api['functions']: p(' result_type %(name)s(' % f + ', '.join(map(lambda x: '%(type)s %(name)s' % x, f.get('args', []))) + ');') p('};', '') @@ -116,6 +117,7 @@ API = { 'name': 'activatesurface', 'args': [ { 'name': 'drawing_name', 'type': 'char const*', 'jtype': 'string' }, + { 'name': 'drawing_area', 'type': 'char const*', 'jtype': 'string' }, ], }, { |