summaryrefslogtreecommitdiffstats
path: root/views/events
Commit message (Collapse)AuthorAgeFilesLines
* Rename View::GetCursor and simplify arguments.msw@chromium.org2011-05-031-1/+1
| | | | | | | | | | | | | | | | Simplify RootView::UpdateCursor with MouseEvent ctor support. Restore pre-r83123 WigetWin::SetCursor(NULL) behavior. Cleanup (function ordering, OVERRIDEs, unnecessary "views::"). This originates from changes and comments of Patch Set 3 at: http://codereview.chromium.org/6893096/ BUG=72040 TEST=Mouse cursors. Review URL: http://codereview.chromium.org/6910032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83970 0039d316-1c4b-4281-b951-d872f2087c98
* Add back constructors that was removed erroneously in r83795.sadrul@chromium.org2011-05-032-0/+25
| | | | | | | | Turns out the removed constructor is used for tests. My bad. TBR=sadrul@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83825 0039d316-1c4b-4281-b951-d872f2087c98
* Get the correct touch identifiers from an X event.sadrul@chromium.org2011-05-021-19/+32
| | | | | | | | | | | | Getting the correct touch identifiers makes it possible to do multi-finger tracking. BUG=none TEST=manually Review URL: http://codereview.chromium.org/6905074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83811 0039d316-1c4b-4281-b951-d872f2087c98
* Remove RootView::ConvertPointToMouseHandler.sadrul@chromium.org2011-05-023-49/+8
| | | | | | | | | | | | The function does not seem to do what it claims to do, and it does not seem to be actually necessary at all. Remove some other unused event constructors. BUG=chromium-os:14715 TEST=none Review URL: http://codereview.chromium.org/6883293 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83795 0039d316-1c4b-4281-b951-d872f2087c98
* Parse Windows mouse drag events.msw@chromium.org2011-04-291-1/+7
| | | | | | | | | BUG=72040 TEST=Mouse moving & dragging on Windows. Review URL: http://codereview.chromium.org/6883241 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83465 0039d316-1c4b-4281-b951-d872f2087c98
* Support creating panel on windows. Also allow dragging panels to rearrangejianli@chromium.org2011-04-281-7/+26
| | | | | | | | | | positions. BUG=none TEST=Basic test in panel_browsertest Review URL: http://codereview.chromium.org/6897012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83415 0039d316-1c4b-4281-b951-d872f2087c98
* Add extra touch information and related API to views::TouchEvent.miletus@chromium.org2011-04-183-29/+104
| | | | | | | | | | | | | | | | | | | Some touch devices provide, other than (x,y) location, extra touch information. views::TouchEvent is changed to keep track of touch radius, touch angle and ratio between major and minor touch axis. To be able to query what extra touch data is supported by the device, bookkeeping of the device supported TouchParams is added to views::TouchFactory. Next step will be routing these touch information to WebKit. BUG= TEST= Review URL: http://codereview.chromium.org/6820004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81963 0039d316-1c4b-4281-b951-d872f2087c98
* touch: identity for a finger is an int, not a bool.sadrul@chromium.org2011-04-111-1/+1
| | | | | | TBR=rjkroege@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81141 0039d316-1c4b-4281-b951-d872f2087c98
* Interpret double click events as mouse down on Windows.msw@chromium.org2011-04-071-6/+6
| | | | | | | | | | | Remove redundant code from a conditional block. BUG=78636 TEST=Double click to close neighboring tabs via (x) Review URL: http://codereview.chromium.org/6813014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80780 0039d316-1c4b-4281-b951-d872f2087c98
* Transform GdkEvents for simpler MouseEvent construction.msw@chromium.org2011-04-051-0/+17
| | | | | | | | | | | Handle MouseWheelEvent in Widget::OnMouseEvent. BUG=72040 TEST=Mouse interaction on linux_views Review URL: http://codereview.chromium.org/6720025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80420 0039d316-1c4b-4281-b951-d872f2087c98
* Consolidate Widget Event code, other cleanup.msw@chromium.org2011-03-312-20/+33
| | | | | | | | | | | | | Rename *NativeCapture to *MouseCapture. Rename and move ShouldReleaseCaptureOnMouseReleased. Move static flag function to Event. BUG=72040 TEST=Mouse interaction on win & linux_views. Review URL: http://codereview.chromium.org/6756043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80065 0039d316-1c4b-4281-b951-d872f2087c98
* Add GetCharacter() and GetUnmodifiedCharacter() methods to views::Event.suzhe@google.com2011-03-216-1/+341
| | | | | | | | | BUG=75003 TEST=views_unittests --gtest_filter=EventTest.* Review URL: http://codereview.chromium.org/6713027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78943 0039d316-1c4b-4281-b951-d872f2087c98
* [cros] Fix accelerator keys when using non-US/Latin keyboard layouts.suzhe@google.com2011-03-171-2/+2
| | | | | | | | | BUG=chromium-os:10120 TEST=Switch to Russian keyboard layout, try accelerators like ctrl-t, ctrl-w, etc. Review URL: http://codereview.chromium.org/6674052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78565 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up some event code:msw@chromium.org2011-03-141-0/+4
| | | | | | | | | | | Update some RootView event construction. Fixup some *MouseExited/OnLeaveNotify codepaths. Normalize event argument names. Move View::ConvertPoint*Ancestor defs to private section. Review URL: http://codereview.chromium.org/6685018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78121 0039d316-1c4b-4281-b951-d872f2087c98
* touch: Fix a crash when clicking on a webpage.sadrul@chromium.org2011-03-081-18/+7
| | | | | | | | | | | Also, consolidate touch and mouse event constructions as much as possible. BUG=clicking a webpage causes a crash TEST=manually Review URL: http://codereview.chromium.org/6624094 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77294 0039d316-1c4b-4281-b951-d872f2087c98
* touch: Fix compile for the new MouseEvent ctors (r77221).sadrul@chromium.org2011-03-082-11/+7
| | | | | | | | BUG=none TEST=touch compiles TBR=msw@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77279 0039d316-1c4b-4281-b951-d872f2087c98
* Add new MouseEvent ctors; update WidgetWin & WindowWin usage.msw@chromium.org2011-03-085-91/+180
| | | | | | | | | BUG=72040 TEST=Manual mouse event testing. Review URL: http://codereview.chromium.org/6591120 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77221 0039d316-1c4b-4281-b951-d872f2087c98
* Makes MouseWheelEvent::offset consistent on windows and linux.sky@chromium.org2011-03-073-13/+12
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6625061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77195 0039d316-1c4b-4281-b951-d872f2087c98
* Parse ui::ET_MOUSEWHEEL on XEvent ButtonRelease and XI_ButtonRelease too.msw@chromium.org2011-03-011-1/+5
| | | | | | | | | BUG=72040 TEST=none Review URL: http://codereview.chromium.org/6596047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76358 0039d316-1c4b-4281-b951-d872f2087c98
* Update LocatedEvent and MouseWheelEvent.msw@chromium.org2011-02-255-75/+210
| | | | | | | | | | | | | | | 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
* Transformable views: Use the transformation for points and events.sadrul@chromium.org2011-02-242-0/+36
| | | | | | | | | | | | | Added and updated API for converting points between views' coordinate systems, taking transformations into consideration. This in turn gives us, for free, transformation for located events (mouse events, touch events). BUG=none TEST=ViewTest.TransformEvent Review URL: http://codereview.chromium.org/6534015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75960 0039d316-1c4b-4281-b951-d872f2087c98
* NOTREACHED() was hit due to not handling WM_CHAR in EventTypeFromNative(). ↵ben@chromium.org2011-02-151-0/+1
| | | | | | | | | | | WM_CHAR is a translated WM_KEYDOWN, so we map it to ui::ET_KEY_PRESSED http://crbug.com/73006 TEST=see bug Review URL: http://codereview.chromium.org/6528018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74967 0039d316-1c4b-4281-b951-d872f2087c98
* touch: Fix build after NativeEvent2 change.sadrul@chromium.org2011-02-111-3/+4
| | | | | | TBR=ben@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74619 0039d316-1c4b-4281-b951-d872f2087c98
* Adds the ability to construct a KeyEvent from a NativeEvent[2], and converts ↵ben@chromium.org2011-02-117-104/+342
| | | | | | | | | | | | | some code to use it. Removes some of the Windows-specific stuff from KeyEvent. BUG=72040 TEST=none Review URL: http://codereview.chromium.org/6487002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74614 0039d316-1c4b-4281-b951-d872f2087c98
* Migrate Event API methods to Google Style.ben@chromium.org2011-02-105-206/+119
| | | | | | | | | | | | | | Re-landing, moving the bits Mac uses to ui/base/events.h BUG=72040 TEST=none TBR=sky Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=74377 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74408 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 74377 - Migrate Event API methods to Google Style.ben@chromium.org2011-02-091-39/+87
| | | | | | | | | | | | BUG=72040 TEST=none Review URL: http://codereview.chromium.org/6480001 TBR=ben@chromium.org Review URL: http://codereview.chromium.org/6469014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74379 0039d316-1c4b-4281-b951-d872f2087c98
* Migrate Event API methods to Google Style.ben@chromium.org2011-02-091-87/+39
| | | | | | | | | BUG=72040 TEST=none Review URL: http://codereview.chromium.org/6480001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74377 0039d316-1c4b-4281-b951-d872f2087c98
* Move Event files into views/eventsben@chromium.org2011-02-095-0/+893
BUG=none TEST=none TBR=sky Review URL: http://codereview.chromium.org/6459024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74305 0039d316-1c4b-4281-b951-d872f2087c98