From 964261625ffa4663632348ad4e4288137764aa60 Mon Sep 17 00:00:00 2001 From: "jhawkins@chromium.org" Date: Fri, 10 Apr 2009 01:58:54 +0000 Subject: 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 --- chrome/browser/gtk/tabs/tab_strip_gtk.cc | 12 ++++++------ chrome/browser/gtk/tabs/tab_strip_gtk.h | 4 +++- 2 files changed, 9 insertions(+), 7 deletions(-) (limited to 'chrome/browser/gtk') 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 ------------------------------------------------------------- -- cgit v1.1