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

Unified Diff: chrome/browser/ui/gtk/tabs/tab_strip_gtk.h

Issue 7640004: Gtk: Make click target of tabs match their appearance. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: single space after period 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
« no previous file with comments | « chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc ('k') | chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/tabs/tab_strip_gtk.h
diff --git a/chrome/browser/ui/gtk/tabs/tab_strip_gtk.h b/chrome/browser/ui/gtk/tabs/tab_strip_gtk.h
index 98c7a85643d6527bffcb0ad09b0963827a6eb00c..c10e0975f1fe83931c58554761e215eb6238fe8b 100644
--- a/chrome/browser/ui/gtk/tabs/tab_strip_gtk.h
+++ b/chrome/browser/ui/gtk/tabs/tab_strip_gtk.h
@@ -110,6 +110,10 @@ class TabStripGtk : public TabStripModelObserver,
virtual void TabMoved(TabContentsWrapper* contents,
int from_index,
int to_index);
+ virtual void ActiveTabChanged(TabContentsWrapper* old_contents,
+ TabContentsWrapper* new_contents,
+ int index,
+ bool user_gesture);
virtual void TabSelectionChanged(const TabStripSelectionModel& old_model);
virtual void TabChangedAt(TabContentsWrapper* contents, int index,
TabChangeType change_type);
@@ -228,6 +232,11 @@ class TabStripGtk : public TabStripModelObserver,
DISALLOW_COPY_AND_ASSIGN(DropInfo);
};
+ // Map signal handler that sets initial z-ordering. The widgets need to be
+ // realized before we can set the stacking. We use the "map" signal since the
+ // "realize" signal is called before the child widgets get realized.
+ CHROMEGTK_CALLBACK_0(TabStripGtk, void, OnMap);
+
// expose-event handler that redraws the tabstrip
CHROMEGTK_CALLBACK_1(TabStripGtk, gboolean, OnExpose, GdkEventExpose*);
@@ -321,6 +330,9 @@ class TabStripGtk : public TabStripModelObserver,
// which is defined as the region above the TabStrip and a bit below it.
bool IsCursorInTabStripZone() const;
+ // Reset the Z-ordering of tabs.
+ void ReStack();
+
// Ensure that the message loop observer used for event spying is added and
// removed appropriately so we can tell when to resize layout the tab strip.
void AddMessageLoopObserver();
« no previous file with comments | « chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc ('k') | chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698