summaryrefslogtreecommitdiffstats
path: root/ui/views/mouse_constants.h
Commit message (Collapse)AuthorAgeFilesLines
* linux_aura: Remove static initializers by converting constants.erg@chromium.org2013-11-131-5/+4
| | | | | | | | | | | | | Constants should be written in a style which doesn't cause the generation of static initializers. (Some translation units used these constants to initialize other constants.) BUG=317171 NOTRY=true Review URL: https://codereview.chromium.org/69343010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234838 0039d316-1c4b-4281-b951-d872f2087c98
* Stop menus from being double shown. dbeam@chromium.org2013-08-261-0/+25
When the account chooser or any detail section is clicked while a menu is already showing from a previous click, the showing menu should be hidden rather than quickly closed and reshown. This is accomplished by changing the controls showing the menus to MenuButtons, which Just Work™. This patch also modifies views::MenuController to better handle showing a menu under the mouse cursor and wrangles some constants. Releasing the mouse on top of a menu quickly after showing should now be ignored (based on some simple heuristics). R=estade@chromium.org,sadrul@chromium.org,sky@chromium.org BUG=259553 TEST=menu hides when clicking on opening button Review URL: https://chromiumcodereview.appspot.com/19272008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219567 0039d316-1c4b-4281-b951-d872f2087c98