Update background-support app's memory policy and reorganize some code
authorLongXiang <xiang.long@intel.com>
Tue, 29 Jan 2013 08:09:34 +0000 (16:09 +0800)
committerTaejeong Lee <taejeong.lee@samsung.com>
Fri, 1 Feb 2013 06:08:00 +0000 (15:08 +0900)
commit69552c1104a97877a65182e1abf987fcc8dd3c49
tree524da61d937a7f02e585e2d1d715a12337d16dfb
parent80867ae59f32cf423a56d7cbfb99d6d1acba4849
Update background-support app's memory policy and reorganize some code

[Issue#] N/A
[Problem] There's a limitation on hidden applications number(current 15) which is kept by
apps' /proc/[pid]/oom_adj values. Least recently used app will have the highest oom_adj
value, when hidden apps number limitation is reached, the app will be killed. However
background-support enabled app shouldn't be one of this kind, it shouldn't be count as
a hidden app when goes to background.
[Cause] N/A
[Solution] Make background-support enabled app active when goes to background by using
sysman's API. oom_adj value will be updated accordingly by these APIs. Move
backgroun-support check logic from RunnableWidgetObject to ViewLogic.

Change-Id: I29ef92153e345c31bd50d4c034f44fa6fced5e33
packaging/wrt.spec
src/api_new/runnable_widget_object.cpp
src/view/i_view_module.h
src/view/webkit/CMakeLists.txt
src/view/webkit/view_logic.cpp
src/view/webkit/view_logic.h