| 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 36be67ebcfc2288910f70033780e8e733f811cc7..b0e592b36fa3b656430ad29c50ee9daf58119474 100644
|
| --- a/chrome/browser/ui/extensions/shell_window.h
|
| +++ b/chrome/browser/ui/extensions/shell_window.h
|
| @@ -47,13 +47,20 @@ class ShellWindow : public content::NotificationObserver,
|
| };
|
|
|
| CreateParams();
|
| + ~CreateParams();
|
|
|
| Frame frame;
|
| // Specify the initial bounds of the window. If empty, the window will be a
|
| // default size.
|
| gfx::Rect bounds;
|
| + // Specify if bounds should be restored from a previous time.
|
| + bool restore_position;
|
| + bool restore_size;
|
| +
|
| gfx::Size minimum_size;
|
| gfx::Size maximum_size;
|
| +
|
| + std::string window_key;
|
| };
|
|
|
| static ShellWindow* Create(Profile* profile,
|
| @@ -80,6 +87,9 @@ class ShellWindow : public content::NotificationObserver,
|
| // invoke this method instead of using "delete this".
|
| void OnNativeClose();
|
|
|
| + // Save the window position in the prefs.
|
| + virtual void SaveWindowPosition();
|
| +
|
| protected:
|
| ShellWindow(Profile* profile,
|
| const extensions::Extension* extension);
|
| @@ -154,6 +164,10 @@ class ShellWindow : public content::NotificationObserver,
|
| // weak pointer - owned by ExtensionService.
|
| const extensions::Extension* extension_;
|
|
|
| + // Identifier that is used when saving and restoring geometry for this
|
| + // window.
|
| + std::string window_key_;
|
| +
|
| const SessionID session_id_;
|
| scoped_ptr<TabContents> contents_;
|
| // web_contents_ is owned by contents_.
|
|
|