| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h" | 5 #import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h" |
| 6 | 6 |
| 7 #import <QuartzCore/QuartzCore.h> | 7 #import <QuartzCore/QuartzCore.h> |
| 8 | 8 |
| 9 #include <cmath> | 9 #include <cmath> |
| 10 #include <limits> | 10 #include <limits> |
| (...skipping 2219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2230 @end | 2230 @end |
| 2231 | 2231 |
| 2232 NSView* GetSheetParentViewForWebContents(WebContents* web_contents) { | 2232 NSView* GetSheetParentViewForWebContents(WebContents* web_contents) { |
| 2233 // View hierarchy of the contents view: | 2233 // View hierarchy of the contents view: |
| 2234 // NSView -- switchView, same for all tabs | 2234 // NSView -- switchView, same for all tabs |
| 2235 // +- NSView -- TabContentsController's view | 2235 // +- NSView -- TabContentsController's view |
| 2236 // +- TabContentsViewCocoa | 2236 // +- TabContentsViewCocoa |
| 2237 // | 2237 // |
| 2238 // Changing it? Do not forget to modify | 2238 // Changing it? Do not forget to modify |
| 2239 // -[TabStripController swapInTabAtIndex:] too. | 2239 // -[TabStripController swapInTabAtIndex:] too. |
| 2240 return [web_contents->GetNativeView() superview]; | 2240 return [web_contents->GetView()->GetNativeView() superview]; |
| 2241 } | 2241 } |
| OLD | NEW |