diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-10 01:58:54 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-10 01:58:54 +0000 |
commit | 964261625ffa4663632348ad4e4288137764aa60 (patch) | |
tree | 161cd1e5b2001fb35ea0ade8030090c3e5c83de2 | |
parent | 5b1dc51f3fbe094c7feb921755c96bf2cdcafc91 (diff) | |
download | chromium_src-964261625ffa4663632348ad4e4288137764aa60.zip chromium_src-964261625ffa4663632348ad4e4288137764aa60.tar.gz chromium_src-964261625ffa4663632348ad4e4288137764aa60.tar.bz2 |
Comment the unselected_width parameter to the newly-added LayoutNewTabButton method. Also remove some c-style comments that slipped in.
TBR=evan
Review URL: http://codereview.chromium.org/66026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13489 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/gtk/tabs/tab_strip_gtk.cc | 12 | ||||
-rw-r--r-- | chrome/browser/gtk/tabs/tab_strip_gtk.h | 4 |
2 files changed, 9 insertions, 7 deletions
diff --git a/chrome/browser/gtk/tabs/tab_strip_gtk.cc b/chrome/browser/gtk/tabs/tab_strip_gtk.cc index 8e810ff..f697099 100644 --- a/chrome/browser/gtk/tabs/tab_strip_gtk.cc +++ b/chrome/browser/gtk/tabs/tab_strip_gtk.cc @@ -176,15 +176,15 @@ class NewTabButton { // simulate a mouse moved event at the current mouse position. This tickles // the New Tab button to show the "hot" state. void HighlightNewTabButton() { - /* get default display and screen */ + // Get default display and screen. GdkDisplay* display = gdk_display_get_default(); GdkScreen* screen = gdk_display_get_default_screen(display); - /* get cursor position */ + // Get cursor position. int x, y; gdk_display_get_pointer(display, NULL, &x, &y, NULL); - /* reset cusor position */ + // Reset cusor position. gdk_display_warp_pointer(display, screen, x, y); } @@ -457,15 +457,15 @@ class RemoveTabAnimation : public TabStripGtk::TabAnimation { return; } - /* get default display and screen */ + // Get default display and screen. GdkDisplay* display = gdk_display_get_default(); GdkScreen* screen = gdk_display_get_default_screen(display); - /* get cursor position */ + // Get cursor position. int x, y; gdk_display_get_pointer(display, NULL, &x, &y, NULL); - /* reset cusor position */ + // Reset cusor position. gdk_display_warp_pointer(display, screen, x, y); } diff --git a/chrome/browser/gtk/tabs/tab_strip_gtk.h b/chrome/browser/gtk/tabs/tab_strip_gtk.h index c0f2c17..6251829 100644 --- a/chrome/browser/gtk/tabs/tab_strip_gtk.h +++ b/chrome/browser/gtk/tabs/tab_strip_gtk.h @@ -148,7 +148,9 @@ class TabStripGtk : public TabStripModelObserver, void GenerateIdealBounds(); // Lays out the New Tab button, assuming the right edge of the last Tab on - // the TabStrip at |last_tab_right|. + // the TabStrip at |last_tab_right|. |unselected_width| is the width of + // unselected tabs at the moment this function is called. The value changes + // during animations, so we can't use current_unselected_width_. void LayoutNewTabButton(double last_tab_right, double unselected_width); // -- Animations ------------------------------------------------------------- |