diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-28 19:22:34 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-28 19:22:34 +0000 |
commit | 3a69f0af0b98c8373fd6b5997ce37efd31baa8dd (patch) | |
tree | f954ec0d0c56a53b20fe27640a674698a96f28ff /chrome/browser/gtk/status_bubble_gtk.h | |
parent | 5beb105cef4ede484df49a02cfc7984ac053b225 (diff) | |
download | chromium_src-3a69f0af0b98c8373fd6b5997ce37efd31baa8dd.zip chromium_src-3a69f0af0b98c8373fd6b5997ce37efd31baa8dd.tar.gz chromium_src-3a69f0af0b98c8373fd6b5997ce37efd31baa8dd.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/gtk/status_bubble_gtk.h')
-rw-r--r-- | chrome/browser/gtk/status_bubble_gtk.h | 18 |
1 files changed, 0 insertions, 18 deletions
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<StatusBubbleGtk> timer_factory_; }; |