From 3a69f0af0b98c8373fd6b5997ce37efd31baa8dd Mon Sep 17 00:00:00 2001 From: "erg@google.com" Date: Thu, 28 May 2009 19:22:34 +0000 Subject: GTK: Implement GtkFloatingContainer and implement StatusBubble on top of it. This introduces a hybrid GtkBin/GtkFixed container which exposes a signal to absolutely position widgets. This also fixes the current flickering issues with the status bubble. http://crbug.com/11635 TEST=Goto a site with a long list of links (I used reddit.com) and move the mouse cursor up and down the list quickly. There shouldn't be flickering in the top left corner. Review URL: http://codereview.chromium.org/115835 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17095 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/gtk/status_bubble_gtk.h | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'chrome/browser/gtk/status_bubble_gtk.h') diff --git a/chrome/browser/gtk/status_bubble_gtk.h b/chrome/browser/gtk/status_bubble_gtk.h index e4fb4c3..5de672b 100644 --- a/chrome/browser/gtk/status_bubble_gtk.h +++ b/chrome/browser/gtk/status_bubble_gtk.h @@ -38,11 +38,6 @@ class StatusBubbleGtk : public StatusBubble { void SetStatus(const std::string& status_utf8); - // Notification from our parent GtkFixed about its size. |allocation| is the - // size of our |parent| GtkFixed, and we use it to position our status bubble - // directly on top of the current render view. - void SetParentAllocation(GtkWidget* parent, GtkAllocation* allocation); - // Top of the widget hierarchy for a StatusBubble. This top level widget is // guarenteed to have its gtk_widget_name set to "status-bubble" for // identification. @@ -59,25 +54,12 @@ class StatusBubbleGtk : public StatusBubble { // Builds the widgets, containers, etc. void InitWidgets(); - // An ad hoc, informally-specified, bug-ridden, slow implementation of half - // of GTK's requisition/allocation system. We use this to position the status - // bubble on top of our parent GtkFixed. - void SetStatusBubbleSize(); - // A GtkAlignment that is the child of |slide_widget_|. OwnedWidgetGtk container_; // The GtkLabel holding the text. GtkWidget* label_; - // Our parent GtkFixed. (We don't own this; we only keep a reference as we - // set our own size by notifying |parent_| of our desired size.) - GtkWidget* parent_; - - // |parent_|'s GtkAllocation. We make sure that |container_| lives along the - // bottom of this and doesn't protrude. - GtkAllocation parent_allocation_; - // A timer that hides our window after a delay. ScopedRunnableMethodFactory timer_factory_; }; -- cgit v1.1