summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-25 14:40:20 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-25 14:40:20 +0000
commit3630e35597d0f87e3c3c3ac38b17f207a3cf771e (patch)
tree64cd44f83886b0a0b66f89cfeaa06f8808819356
parent1c51cf7bcdb3882388c69e3f686f291f7997d853 (diff)
downloadchromium_src-3630e35597d0f87e3c3c3ac38b17f207a3cf771e.zip
chromium_src-3630e35597d0f87e3c3c3ac38b17f207a3cf771e.tar.gz
chromium_src-3630e35597d0f87e3c3c3ac38b17f207a3cf771e.tar.bz2
touchui: Fix building on a buildbot.
TBR=msw@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76047 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--views/focus/accelerator_handler_touch.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/views/focus/accelerator_handler_touch.cc b/views/focus/accelerator_handler_touch.cc
index a37d610..d4b072a 100644
--- a/views/focus/accelerator_handler_touch.cc
+++ b/views/focus/accelerator_handler_touch.cc
@@ -92,7 +92,8 @@ bool DispatchX2Event(RootView* root, XEvent* xev) {
XIDeviceEvent* xievent = static_cast<XIDeviceEvent*>(cookie->data);
if (xievent->detail == 4 || xievent->detail == 5) {
Event::FromNativeEvent2 from_native;
- return root->OnMouseWheel(MouseWheelEvent(xev, from_native));
+ MouseWheelEvent wheelev(xev, from_native);
+ return root->OnMouseWheel(wheelev);
}
MouseEvent mouseev(xev);
@@ -174,7 +175,8 @@ bool DispatchXEvent(XEvent* xev) {
if (xev->xbutton.button == 4 || xev->xbutton.button == 5) {
// Scrolling the wheel triggers button press/release events.
Event::FromNativeEvent2 from_native;
- return root->OnMouseWheel(MouseWheelEvent(xev, from_native));
+ MouseWheelEvent wheelev(xev, from_native);
+ return root->OnMouseWheel(wheelev);
} else {
MouseEvent mouseev(xev);
if (xev->type == ButtonPress) {