diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-20 20:29:35 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-20 20:29:35 +0000 |
commit | 6bc684df3bf7141d2145626c05aa653a65aa40bc (patch) | |
tree | c3199cc4e5b76dfc909daedf8b43f83006a4138f /ui/ui.gyp | |
parent | 4413d87abb4483aecd867cac1e07af85c67d3242 (diff) | |
download | chromium_src-6bc684df3bf7141d2145626c05aa653a65aa40bc.zip chromium_src-6bc684df3bf7141d2145626c05aa653a65aa40bc.tar.gz chromium_src-6bc684df3bf7141d2145626c05aa653a65aa40bc.tar.bz2 |
Create an interface WindowEventTarget to enable a class to receive
Windows input events.
This interface is defined in the newly added ui\base\window_event_target.cc/.h files.
It is implemented by the HWNDMessageHandler class. The class sets the interface as
window property on the HWND. The LegacyRenderWidgetHostHWND class retrieves this interface
via the window property and invokes the corresponding methods.
This is much cleaner than the current method of forwarding input messages from the
LegacyRenderWidgetHostHWND class via SendMessage and also avoids mucking with the
WPARAM of WM_MOUSEMOVE messages to ensure that the parent does not track those messages.
BUG=342323
R=sky@chromium.org
TBR=cpu
Review URL: https://codereview.chromium.org/165753002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252365 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/ui.gyp')
-rw-r--r-- | ui/ui.gyp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -306,6 +306,8 @@ 'base/win/shell.h', 'base/win/touch_input.cc', 'base/win/touch_input.h', + 'base/win/window_event_target.cc', + 'base/win/window_event_target.h', 'base/window_open_disposition.cc', 'base/window_open_disposition.h', 'base/work_area_watcher_observer.h', |