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

Side by Side Diff: chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm

Issue 12334073: Remove WebContents methods that duplicate WebContentsView methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tabpose_window.mm ('k') | chrome/browser/ui/cocoa/web_dialog_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698