| Index: chrome/browser/ui/extensions/shell_window.h
|
| diff --git a/chrome/browser/ui/extensions/shell_window.h b/chrome/browser/ui/extensions/shell_window.h
|
| index 5d7e8f6362827f156d6e7b054aac147b4c1a612e..9204223366128f368076133b676e828583a47a37 100644
|
| --- a/chrome/browser/ui/extensions/shell_window.h
|
| +++ b/chrome/browser/ui/extensions/shell_window.h
|
| @@ -100,6 +100,16 @@ class ShellWindow : public content::NotificationObserver,
|
| // The process ID of the process that requested the create.
|
| int32 creator_process_id;
|
|
|
| + enum State {
|
| + STATE_NORMAL,
|
| + STATE_FULLSCREEN,
|
| + STATE_MAXIMIZED,
|
| + STATE_MINIMIZED
|
| + };
|
| +
|
| + // Initial state of the window.
|
| + State state;
|
| +
|
| // If true, don't show the window after creation.
|
| bool hidden;
|
|
|
| @@ -179,6 +189,13 @@ class ShellWindow : public content::NotificationObserver,
|
| // callback. Also called externally for v1 apps using Ash Panels.
|
| void UpdateAppIcon(const gfx::Image& image);
|
|
|
| + // Transitions window into fullscreen, maximized, minimized or restores based
|
| + // on chrome.app.window API.
|
| + void Fullscreen();
|
| + void Maximize();
|
| + void Minimize();
|
| + void Restore();
|
| +
|
| ShellWindowContents* shell_window_contents_for_test() {
|
| return shell_window_contents_.get();
|
| }
|
| @@ -277,6 +294,11 @@ class ShellWindow : public content::NotificationObserver,
|
|
|
| base::WeakPtrFactory<ShellWindow> image_loader_ptr_factory_;
|
|
|
| + // Fullscreen entered by app.window api.
|
| + bool fullscreen_for_window_api_;
|
| + // Fullscreen entered by HTML requestFullscreen.
|
| + bool fullscreen_for_tab_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(ShellWindow);
|
| };
|
|
|
|
|