Chromium Code Reviews| 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..e1f98d8ac93be493e9a1ba2b58dccbcb09c48195 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,20 @@ class WebContents; |
| @interface TabContentsController : NSViewController { |
| @private |
| content::WebContents* contents_; // weak |
| + // When |fullscreenObserver_| not-NULL, TabContentsController monitors for |
| + // and auto-embeds fullscreen widgets as a subview. |
| + scoped_ptr<FullscreenObserver> fullscreenObserver_; |
| + // Set to true while TabContentsController is embedding a fullscreen widget |
| + // view as a subview instead of the normal WebContentsView render view. |
| + 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; |
|
Robert Sesek
2013/09/12 15:11:36
nit: indent 4 spaces because aligning colons doesn
miu
2013/09/12 23:16:44
Done.
|
| // 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 +67,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_ |