| Index: chrome/browser/ui/cocoa/tab_dialogs_cocoa.mm
|
| diff --git a/chrome/browser/ui/cocoa/tab_dialogs_cocoa.mm b/chrome/browser/ui/cocoa/tab_dialogs_cocoa.mm
|
| index f3eab54ea815ab2be4979018105aa9a4d9d6d31a..49897048fabbd2c0c59ab6a268805a4160e95967 100644
|
| --- a/chrome/browser/ui/cocoa/tab_dialogs_cocoa.mm
|
| +++ b/chrome/browser/ui/cocoa/tab_dialogs_cocoa.mm
|
| @@ -26,6 +26,17 @@ TabDialogsCocoa::TabDialogsCocoa(content::WebContents* contents)
|
| TabDialogsCocoa::~TabDialogsCocoa() {
|
| }
|
|
|
| +gfx::NativeView TabDialogsCocoa::GetDialogParentView() const {
|
| + // View hierarchy of the contents view:
|
| + // NSView -- switchView, same for all tabs
|
| + // +- TabContentsContainerView -- TabContentsController's view
|
| + // +- WebContentsViewCocoa
|
| + //
|
| + // Changing it? Do not forget to modify
|
| + // -[TabStripController swapInTabAtIndex:] too.
|
| + return [web_contents_->GetNativeView() superview];
|
| +}
|
| +
|
| void TabDialogsCocoa::ShowCollectedCookies() {
|
| // Deletes itself on close.
|
| new CollectedCookiesMac(web_contents_);
|
|
|