Polish up the view life-cycle logic. 70/101270/3
authorHermet Park <hermet@hermet.pe.kr>
Wed, 30 Nov 2016 13:02:52 +0000 (22:02 +0900)
committerHermet Park <chuneon.park@samsung.com>
Wed, 30 Nov 2016 13:08:50 +0000 (05:08 -0800)
commitf5182dd96586b474dcc3740eea6173e4edc5ba4d
tree7d4d0e3f2cfda9378d9429e5498e92629cbd55bd
parent9d922d60d09000ee1787d7e8272cecdebe6f6260
Polish up the view life-cycle logic.

Add a new c++ api destroyView() to delete a view.
Since the destructor does not guarantee the virtual functions for view's lifecycle.
We cannot call such the view state function ie, onDestroy() in the destructor.
Instead, we introduce the destroyView() member function to deal with this.

Additionally, change the behavior of the onActivate(), Deactivate(), onUnload(), onPause() ...
Those states will be called only if the view's content is existed.

Change-Id: I63241b1173e80283cff4ed8201f287e03949cf44
src/lib/efl/mobile/c/ui_view.cpp
src/lib/interface/UiIfaceOverlay.cpp
src/lib/interface/UiIfaceView.cpp
src/lib/interface/UiIfaceViewmgr.cpp