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

Issue 660434: Make repost form warning tab-modal on Gtk. (Closed)

Created:
10 years, 9 months ago by Bernhard Bauer
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, ben+cc_chromium.org, Paweł Hajdan Jr., brettw+cc_chromium.org
Visibility:
Public.

Description

Make repost form warning tab-modal on Gtk. This is the Gtk version of http://codereview.chromium.org/969003. BUG=26271 TEST=Go to http://www.cs.unc.edu/~jbs/resources/perl/perl-cgi/programs/form1-POST.html, hit Submit, then refresh. The warning sheet should be tab-modal, not window-modal. Opening a login form (which is also tab-modal) while the warning is shown should not crash, neither should bringing up the warning while a login form is shown. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=42474

Patch Set 1 #

Total comments: 2

Patch Set 2 : Enter cancels repost warning. #

Patch Set 3 : RepostFormWarningGtk to use CHROMEGTK_CALLBACK_X. #

Total comments: 3

Patch Set 4 : Sync with mac CL #

Patch Set 5 : Change CHROMEGTK_CALLBACK back to G_CALLBACK(SomethingThunk) #

Patch Set 6 : Fixed a small bug when two tabmodal dialogs were shown. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -50 lines) Patch
M chrome/browser/gtk/browser_window_gtk.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/gtk/repost_form_warning_gtk.h View 1 2 3 chunks +21 lines, -8 lines 0 comments Download
M chrome/browser/gtk/repost_form_warning_gtk.cc View 1 2 3 4 3 chunks +78 lines, -39 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Bernhard Bauer
http://codereview.chromium.org/660434/diff/1/3 File chrome/browser/gtk/repost_form_warning_gtk.cc (right): http://codereview.chromium.org/660434/diff/1/3#newcode57 chrome/browser/gtk/repost_form_warning_gtk.cc:57: // TODO(bauerb) keyboard shortcuts don't work @evan: Do you ...
10 years, 9 months ago (2010-03-03 03:43:13 UTC) #1
Evan Martin
+erg, tab-modal master
10 years, 9 months ago (2010-03-03 14:56:13 UTC) #2
Elliot Glaysher
LGTM, with fixes to keyboard shortcuts. http://codereview.chromium.org/660434/diff/1/3 File chrome/browser/gtk/repost_form_warning_gtk.cc (right): http://codereview.chromium.org/660434/diff/1/3#newcode57 chrome/browser/gtk/repost_form_warning_gtk.cc:57: // TODO(bauerb) keyboard ...
10 years, 9 months ago (2010-03-03 18:40:17 UTC) #3
Bernhard Bauer
I changed the callbacks to use the CHROMEGTK_CALLBACK_\d macros. erg, could you take another look? ...
10 years, 9 months ago (2010-03-15 20:13:50 UTC) #4
Evan Martin
http://codereview.chromium.org/660434/diff/9001/10002 File chrome/browser/gtk/repost_form_warning_gtk.cc (right): http://codereview.chromium.org/660434/diff/9001/10002#newcode17 chrome/browser/gtk/repost_form_warning_gtk.cc:17: G_CALLBACK(METHOD ## Thunk) On 2010/03/15 20:13:50, bernhard wrote: > ...
10 years, 9 months ago (2010-03-15 20:15:49 UTC) #5
Bernhard Bauer
http://codereview.chromium.org/660434/diff/9001/10002 File chrome/browser/gtk/repost_form_warning_gtk.cc (right): http://codereview.chromium.org/660434/diff/9001/10002#newcode17 chrome/browser/gtk/repost_form_warning_gtk.cc:17: G_CALLBACK(METHOD ## Thunk) Hm, I added the macro exactly ...
10 years, 9 months ago (2010-03-15 20:30:11 UTC) #6
Elliot Glaysher
For the record, I disagree with the Evans. While humans know about "Thunk", editors don't. ...
10 years, 9 months ago (2010-03-16 05:23:15 UTC) #7
Bernhard Bauer
10 years, 9 months ago (2010-03-18 01:25:21 UTC) #8
Unless there are objections, I'm going to land this with |G_CALLBACK| and
|Thunk|s soon-ish (but +1 for adding something similar globally).

Powered by Google App Engine
This is Rietveld 408576698