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

Unified Diff: chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.h

Issue 9265018: Change grow box computation back to a method on BrowserWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 8 years, 11 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
Index: chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.h
diff --git a/chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.h b/chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.h
index 1fcfe051fb08e2106bcf7dcb9c82304201cd4590..41f2a4638f0a51d1031b305e92434b63a92ab609 100644
--- a/chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.h
+++ b/chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.h
@@ -8,25 +8,10 @@
#include <Cocoa/Cocoa.h>
-#include "base/memory/scoped_ptr.h"
-
-class TabContentsNotificationBridge;
-@class TabContentsController;
-
namespace content {
class WebContents;
}
-// The interface for the tab contents view controller's delegate.
-
-@protocol TabContentsControllerDelegate
-
-// Tells the delegate when the tab contents view's frame is about to change.
-- (void)tabContentsViewFrameWillChange:(TabContentsController*)source
- frameRect:(NSRect)frameRect;
-
-@end
-
// A class that controls the WebContents view. It manages displaying the
// native view for a given WebContents.
// Note that just creating the class does not display the view. We defer
@@ -37,14 +22,11 @@ class WebContents;
@interface TabContentsController : NSViewController {
@private
content::WebContents* contents_; // weak
- // Delegate to be notified about size changes.
- id<TabContentsControllerDelegate> delegate_; // weak
- scoped_ptr<TabContentsNotificationBridge> tabContentsBridge_;
}
@property(readonly, nonatomic) content::WebContents* webContents;
-- (id)initWithContents:(content::WebContents*)contents
- delegate:(id<TabContentsControllerDelegate>)delegate;
+// Create the contents of a tab represented by |contents|.
+- (id)initWithContents:(content::WebContents*)contents;
// Call when the tab contents is about to be replaced with the currently
// selected tab contents to do not trigger unnecessary content relayout.
« no previous file with comments | « chrome/browser/ui/cocoa/dev_tools_controller.mm ('k') | chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698