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

Unified Diff: chrome/browser/gtk/browser_window_gtk.cc

Issue 5790002: [gtk] tabcontents fade-out for instant. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile fixes Created 10 years 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
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_widget_host_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/browser_window_gtk.cc
diff --git a/chrome/browser/gtk/browser_window_gtk.cc b/chrome/browser/gtk/browser_window_gtk.cc
index 25c8f12553786e0a893ea01a83222c4a97dc707b..9a86e94ba6656d85b0733c9e5300b5d38ca379b7 100644
--- a/chrome/browser/gtk/browser_window_gtk.cc
+++ b/chrome/browser/gtk/browser_window_gtk.cc
@@ -1109,12 +1109,18 @@ void BrowserWindowGtk::Paste() {
}
void BrowserWindowGtk::PrepareForInstant() {
- // TODO: implement fade as done on windows.
+ TabContents* contents = contents_container_->GetTabContents();
+ if (contents)
+ contents->FadeForInstant();
}
void BrowserWindowGtk::ShowInstant(TabContents* preview_contents) {
contents_container_->SetPreviewContents(preview_contents);
MaybeShowBookmarkBar(false);
+
+ TabContents* contents = contents_container_->GetTabContents();
+ if (contents)
+ contents->CancelInstantFade();
}
void BrowserWindowGtk::HideInstant() {
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_widget_host_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698