Add util functions into event.

R=fdoray@chromium.org, fdoray

BUG=

Review URL: https://codereview.appspot.com/59870043