aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.hpp
AgeCommit message (Collapse)AuthorFilesLines
2018-06-11Rename files to use "_" instead of "-"Kazumasa Mitsunari1-1/+1
Change-Id: I24b7be71af682946a4abde928e8bb46bf5104041 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-06-11Bind surface properties to adding floating surfaceKazumasa Mitsunari1-0/+1
Change-Id: Ib582d4d40ccaebf24c2990a4a0d04bcc1a266f72 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-06-09Use unique_ptrKazumasa Mitsunari1-1/+6
I don't debug yet Change-Id: I540f31c3fd5dbe757e254346328a25eb5b58dea5 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-06-082nd Step : Implement overview into app.cpp for set_roleKazumasa Mitsunari1-1/+1
API is not implemented.(Comment out now) Change-Id: I1287c64cb9b5bd0ebdeb7b3220934106a5fbdd25 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-06-081st Step: Add set_role functionKazumasa Mitsunari1-0/+1
Change-Id: I779c9bdce78eb8b1bf601c461630dd8b7c3320bb Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-06-08Merge branch 'sandbox/knimitz/format_code' into sandbox/knimitz/lockKazumasa Mitsunari1-1/+1
Change-Id: Ifbd46e0156ab5baf93fbb785f4fdfda963ed2af4 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-06-08Change names. Not use sequence number but request numberKazumasa Mitsunari1-2/+2
* AppList API * Member variable(Not use sequence) Change-Id: Ie0d3d0394c5e050e894b11a91aab97f5bac73f00 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-06-04Adopt error code and message into Window ManagerKazumasa Mitsunari1-3/+4
Change-Id: I942cc33350436bcdb477e7a5cda4a36e502044da Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-06-04Add global error eventKazumasa Mitsunari1-2/+5
Change-Id: I285437e22fd9666eac9bb645035dcf7d134eb892 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-06-01Add subscribe function in app.cpp to control from main.cppKazumasa Mitsunari1-0/+1
Change-Id: I69ef05d99dffcdbc7ffccb019821011c5bef9d46 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-05-31Modify appKazumasa Mitsunari1-0/+1
* remove surface from app when surface is destroyed * add new function for removing client Change-Id: Iefef531ce1bc4a06ee0585ee35906ade86d452dc Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-05-30Format source codesKazumasa Mitsunari1-166/+178
Change-Id: I28e99487b814b23fe99aa6bc8ec4538af3940acf Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-05-29pull out layout manager taskKazumasa Mitsunari1-3/+7
Change-Id: I2c256dc2095607a31306786964421442fba4ae4b Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-05-29Add stop_timer and revert the function nameKazumasa Mitsunari1-2/+3
Change-Id: Ieb62cee04aab67f2c1d1649b91937de8c59c20d5 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-05-29Modify the private function nameKazumasa Mitsunari1-1/+1
Change-Id: If3a9a7f90191950900e4b220a911dd4f0fb14ea1 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-05-25Rework: Block the sequenceKazumasa Mitsunari1-1/+8
Todo: * emit error event ** decide error format * rework release WR Change-Id: Id96fa629aff984aa03ed68f1d3db711bb43ba77b Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-05-18[Local]:4th step for blocking sequenceKazumasa Mitsunari1-6/+10
Change-Id: If4f01a177f4947780d448aaa214f863af2124b0f Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-05-15[Local]:2nd step for blocking sequenceKazumasa Mitsunari1-2/+6
Change-Id: I267b9cdbc4a95b80a0b6cada688ed251e3093611 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-05-14[Local]:1st step for blocking sequenceKazumasa Mitsunari1-1/+1
* add new class to allocate window resource * add new class for list to hold clients information * change API of request surface Change-Id: Ic39fa8908163d49b429125639189dd89812f94e9 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-03-19Change reply timingKazumasa Mitsunari1-4/+4
Some events were emitted in a function before it replies. This patch changes * The function checks parameter then reply error if it is incorrect. * After checking parameters, the function continues to process. The exeption is the syncronous functions such as requestSurface. Change-Id: I168eba3e2b70d53615a4221bcbbba6bc6096c1db Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-02-09Add APIs which can get information about the display and the surface areaYuta Doi1-9/+27
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. Bug-AGL: SPEC-1087 Change-Id: I9e6d64ff04e0845b83c69db374d06af17a6d6b66 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-01-24Change the protocol from ivi-controller to ivi-wmYuta Doi1-2/+1
This patch is for master branch only. For using wayland-ivi-extension version 2.x, the wayland protocol in WindowManager is changed from ivi-controller to ivi-wm. NOTE: If using this patch, the modification for AGL/meta-agl which described in SPEC-1244 is necessary. Bug-AGL: SPEC-1244 Change-Id: I5489db202dfeec8f4626aee53bd1f86c145b95d9 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2017-12-21Clean up source codeKazumasa Mitsunari1-3/+2
To reduce the files and redundant code, * Remove afb_binding_api.* files and generate-binding-glue.py. * Merge them into other source codes. Change-Id: Ib61350ee6a42d73efc3fa29fa0c4868145a88e2e Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2017-12-14Add background layer for CES DEMOYuta Doi1-0/+3
MediaPlayer and Radio can not sound when their surface have visibility=0. And Navigation can not be displayed correctly when the application is switched from visibility=0 to 1. Because when visibility=0, weston event can not be catched. So when the applications is not displayed, they have visibility=1 and are moved to background layer. Change-Id: Idf236e703a1e74cf564a1b213e6e15fcfa42a29e Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2017-12-12Support XDG applicationTadao Tanikawa1-0/+9
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: I33dd3b056c736ef374e2251e818541ddd699877b Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
2017-12-11Revert "Add APIs which can get information of display and area"Tadao Tanikawa1-19/+1
This reverts commit 6aaba1066fe89f324d4bae67497f4035fe997d5f. To fix double posts to Gerrit Review and repository directly. Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
2017-12-11Add APIs which can get information of display and areaYuta Doi1-1/+19
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. Change-Id: I41eec6251527862ef25d1b84cd37d736d3f9c8aa Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2017-11-01Fix copyright to TOYOTAeel_4.99.2eel/4.99.24.99.2Kazumasa Mitsunari1-1/+1
Change-Id: I8ac0463a8efa215477593a96a45f08e38dc46e36 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2017-11-01Change namespace name to generic nameKazumasa Mitsunari1-2/+2
The name of namespace "genivi" was used. This is not generic, so changed it to "compositor". Conflicts: src/app.cpp Change-Id: Ie088e5d404e1981f7bc149abbc20e900bea8ec2d Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2017-11-01Add debug message macros controlled by environment variableYuta Doi1-1/+2
Add a HMI_DEBUG macro to print debug messages. It is controlled by the USE_HMI_DEBUG environment variable. Change-Id: I3bc5bf2f3b0e9f5ee06f340053f29ad36e7d9dbb Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2017-11-01Modify event notification from broadcast to subscribe modelKazumasa Mitsunari1-1/+27
The event notification was implemented using a broadcast model, change it to a subscription model. Bug-AGL: SPEC-987 Change-Id: I344a3a73320eb81c3f670736b032f07400bb8f64 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2017-11-01Add drawing_area parameter to APIKazumasa Mitsunari1-2/+13
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>
2017-10-09Add agl-service-windowmanager-2017zheng_wenlong1-0/+188
Add a new binding agl-service-windowmanager-2017. A image about this see JIRA SPEC-915. [PatchSet2] Use aglwgt make package. [PatchSet3] Modify to wait until wayland compositor starts up. Bug-AGL: SPEC-925 Change-Id: I8729bb71b5e91d5b009a5bab77232d92605c43ea Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>