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

Unified Diff: chrome/browser/ui/cocoa/tabs/tab_strip_controller.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/tabs/tab_strip_controller.h ('k') | chrome/browser/ui/tab_dialogs.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm
diff --git a/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm b/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm
index 7c6893a2b3ca72de4c50b73c6bf20e8f27d036cc..c13b36210e8ed17c2b9ef63db72db3d847a129dc 100644
--- a/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm
+++ b/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm
@@ -2289,27 +2289,3 @@ NSImage* Overlay(NSImage* ground, NSImage* overlay, CGFloat alpha) {
}
@end
-
-NSView* GetSheetParentViewForWebContents(WebContents* web_contents) {
- // View hierarchy of the contents view:
- // NSView -- switchView, same for all tabs
- // +- NSView -- TabContentsController's view
- // +- WebContentsViewCocoa
- //
- // Changing it? Do not forget to modify
- // -[TabStripController swapInTabAtIndex:] too.
- return [web_contents->GetNativeView() superview];
-}
-
-NSRect GetSheetParentBoundsForParentView(NSView* view) {
- // If the devtools view is open, it shrinks the size of the WebContents, so go
- // up the hierarchy to the devtools container view to avoid that. Note that
- // the devtools view is always in the hierarchy even if it is not open or it
- // is detached.
- NSView* devtools_view = [[[view superview] superview] superview];
- if (devtools_view) {
- return [devtools_view convertRect:[devtools_view bounds] toView:nil];
- } else {
- return [view convertRect:[view bounds] toView:nil];
- }
-}
« no previous file with comments | « chrome/browser/ui/cocoa/tabs/tab_strip_controller.h ('k') | chrome/browser/ui/tab_dialogs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698