Chromium Code Reviews| Index: chrome/browser/ui/browser.h |
| diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h |
| index df08d1e551fbd6bea5f010a71b30b4e742c81233..3b98627f0899f92188a9ecd3259d99e3e9c36eb9 100644 |
| --- a/chrome/browser/ui/browser.h |
| +++ b/chrome/browser/ui/browser.h |
| @@ -168,6 +168,15 @@ class Browser : public TabHandlerDelegate, |
| bool bounds_overridden() const { |
| return !override_bounds_.IsEmpty(); |
| } |
| + // Set indicator that this browser is being created via session restore. |
| + // This is used on the Mac (only) to determine animation style when the |
| + // browser window is shown. |
| + void set_is_session_restore(bool is_session_restore) { |
| + is_session_restore_ = is_session_restore; |
| + } |
| + bool is_session_restore() { |
|
Mark Mentovai
2011/08/31 18:47:01
bool is_session_restore() const {
dhollowa
2011/08/31 18:57:17
Done.
|
| + return is_session_restore_; |
| + } |
| // Creates the Browser Window. Prefer to use the static helpers above where |
| // possible. This does not show the window. You need to call window()->Show() |
| @@ -1317,6 +1326,9 @@ class Browser : public TabHandlerDelegate, |
| gfx::Rect override_bounds_; |
| ui::WindowShowState show_state_; |
| + // Tracks when this browser is being created by session restore. |
| + bool is_session_restore_; |
| + |
| // The following factory is used to close the frame at a later time. |
| ScopedRunnableMethodFactory<Browser> method_factory_; |