Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1111)

Unified Diff: chrome/browser/ui/cocoa/tab_dialogs_cocoa.mm

Issue 1053463002: MacViews: Use native certificate viewer in MacViews browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@translate
Patch Set: Fix for tapted and rebase Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/cocoa/tab_dialogs_cocoa.h ('k') | chrome/browser/ui/cocoa/tabs/tab_strip_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_);
« no previous file with comments | « chrome/browser/ui/cocoa/tab_dialogs_cocoa.h ('k') | chrome/browser/ui/cocoa/tabs/tab_strip_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698