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

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

Issue 10959049: Change visibility semantics for Instant. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Enable a test Created 8 years, 3 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
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/gtk/tab_contents_container_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/tab_contents_container_gtk.h
diff --git a/chrome/browser/ui/gtk/tab_contents_container_gtk.h b/chrome/browser/ui/gtk/tab_contents_container_gtk.h
index 76851bdc9de0b57f90e9d520000b26310f538313..7e2f910f26fdc13df28bc9cd48604f931492b8d3 100644
--- a/chrome/browser/ui/gtk/tab_contents_container_gtk.h
+++ b/chrome/browser/ui/gtk/tab_contents_container_gtk.h
@@ -36,13 +36,11 @@ class TabContentsContainerGtk : public content::NotificationObserver,
void SetTab(TabContents* tab);
TabContents* tab() const { return tab_; }
- // Returns the TabContents currently displayed.
- TabContents* GetVisibleTab();
-
+ void SetPreview(TabContents* preview);
bool HasPreview() const { return preview_ != NULL; }
- void SetPreview(TabContents* preview);
- void PopPreview();
+ // Returns the TabContents currently displayed.
+ TabContents* GetVisibleTab() const { return preview_ ? preview_ : tab_; }
// Remove the tab from the hierarchy.
void DetachTab(TabContents* tab);
@@ -75,9 +73,6 @@ class TabContentsContainerGtk : public content::NotificationObserver,
// Stops showing |tab|.
void HideTab(TabContents* tab);
- // Removes |preview_|.
- void RemovePreview();
-
// Handle focus traversal on the tab contents container. Focus should not
// traverse to the preview contents.
CHROMEGTK_CALLBACK_1(TabContentsContainerGtk, gboolean, OnFocus,
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/gtk/tab_contents_container_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698