X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fui%2Fviews%2Fevent_utils.h;h=03bf65b9fac0e5e43f6a820ca31ccd034e44855f;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=095487b15251fcd73a7927d01a3f974972f23667;hpb=7338fba38ba696536d1cc9d389afd716a6ab2fe6;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/ui/views/event_utils.h b/src/ui/views/event_utils.h index 095487b..03bf65b 100644 --- a/src/ui/views/event_utils.h +++ b/src/ui/views/event_utils.h @@ -17,10 +17,12 @@ namespace views { // Reposts a located event natively. Returns false when |event| could not be // reposted. |event| should be in screen coordinates. |window| is the target // window that the event will be forwarded to. Only some events are supported. +// On Windows |window| can be NULL, in which case the event is forwarded to +// the HWND at the current location if it is on the same thread. VIEWS_EXPORT bool RepostLocatedEvent(gfx::NativeWindow window, const ui::LocatedEvent& event); -#if defined(OS_WIN) && defined(USE_AURA) +#if defined(OS_WIN) // Reposts a located event to the HWND passed in. VIEWS_EXPORT bool RepostLocatedEventWin(HWND window, const ui::LocatedEvent& event);