aura: Remove WindowTreeHost::PostNativeEvent().
commitc332de7c1838b85e27685bed6c376c36ccb17287
authorSadrul Habib Chowdhury <sadrul@chromium.org>
Fri, 7 Nov 2014 22:57:18 +0000 (7 17:57 -0500)
committerSadrul Habib Chowdhury <sadrul@chromium.org>
Fri, 7 Nov 2014 22:58:19 +0000 (7 22:58 +0000)
treeb8e32181eba16d61c59a576699bbb2f61eb876d0
parent24dff7c3f0e5760011e76db750294742f7e05ebb
aura: Remove WindowTreeHost::PostNativeEvent().

WindowTreeHost::PostNativeEvent() is only used in tests. So remove this from
the public API. Instead:
 . For Win32, directly use PostMessage (this is used in only two places).
 . For Ozone, use EventSourceTestApi to inject the event (this is equivalent to
   current code, in terms of not doing the right thing when menus are open).
 . For X11, introduce aura::test::PostEventToWindowTreeHost() instead, and use
   it in tests.

BUG=none
R=sky@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#303315}
23 files changed:
ui/aura/BUILD.gn
ui/aura/aura.gyp
ui/aura/remote_window_tree_host_win.cc
ui/aura/remote_window_tree_host_win.h
ui/aura/test/ui_controls_factory_aurax11.cc
ui/aura/test/ui_controls_factory_ozone.cc
ui/aura/test/x11_event_sender.cc [new file with mode: 0644]
ui/aura/test/x11_event_sender.h [new file with mode: 0644]
ui/aura/window_tree_host.h
ui/aura/window_tree_host_mac.h
ui/aura/window_tree_host_mac.mm
ui/aura/window_tree_host_ozone.cc
ui/aura/window_tree_host_ozone.h
ui/aura/window_tree_host_win.cc
ui/aura/window_tree_host_win.h
ui/aura/window_tree_host_x11.cc
ui/aura/window_tree_host_x11.h
ui/views/test/ui_controls_factory_desktop_aurax11.cc
ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
ui/views/widget/desktop_aura/desktop_window_tree_host_win.h
ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h
ui/wm/core/nested_accelerator_controller_unittest.cc