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

Unified Diff: chrome/browser/ui/panels/panel.cc

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/panels/panel.cc
diff --git a/chrome/browser/ui/panels/panel.cc b/chrome/browser/ui/panels/panel.cc
index 118d741303787fd7537f4412433bbf34639dd098..c756a605b383474f833c965784a140385e205bc6 100644
--- a/chrome/browser/ui/panels/panel.cc
+++ b/chrome/browser/ui/panels/panel.cc
@@ -75,7 +75,7 @@ bool Panel::IsDrawingAttention() const {
return native_panel_->IsDrawingAttention();
}
-void Panel::Show() {
+void Panel::Show(BrowserWindow::ShowContext show_context) {
native_panel_->ShowPanel();
}
@@ -308,7 +308,8 @@ DownloadShelf* Panel::GetDownloadShelf() {
tabbed_browser->NewTab();
}
- tabbed_browser->window()->Show(); // Ensure download shelf is visible.
+ // Ensure download shelf is visible.
+ tabbed_browser->window()->Show(BrowserWindow::SHOW_CONTEXT_NORMAL);
return tabbed_browser->window()->GetDownloadShelf();
}

Powered by Google App Engine
This is Rietveld 408576698