summaryrefslogtreecommitdiffstats
path: root/src/afb_binding_api.cpp
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2017-10-23 17:31:27 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2017-11-01 03:07:41 +0000
commiteb7fc4eb593d723f1ac2ed4e5b523afd34e992ac (patch)
treea0a812ed805803cddb3c4c47abc711134f208130 /src/afb_binding_api.cpp
parent6072fd18501ed0d2eb8699bbeae950f9cd005ad2 (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 'src/afb_binding_api.cpp')
-rw-r--r--src/afb_binding_api.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afb_binding_api.cpp b/src/afb_binding_api.cpp
index 9311700..b608a8a 100644
--- a/src/afb_binding_api.cpp
+++ b/src/afb_binding_api.cpp
@@ -42,9 +42,9 @@ binding_api::result_type binding_api::requestsurface(
}
binding_api::result_type binding_api::activatesurface(
- char const *drawing_name) {
+ char const *drawing_name, char const *drawing_area) {
logdebug("%s drawing_name %s", __func__, drawing_name);
- auto r = this->app->api_activate_surface(drawing_name);
+ auto r = this->app->api_activate_surface(drawing_name, drawing_area);
if (r != nullptr) {
logdebug("%s failed with error: %s", __func__, r);
return Err<json_object *>(r);