diff options
author | msw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-25 01:14:15 +0000 |
---|---|---|
committer | msw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-25 01:14:15 +0000 |
commit | 748776a567d2e6c76b25a46511fd352562026755 (patch) | |
tree | 0d16fd1848e8643e934931b7e4830e4cda1e1587 /views/focus | |
parent | b58f8147cd1b3247aa3ec698eb12b9c16194d5c5 (diff) | |
download | chromium_src-748776a567d2e6c76b25a46511fd352562026755.zip chromium_src-748776a567d2e6c76b25a46511fd352562026755.tar.gz chromium_src-748776a567d2e6c76b25a46511fd352562026755.tar.bz2 |
Update LocatedEvent and MouseWheelEvent.
Refactor RootView::OnMouseWheel and WidgetGtk::ProcessScroll.
Rename RootView's and MenuHostRootView's ProcessMouseWheelEvent to OnMouseWheel.
Merge event_x's GetMouseEventType into EventTypeFromNative and detect wheel events.
Update NativeWidgetWin::MakeMSG and WidgetWin::MakeMSG.
Add some needed support functions.
BUG=72040
TEST=none
Review URL: http://codereview.chromium.org/6469106
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76001 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/focus')
-rw-r--r-- | views/focus/accelerator_handler_touch.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/views/focus/accelerator_handler_touch.cc b/views/focus/accelerator_handler_touch.cc index c6f8e1e..a37d610 100644 --- a/views/focus/accelerator_handler_touch.cc +++ b/views/focus/accelerator_handler_touch.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -91,8 +91,8 @@ bool DispatchX2Event(RootView* root, XEvent* xev) { // and 5. In case of a wheelscroll, we do not want to show the cursor. XIDeviceEvent* xievent = static_cast<XIDeviceEvent*>(cookie->data); if (xievent->detail == 4 || xievent->detail == 5) { - MouseWheelEvent wheelev(xev); - return root->ProcessMouseWheelEvent(wheelev); + Event::FromNativeEvent2 from_native; + return root->OnMouseWheel(MouseWheelEvent(xev, from_native)); } MouseEvent mouseev(xev); @@ -164,8 +164,8 @@ bool DispatchXEvent(XEvent* xev) { switch (xev->type) { case KeyPress: case KeyRelease: { - Event::FromNativeEvent2 from_native_2; - KeyEvent keyev(xev, from_native_2); + Event::FromNativeEvent2 from_native; + KeyEvent keyev(xev, from_native); return root->ProcessKeyEvent(keyev); } @@ -173,8 +173,8 @@ bool DispatchXEvent(XEvent* xev) { case ButtonRelease: { if (xev->xbutton.button == 4 || xev->xbutton.button == 5) { // Scrolling the wheel triggers button press/release events. - MouseWheelEvent wheelev(xev); - return root->ProcessMouseWheelEvent(wheelev); + Event::FromNativeEvent2 from_native; + return root->OnMouseWheel(MouseWheelEvent(xev, from_native)); } else { MouseEvent mouseev(xev); if (xev->type == ButtonPress) { |