diff options
author | pinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-24 17:41:34 +0000 |
---|---|---|
committer | pinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-24 17:41:34 +0000 |
commit | 044dc48ab959e37a5f9960a46e7ffeeaf201fb54 (patch) | |
tree | 25d3b3fb7ecb5bbcf3836fb293f2265c1d9a7fbb /webkit/tools/test_shell/mac | |
parent | ab6513714d7bd8e5b13d99f89c2bff468b8dcce5 (diff) | |
download | chromium_src-044dc48ab959e37a5f9960a46e7ffeeaf201fb54.zip chromium_src-044dc48ab959e37a5f9960a46e7ffeeaf201fb54.tar.gz chromium_src-044dc48ab959e37a5f9960a46e7ffeeaf201fb54.tar.bz2 |
Hook up mouse events with the correct coordinates. Make sure they are view-local and flipped.
Review URL: http://codereview.chromium.org/8150
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3924 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/mac')
-rw-r--r-- | webkit/tools/test_shell/mac/webwidget_host.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/tools/test_shell/mac/webwidget_host.mm b/webkit/tools/test_shell/mac/webwidget_host.mm index b62f2fc..9341d03 100644 --- a/webkit/tools/test_shell/mac/webwidget_host.mm +++ b/webkit/tools/test_shell/mac/webwidget_host.mm @@ -213,7 +213,7 @@ void WebWidgetHost::Resize(const gfx::Rect& rect) { } void WebWidgetHost::MouseEvent(NSEvent *event) { - WebMouseEvent web_event(event); + WebMouseEvent web_event(event, view_); switch (web_event.type) { case WebInputEvent::MOUSE_MOVE: TrackMouseLeave(true); @@ -236,7 +236,7 @@ void WebWidgetHost::MouseEvent(NSEvent *event) { } void WebWidgetHost::WheelEvent(NSEvent *event) { - WebMouseWheelEvent web_event(event); + WebMouseWheelEvent web_event(event, view_); webwidget_->HandleInputEvent(&web_event); } |