| 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 c9cab99b4b4cf5b320ee660afb460cff29454fc9..e360a9d73f0530b1d75da836f6799aef806908f1 100644
|
| --- a/chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.h
|
| +++ b/chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.h
|
| @@ -7,6 +7,10 @@
|
|
|
| #include <Cocoa/Cocoa.h>
|
|
|
| +#include "base/memory/scoped_ptr.h"
|
| +
|
| +class FullscreenObserver;
|
| +
|
| namespace content {
|
| class WebContents;
|
| }
|
| @@ -21,11 +25,16 @@ class WebContents;
|
| @interface TabContentsController : NSViewController {
|
| @private
|
| content::WebContents* contents_; // weak
|
| + scoped_ptr<FullscreenObserver> fullscreenObserver_;
|
| + BOOL isEmbeddingFullscreenWidget_;
|
| }
|
| @property(readonly, nonatomic) content::WebContents* webContents;
|
|
|
| -// Create the contents of a tab represented by |contents|.
|
| -- (id)initWithContents:(content::WebContents*)contents;
|
| +// Create the contents of a tab represented by |contents|. When
|
| +// |enableEmbeddedFullscreen| is true, the WebContents view will automatically
|
| +// be swapped with a fullscreen render widget owned by the current WebContents.
|
| +- (id)initWithContents:(content::WebContents*)contents
|
| +andAutoEmbedFullscreen:(BOOL)enableEmbeddedFullscreen;
|
|
|
| // Call when the tab contents is about to be replaced with the currently
|
| // selected tab contents to do not trigger unnecessary content relayout.
|
| @@ -54,6 +63,10 @@ class WebContents;
|
| // an entirely new tab contents object.
|
| - (void)tabDidChange:(content::WebContents*)updatedContents;
|
|
|
| +// Called to switch the container's subview to the WebContents-owned fullscreen
|
| +// widget or back to WebContentsView's widget.
|
| +- (void)toggleFullscreenWidget:(BOOL)enterFullscreen;
|
| +
|
| @end
|
|
|
| #endif // CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_TAB_CONTENTS_CONTROLLER_H_
|
|
|