summaryrefslogtreecommitdiffstats
path: root/ui/aura/window_tree_host_win.cc
diff options
context:
space:
mode:
authorSadrul Habib Chowdhury <sadrul@chromium.org>2014-11-07 17:57:18 -0500
committerSadrul Habib Chowdhury <sadrul@chromium.org>2014-11-07 22:58:19 +0000
commitc332de7c1838b85e27685bed6c376c36ccb17287 (patch)
treeb8e32181eba16d61c59a576699bbb2f61eb876d0 /ui/aura/window_tree_host_win.cc
parent24dff7c3f0e5760011e76db750294742f7e05ebb (diff)
downloadchromium_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.cc5
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();
}