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

Issue 327009: [Mac] Implement form resubmission warning dialog (Closed)

Created:
11 years, 2 months ago by Nico
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

[Mac] Implement form resubmission warning dialog Surprisingly, this is not a tab-modal sheet on linux and windows, so it's window-modal on os x as well for now. BUG=23526 TEST=Go to http://www.cs.unc.edu/~jbs/resources/perl/perl-cgi/programs/form1-POST.html , click "Do it!", hit reload. Window sheet should come up. Hitting cancel should cancel the navigation (and hitting reload again should bring up sheet again). Hitting "Resend" should trigger reload. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30547

Patch Set 1 #

Patch Set 2 : cleanups, less leaks #

Total comments: 6

Patch Set 3 : address comments #

Patch Set 4 : rebase tot #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -1 line) Patch
M chrome/browser/cocoa/browser_window_cocoa.mm View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
A chrome/browser/cocoa/repost_form_warning_mac.h View 1 2 1 chunk +57 lines, -0 lines 4 comments Download
A chrome/browser/cocoa/repost_form_warning_mac.mm View 1 2 1 chunk +93 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Nico
I don't get what the observer is good for, as the window can't be used ...
11 years, 2 months ago (2009-10-23 06:04:16 UTC) #1
brettw
Cross-platformy bits look good to me. I don't remember the specifics, but I think this ...
11 years, 2 months ago (2009-10-23 17:00:38 UTC) #2
Scott Hess - ex-Googler
http://codereview.chromium.org/327009/diff/2001/2003 File chrome/browser/cocoa/repost_form_warning_mac.h (right): http://codereview.chromium.org/327009/diff/2001/2003#newcode50 Line 50: NSAlert* alert_; I don't understand why this isn't ...
11 years, 2 months ago (2009-10-23 17:16:44 UTC) #3
Nico
Thanks for the thoughtful comments. Took me a while to get to them, sorry. http://codereview.chromium.org/327009/diff/2001/2003 ...
11 years, 1 month ago (2009-10-27 20:18:49 UTC) #4
Nico
Ping.
11 years, 1 month ago (2009-10-29 22:22:50 UTC) #5
Scott Hess - ex-Googler
lgtm
11 years, 1 month ago (2009-10-30 00:51:45 UTC) #6
pink (ping after 24hrs)
Please fix and comment these things in a subsequent CL. http://codereview.chromium.org/327009/diff/10001/11002 File chrome/browser/cocoa/repost_form_warning_mac.h (right): http://codereview.chromium.org/327009/diff/10001/11002#newcode16 ...
11 years, 1 month ago (2009-11-02 17:36:18 UTC) #7
Nico
11 years, 1 month ago (2009-11-02 18:05:16 UTC) #8
Follow-up in http://codereview.chromium.org/354009

http://codereview.chromium.org/327009/diff/10001/11002
File chrome/browser/cocoa/repost_form_warning_mac.h (right):

http://codereview.chromium.org/327009/diff/10001/11002#newcode16
Line 16: @interface RepostDelegate : NSObject {
On 2009/11/02 17:36:19, pink wrote:
> class needs a comment. Does this really need to be public? Can't you just say
> @class RepostDelegate and do the declaration in the .mm file?

Done.

http://codereview.chromium.org/327009/diff/10001/11002#newcode25
Line 25: class RepostFormWarningMac : public NotificationObserver {
On 2009/11/02 17:36:19, pink wrote:
> class needs a comment. Especially needs to mention how it cleans itself up
since
> it appears from the use that it will leak itself and handle its own cleanup.

Done.

Powered by Google App Engine
This is Rietveld 408576698