add onPause and onResume apis, to inform the view when it can pause
its activities associated with the DOM.
2 files changed