summaryrefslogtreecommitdiffstats
path: root/sandbox/sandbox_export.h
diff options
context:
space:
mode:
authortapted <tapted@chromium.org>2015-09-09 05:37:42 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-09 12:38:28 +0000
commit2d2db5f4507e613a181df03dae66f7ae28f24f49 (patch)
treef7ecc99921622c5c54c37bd18724d5168bf5d7c4 /sandbox/sandbox_export.h
parent63a4d153f18719fba84e2ce15d03cd2de64e4656 (diff)
downloadchromium_src-2d2db5f4507e613a181df03dae66f7ae28f24f49.zip
chromium_src-2d2db5f4507e613a181df03dae66f7ae28f24f49.tar.gz
chromium_src-2d2db5f4507e613a181df03dae66f7ae28f24f49.tar.bz2
[MacViews] Show comboboxes with a native NSMenu
The positioning and fancy scrolling behavior of native Combobox popup menus on Mac is fiddly to replicate. We already show context menus in MacViews with NSMenu, and it's straightforward to adapt combobox menus to be shown with NSMenu APIs as well, so long as the menu is backed by a ui::MenuModel. To achieve the positioning with NSMenu APIs, an NSView is required for the anchor. For this, insert a temporary, hidden NSButton in the window which is removed as soon as the menu is dismissed. BUG=522365 Review URL: https://codereview.chromium.org/1321023005 Cr-Commit-Position: refs/heads/master@{#347913}
Diffstat (limited to 'sandbox/sandbox_export.h')
0 files changed, 0 insertions, 0 deletions