aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.hpp
AgeCommit message (Collapse)AuthorFilesLines
2018-06-22Rename app -> window_managerKazumasa Mitsunari1-282/+0
Change-Id: I4568b60623867ca70bf53852fa033d660acf8f35 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-06-22Remove unused headerKazumasa Mitsunari1-2/+0
Change-Id: Id9845eafe5617614fa5999629fbaaf8e19ef6ef7 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-06-21Remove config sourceKazumasa Mitsunari1-6/+0
This is because the source doesn't have a big deal work, so integrate the source to the app.cpp Change-Id: I7def8effd287043a9e6955548f1c26092ad808a7 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-06-20Remove try_layout APIKazumasa Mitsunari1-5/+1
This API is not used anymore Change-Id: Iee66afbeb2782dc5f4ce24f4af3e4486f8b14fca Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-06-20Remove flushdraw pending APIKazumasa Mitsunari1-7/+0
These function and variable are not used anymore Change-Id: Ice1d07e4192c15fe0131af9ed884190c465d7b12 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-06-20Remove lm_release APIKazumasa Mitsunari1-4/+0
This is not used anymore Change-Id: Ied69e28159f7b57f6bf36d8697d11c606a621248 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-06-20Remove deactivate_main_surface APIKazumasa Mitsunari1-1/+0
This is not used anymore Change-Id: Iacc14a11802767a4212e08f4a46772e57bf91bb5 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-06-19Modify the descriptionKazumasa Mitsunari1-0/+1
Change-Id: I99a0485189580fb3df0519c5ce7308c88f85fd31 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-06-18Bug Fix : Show splitKazumasa Mitsunari1-1/+1
TODO: Couldn't return to Home when tap shortcut key Change-Id: I53399452b82c838fd034ef1c7eece1deecaa2701 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-06-17Add changeCurrentStatus functionKazumasa Mitsunari1-1/+3
To set state in endDraw, Add change status function Change-Id: I547e382d108ce11371bbb07325fcefe97215775c Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-06-17Remove comment outKazumasa Mitsunari1-4/+0
Change-Id: I4f707b7c8095e298c610ecb5ba74ae77636dd98c Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-06-15Set deactivate taskKazumasa Mitsunari1-4/+4
But doesn't set deactivateSurface pattern Change-Id: I052a54c9d58b224619a182e2815567811d12b3c5 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-06-15Compile successKazumasa Mitsunari1-17/+5
Change-Id: I950ec6359e95c76eaed6894d489c58ad0d2cde25 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-06-15On the way to move process to endDrawKazumasa Mitsunari1-3/+24
Change-Id: I728afc6d2b1c93ee676fa2990e060c911edf8296 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-06-13Use camel caseKazumasa Mitsunari1-7/+7
Change-Id: I4f4e714d2aeea4b7cca95495293aab88b97fc2ca Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-06-13Add set_requestKazumasa Mitsunari1-0/+2
Change-Id: Ieb0ac4e8f71c698782effab8e2fe13f30fa381ac Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-06-13activate/deactivate surface only set transtion stateKazumasa Mitsunari1-2/+6
Change-Id: If16e9ff1c584ee609aaac7db22400db92c1a6a93 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-06-12Rename files to use "_" instead of "-"Kazumasa Mitsunari1-1/+1
Change-Id: I24b7be71af682946a4abde928e8bb46bf5104041 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>