From eb7fc4eb593d723f1ac2ed4e5b523afd34e992ac Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Mon, 23 Oct 2017 17:31:27 +0900 Subject: 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 --- generate-binding-glue.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'generate-binding-glue.py') 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 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' }, ], }, { -- cgit 1.2.3-korg