diff options
author | Sadrul Habib Chowdhury <sadrul@chromium.org> | 2014-11-07 17:57:18 -0500 |
---|---|---|
committer | Sadrul Habib Chowdhury <sadrul@chromium.org> | 2014-11-07 22:58:19 +0000 |
commit | c332de7c1838b85e27685bed6c376c36ccb17287 (patch) | |
tree | b8e32181eba16d61c59a576699bbb2f61eb876d0 /ui/aura/window_tree_host_win.cc | |
parent | 24dff7c3f0e5760011e76db750294742f7e05ebb (diff) | |
download | chromium_src-c332de7c1838b85e27685bed6c376c36ccb17287.zip chromium_src-c332de7c1838b85e27685bed6c376c36ccb17287.tar.gz chromium_src-c332de7c1838b85e27685bed6c376c36ccb17287.tar.bz2 |
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}
Diffstat (limited to 'ui/aura/window_tree_host_win.cc')
-rw-r--r-- | ui/aura/window_tree_host_win.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/ui/aura/window_tree_host_win.cc b/ui/aura/window_tree_host_win.cc index 51bbcc6..9a30344 100644 --- a/ui/aura/window_tree_host_win.cc +++ b/ui/aura/window_tree_host_win.cc @@ -112,11 +112,6 @@ void WindowTreeHostWin::OnCursorVisibilityChangedNative(bool show) { NOTIMPLEMENTED(); } -void WindowTreeHostWin::PostNativeEvent(const base::NativeEvent& native_event) { - ::PostMessage( - widget_, native_event.message, native_event.wParam, native_event.lParam); -} - ui::EventProcessor* WindowTreeHostWin::GetEventProcessor() { return dispatcher(); } |