Modify underlying native event when setting flags or key code.

Rename ui::Event set_flags() with SetFlags(), and ui::KeyEvent
set_key_code() with SetKeyCode(), since they are no longer trivial
setters. The new versions update an underlying native (X11) event as
necessary to correspond to modified flags or key code, so that the
callers can be platform-independent.

BUG=380349
TEST=unit_tests,ash_unittests,events_unittests,ui_unittests,interactive_ui_tests

Review URL: https://codereview.chromium.org/407513003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287060 0039d316-1c4b-4281-b951-d872f2087c98
6 files changed