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

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

Issue 7809013: Remove Animation When "Resuming" Window in Lion (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adds context parameter to BrowserWindow::Show(...) 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_window.h
diff --git a/chrome/browser/ui/browser_window.h b/chrome/browser/ui/browser_window.h
index b74f9faf7bd76560cd72b66ff1af60bf7e9ff895..0f9aea9b6ced31e569b88d963b6ed09dde5ef90b 100644
--- a/chrome/browser/ui/browser_window.h
+++ b/chrome/browser/ui/browser_window.h
@@ -44,10 +44,18 @@ class Extension;
// NOTE: All getters may return NULL.
class BrowserWindow {
public:
+ enum ShowContext {
+ SHOW_CONTEXT_NORMAL,
+ SHOW_CONTEXT_RESTORE
+ };
+
virtual ~BrowserWindow() {}
- // Show the window, or activates it if it's already visible.
- virtual void Show() = 0;
+ // Show the window, or activates it if it's already visible. |show_context|
+ // specifies the context under which the show is taking place. In the restore
+ // cases, session restore is in effect, and on Mac this determines the type
+ // of animation to apply.
+ virtual void Show(ShowContext show_context) = 0;
// Show the window, but do not activate it. Does nothing if window
// is already visible.

Powered by Google App Engine
This is Rietveld 408576698