crosswalk-project/crosswalk — pull request #2129 by wang16 (2014-06-26 04:52:47+00:00)
Title: [Android] Refine the key event dispatch for xwalkview

Including following changes:
1. Hook shouldOverrideKeyEvent and onUnhandledKeyEvent into
content layer correctly.
2. Move the key event handling in xwalkview into dispatchKeyEvent.

After change the process of key dispatch in xwalkview will be:
Activity.dispatchKeyEvent
-> XWalkClient.shouldOverrideKeyevent

-> XWalkView.dispatchKeyEvent (handles backkey here)

-> dispatch keyevent to renderer

-> web_contents_delegate::HandleKeyboardEvent
-> XWalkWebContentDelegate.handleKeyboardEvent
-> XWalkClient.onUnhandledKeyevent

It's pre-adjust for Embedding API v2.

Related to bug: XWALK-2003