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

Issue 392007: gtk: Hide the status bubble when the mouse nears it. (Closed)

Created:
11 years, 1 month ago by Daniel Erat
Modified:
9 years, 7 months ago
Reviewers:
tony, Nico
CC:
chromium-reviews_googlegroups.com, Evan Stade
Visibility:
Public.

Description

gtk: Hide the status bubble when the mouse nears it. This isn't as slick as other platforms, in that the bubble just slides down and gets cropped instead of sliding down out of the browser window -- doing the latter will probably require reparenting the bubble into its own window when we want to move it. BUG=18311 TEST=ran "nc -l -p 8080", went to localhost:8080, and made sure that the bubble ran away with both LTR and RTL languages Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=31984

Patch Set 1 #

Patch Set 2 : add comment #

Total comments: 7

Patch Set 3 : make bubble swap sides when download shelf is up #

Patch Set 4 : merge #

Total comments: 4

Patch Set 5 : apply feedback #

Total comments: 1

Patch Set 6 : fix RoundedWindowData memory leak #

Patch Set 7 : merge #

Patch Set 8 : merge again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -74 lines) Patch
M chrome/browser/browser.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/browser.cc View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/cocoa/status_bubble_mac.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/cocoa/status_bubble_mac.mm View 1 2 3 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/gtk/download_shelf_gtk.cc View 3 4 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/gtk/rounded_window.h View 1 chunk +11 lines, -3 lines 0 comments Download
M chrome/browser/gtk/rounded_window.cc View 3 4 5 2 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/gtk/status_bubble_gtk.h View 1 2 5 chunks +33 lines, -2 lines 0 comments Download
M chrome/browser/gtk/status_bubble_gtk.cc View 1 2 3 4 5 chunks +126 lines, -14 lines 0 comments Download
M chrome/browser/gtk/tab_contents_container_gtk.cc View 1 2 3 4 1 chunk +8 lines, -6 lines 0 comments Download
M chrome/browser/status_bubble.h View 1 2 3 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_delegate.h View 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_view_gtk.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_view_mac.mm View 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/views/status_bubble_views.h View 1 2 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/views/status_bubble_views.cc View 1 2 3 3 chunks +19 lines, -16 lines 0 comments Download
M chrome/browser/views/tab_contents/tab_contents_view_gtk.cc View 4 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/views/tab_contents/tab_contents_view_win.cc View 3 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Daniel Erat
This still needs testing on other platforms, but if you don't mind taking an early ...
11 years, 1 month ago (2009-11-12 02:25:21 UTC) #1
tony
http://codereview.chromium.org/392007/diff/1001/1002 File chrome/browser/browser.cc (right): http://codereview.chromium.org/392007/diff/1001/1002#newcode2028 Line 2028: GetStatusBubble()->MouseMoved(location, !motion); Can we get by with not ...
11 years, 1 month ago (2009-11-12 20:01:22 UTC) #2
Nico
FWIW, on win and os x the bubble moves to the bottom right corner when ...
11 years, 1 month ago (2009-11-12 20:04:51 UTC) #3
use derat at chromium.org
Yeah, this is just a quick first attempt. The status bubble gets clipped instead of ...
11 years, 1 month ago (2009-11-12 23:35:10 UTC) #4
Daniel Erat
Another look? I ended up fixing the behavior when the download shelf is visible since ...
11 years, 1 month ago (2009-11-13 22:13:59 UTC) #5
tony
Adding estade so he's aware of some of the download shelf changes. http://codereview.chromium.org/392007/diff/4024/2012 File chrome/browser/gtk/rounded_window.cc ...
11 years, 1 month ago (2009-11-13 22:36:00 UTC) #6
tony
LGTM http://codereview.chromium.org/392007/diff/2026/2032 File chrome/browser/gtk/rounded_window.cc (right): http://codereview.chromium.org/392007/diff/2026/2032#newcode214 Line 214: g_object_steal_data(G_OBJECT(widget), kRoundedData); Nit: Do we have to ...
11 years, 1 month ago (2009-11-13 23:01:24 UTC) #7
Daniel Erat
11 years, 1 month ago (2009-11-13 23:09:54 UTC) #8
Thanks!

On Fri, Nov 13, 2009 at 3:01 PM,  <tony@chromium.org> wrote:
> LGTM
>
>
> http://codereview.chromium.org/392007/diff/2026/2032
> File chrome/browser/gtk/rounded_window.cc (right):
>
> http://codereview.chromium.org/392007/diff/2026/2032#newcode214
> Line 214: g_object_steal_data(G_OBJECT(widget), kRoundedData);
> Nit: Do we have to delete the data after we steal it?

Yikes, nice catch.  Yes.

> http://codereview.chromium.org/392007
>

Powered by Google App Engine
This is Rietveld 408576698