Merge change 2525

* changes:
  add onPause and onResume apis, to inform the view when it can pause its activities associated with the DOM.