summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_message_macros.h
diff options
context:
space:
mode:
authortapted <tapted@chromium.org>2015-05-10 22:59:04 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-11 05:59:24 +0000
commitadc5eefaf1611f00b4b3482baa07bb10a335c681 (patch)
treee926ae50dc684ce3711b085b2af4353429e87104 /ipc/ipc_message_macros.h
parentb3adff38ce4a7a85d2ee5e08ce921f445a875f85 (diff)
downloadchromium_src-adc5eefaf1611f00b4b3482baa07bb10a335c681.zip
chromium_src-adc5eefaf1611f00b4b3482baa07bb10a335c681.tar.gz
chromium_src-adc5eefaf1611f00b4b3482baa07bb10a335c681.tar.bz2
MacViews: Allow views::Widgets to be parented off NSWindows
Currently, a views::Widget on Mac can't be owned by a NSWindow that is not also a views::Widget. This would mean that to add a toolkit-views dialog parented to the browser, the whole browser window would need to be ported to views first. This CL abstracts the responsibilities of a NativeViewMac's parent window into a BridgedNativeWidgetOwner interface which BridgedNativeWidget implements to retain the current behaviour. WidgetOwnerNSWindowAdapter is a lightweight class that implements this to allow the parent to be any native NSView. The parent window closing will also close the child, and (for appropriate child types) the child window frame is offset by the parent view's position on screen. BUG=447086 TEST=views_unittests' NativeWidgetMacTest.NonWidgetParent Review URL: https://codereview.chromium.org/1063933003 Cr-Commit-Position: refs/heads/master@{#329097}
Diffstat (limited to 'ipc/ipc_message_macros.h')
0 files changed, 0 insertions, 0 deletions