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

Issue 3198005: Disable the stop button when the user is hovering it and the page finishes lo... (Closed)

Created:
10 years, 4 months ago by Peter Kasting
Modified:
9 years, 7 months ago
CC:
chromium-reviews, John Grabowski, Paweł Hajdan Jr., pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Disable the stop button when the user is hovering it and the page finishes loading, so we don't look like we stay loading forever. This change only does this for Mac and Windows, as GTK is going to be trickier. This also fixes a pair of other bugs on Windows and Linux: * Because we were setting the timer after telling the browser to reload, and the browser was calling us back synchronously, the timer had no effect. * Because the timer firing changed modes with |force| set to true, if the page finished loading before the timer fired, the timer would flip the button back to reload. BUG=46981 TEST=Hover the reload button and hit F5. When the page finishes loading, the stop button should become disabled. Mousing away should change it to an enabled reload button. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=56925

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 4

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -41 lines) Patch
M chrome/app/theme/theme_resources.grd View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/browser_theme_pack.cc View 1 2 chunks +17 lines, -16 lines 0 comments Download
M chrome/browser/browser_theme_provider.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/cocoa/reload_button.mm View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/cocoa/reload_button_unittest.mm View 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/gtk/reload_button_gtk.cc View 1 2 3 4 5 3 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/views/reload_button.cc View 1 3 chunks +15 lines, -9 lines 0 comments Download
M chrome/browser/views/toolbar_view.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M views/controls/button/custom_button.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M views/controls/button/custom_button.cc View 1 2 3 4 3 chunks +19 lines, -2 lines 0 comments Download
M views/widget/root_view.cc View 1 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Peter Kasting
sky: Windows erg: GTK; please test that the change does the right things shess: Mac; ...
10 years, 4 months ago (2010-08-19 23:29:15 UTC) #1
Scott Hess - ex-Googler
LGTM with the change indicated (which I verified fixes the case I described). I'm not ...
10 years, 4 months ago (2010-08-19 23:58:17 UTC) #2
sky
LGTM with the following change. http://codereview.chromium.org/3198005/diff/20001/21009 File views/controls/button/custom_button.cc (right): http://codereview.chromium.org/3198005/diff/20001/21009#newcode93 views/controls/button/custom_button.cc:93: gfx::Point cursor_pos(Screen::GetCursorScreenPoint()); I think ...
10 years, 4 months ago (2010-08-20 00:03:18 UTC) #3
Peter Kasting
Adding rohitrao to take over Mac review from shess. Really the only question I have ...
10 years, 4 months ago (2010-08-20 00:14:11 UTC) #4
Peter Kasting
I have changed this CL to only do the main change for Mac and Windows, ...
10 years, 4 months ago (2010-08-20 01:39:49 UTC) #5
Peter Kasting
Somehow, I didn't _actually_ add rohitrao when I said I did.
10 years, 4 months ago (2010-08-20 19:17:34 UTC) #6
rohitrao (ping after 24h)
On 2010/08/20 19:17:34, Peter Kasting wrote: > Somehow, I didn't _actually_ add rohitrao when I ...
10 years, 4 months ago (2010-08-20 21:00:18 UTC) #7
Peter Kasting
On 2010/08/20 21:00:18, rohitrao wrote: > One other thing that's a little worse now is ...
10 years, 4 months ago (2010-08-20 21:02:14 UTC) #8
Elliot Glaysher
10 years, 4 months ago (2010-08-20 21:06:57 UTC) #9
GTK parts LGTM.

On Fri, Aug 20, 2010 at 2:02 PM,  <pkasting@chromium.org> wrote:
> On 2010/08/20 21:00:18, rohitrao wrote:
>>
>> One other thing that's a little worse now is loading a page like
>
> http://www.cnn.com,
>>
>> where (at least for me) the page seems to finish loading, then loads two
>> more
>> resources a second later.
>
> Yeah.  If you hover reload buttons, this change makes the stop/reload
> flicker
> issues more annoying.  Hopefully, people won't sit there hovering the button
> in
> the majority of cases.
>
>
> http://codereview.chromium.org/3198005/show
>

Powered by Google App Engine
This is Rietveld 408576698