Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: chrome/browser/ui/browser.h

Issue 7809013: Remove Animation When "Resuming" Window in Lion (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: drag and const. Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/browser.h
diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h
index df08d1e551fbd6bea5f010a71b30b4e742c81233..69639630b5746d143fb4073b0331a00375994da2 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() const {
+ 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_;

Powered by Google App Engine
This is Rietveld 408576698