summaryrefslogtreecommitdiffstats
path: root/src/libwindowmanager.h
AgeCommit message (Collapse)AuthorFilesLines
2019-12-13Handle hostname of remoteHEADjellyfish_9.99.4jellyfish_9.99.3jellyfish_9.99.2jellyfish_9.99.1jellyfish/9.99.4jellyfish/9.99.3jellyfish/9.99.2jellyfish/9.99.1icefish_8.99.5icefish_8.99.4icefish/8.99.5icefish/8.99.49.99.49.99.39.99.29.99.18.99.58.99.4masterJosé Bollo1-0/+1
In order to separate applications for cookies and private data the framework uses the component nss-localuser to forge specific hostnames. This commit takes it into account by allowing to specify the hostname to contact at init. Bug-AGL: SPEC-3014 Change-Id: Iabf4a5604dae2c5c5279bc0f45ccfbf3526164d5 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-12-26Introduce changeAreaSize and getAreaListKazumasa Mitsunari1-2/+21
In CES2019 demo, these features are introduced in demo3. 1. changeAreaSize : change area definition on runtime 2. getAreaList : get area definition list Bug-AGL : SPEC-2077 Change-Id: I0eade8b25be6b676d270699057e560ce78fbe63e Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-20Introduce simple APIguppy_6.99.4guppy_6.99.3guppy_6.99.2guppy_6.99.1guppy_6.90.0guppy/6.99.4guppy/6.99.3guppy/6.99.2guppy/6.99.1guppy/6.90.0flounder_5.99.6flounder_5.99.5flounder/5.99.6flounder/5.99.56.99.46.99.36.99.26.99.16.90.05.99.65.99.5Kazumasa Mitsunari1-4/+64
Originally, API of libwindowmanager uses json_object type as parameters. This causes useless coding and mistakes such as double free with json_object_put accidentally. So this patch introduces simple API not using json_object as parameters. Bug-AGL: SPEC-1582 Bug-AGL: SPEC-1565 Change-Id: Id0a8e74739f0c73d294843c5ce154d0a36dd9279 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-07-09Rename APIsYuta Doi1-2/+6
rename WindowManager APIs as follows: - activateSurface -> activateWindow - deactivateSurface -> deactivateWindow The "surface" means information of display material frame buffer anaged by Graphics Subsystem (Weston). And the "window" means the right to draw on display. The "surface" is physical information and used inside WindowManager. So we think it is not good for "surface" to be included in API name. These APIs provide the function which is to activate/deactivate the right to draw for the applications. So we change to "activateWindow/deactivateWindow". We plan to delete the old API by GG. Therefore the applications can use old APIs until GG, but the warning "-Wdeprecated-declarations" is occured when compile. After GG, old APIs can not be used. If use it, the error is occured when compile. Bug-AGL: SPEC-1565 Change-Id: I8a4aa5b8b43e1d90fe28964a41257b1947ab5174 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-29Add screen_updated and error eventKazumasa Mitsunari1-0/+6
Add events screen_updated * emitted when the displayed application changed. error * emitted when a error happens after request is accepted. Related commit: https://gerrit.automotivelinux.org/gerrit/#/c/14761/ Change-Id: I3c91c053668490fe68e45121a34e1fae5cd403fc Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2017-12-20Add APIs which can get information about the display and the surface areaYuta Doi1-0/+5
getDisplayInfo() can get the display information as follows: - width[pixel] - height[pixel] - width[mm] - height[mm] NOTE: It uses wl_output::geometry() for getting physical width[mm] and height[mm] of the display, but the value is different with measured value. value from wl_output::geometry(): width:320 height:520 measured value : width:193 height:343 getAreaInfo() can get the information of area drawn by the application as follows: - x-coordinate - y-coordinate - width - height The details are described in doc/ApplicationGuide.md in project apps/agl-service-windowmanager-2017. Bug-AGL: SPEC-1087 Change-Id: Icee00af4ab210b056cc67c2868ef2c594da1dbe1 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2017-12-12Support XDG applicationTadao Tanikawa1-0/+2
To run XDG application on AGL HomeScreen/WindowManager, a new binding API of WindowManager is added. This api is used only by AGL XDG-Launcher and all xdg applications should be packed as wgt compatible to AGL Application framework. Bug-AGL: SPEC-1096 Change-Id: Iea43c65ce03a352773c47e125490990f32dc9695 Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
2017-11-02Replace 'constexpr' with 'const char*'Yuta Doi1-2/+2
'constexpr' causes the warning [-Wwrite-strings]. So replace 'constexpr' with 'const char*'. Change-Id: I03e2c7b53e4db6cb5b804c66cb88ae15e2387eb8 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2017-11-01Modify the enum starting pointKazumasa Mitsunari1-1/+1
The windowmanager server treats the event list as a vector, thus it numbers the events starting from 0. Likewise we need to change the eventlist to start from 0 in this library. Related commit : https://gerrit.automotivelinux.org/gerrit/#/c/11481/ Bug-AGL: SPEC-987 Change-Id: I72a36033191b0a43fc8ab6923e2897715d02bcbd Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2017-11-01Change parameter from char* to json_objectKazumasa Mitsunari1-5/+17
For future extensibility, change the argument parameter to json_object Bug-AGL: SPEC-990 Conflicts: src/libwindowmanager.cpp Change-Id: I7015fe26d22489f250b67907870d2863d1e8158b Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2017-10-26Add library splitted from agl-service-windowmanagerKazumasa Mitsunari1-0/+58
Related commit : https://gerrit.automotivelinux.org/gerrit/#/c/11451/ [Patch Sets 2] - Remove doc/* because these documents are integtrated to agl-service-windowmanager-2017. https://gerrit.automotivelinux.org/gerrit/#/c/11507/1 - Modify the function comments to doxygen format. Bug-AGL : SPEC-993 Change-Id: Id82ee513e06f0c12eba044b8d42d8dde68063168 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>