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

Issue 560030: Refactored out JS specific part of modal dialog stack into its own class, exp... (Closed)

Created:
10 years, 10 months ago by zel
Modified:
9 years, 6 months ago
CC:
chromium-reviews, ben+cc_chromium.org
Visibility:
Public.

Description

Refactored out JS specific part of modal dialog stack into its own class, exposed cookie/storage prompt as a modal dialog. BUG=32719 TEST=none, requires Darin to hook this with his code. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=38268

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 33

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : '' #

Patch Set 15 : '' #

Total comments: 27

Patch Set 16 : '' #

Patch Set 17 : '' #

Patch Set 18 : '' #

Patch Set 19 : '' #

Patch Set 20 : '' #

Patch Set 21 : '' #

Patch Set 22 : '' #

Patch Set 23 : '' #

Patch Set 24 : '' #

Patch Set 25 : '' #

Patch Set 26 : '' #

Patch Set 27 : '' #

Patch Set 28 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1193 lines, -808 lines) Patch
M chrome/browser/app_modal_dialog.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 3 chunks +36 lines, -69 lines 0 comments Download
M chrome/browser/app_modal_dialog.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +10 lines, -107 lines 0 comments Download
M chrome/browser/app_modal_dialog_gtk.cc View 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +8 lines, -182 lines 0 comments Download
M chrome/browser/app_modal_dialog_mac.mm View 17 18 19 20 21 22 23 24 25 26 3 chunks +2 lines, -154 lines 0 comments Download
MM chrome/browser/app_modal_dialog_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +2 lines, -18 lines 0 comments Download
M chrome/browser/browser_browsertest.cc View 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +3 lines, -1 line 0 comments Download
A chrome/browser/cookie_modal_dialog.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +65 lines, -0 lines 0 comments Download
A chrome/browser/cookie_modal_dialog.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/browser/cookie_modal_dialog_views.cc View 16 17 18 19 20 21 22 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/browser/cookie_prompt_modal_dialog_delegate.h View 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_host.cc View 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/js_modal_dialog.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +102 lines, -0 lines 0 comments Download
A chrome/browser/js_modal_dialog.cc View 1 2 3 1 chunk +125 lines, -0 lines 0 comments Download
A chrome/browser/js_modal_dialog_gtk.cc View 4 5 6 7 8 9 10 11 12 13 1 chunk +215 lines, -0 lines 0 comments Download
A chrome/browser/js_modal_dialog_mac.mm View 1 chunk +170 lines, -0 lines 0 comments Download
A chrome/browser/js_modal_dialog_win.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +32 lines, -0 lines 0 comments Download
M chrome/browser/jsmessage_box_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +0 lines, -38 lines 0 comments Download
M chrome/browser/jsmessage_box_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +0 lines, -56 lines 0 comments Download
A + chrome/browser/message_box_handler.h View 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +27 lines, -3 lines 0 comments Download
A + chrome/browser/message_box_handler.cc View 4 5 6 7 8 9 10 11 12 13 14 15 17 18 19 3 chunks +30 lines, -7 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/views/cookie_info_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/views/cookie_info_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +35 lines, -0 lines 0 comments Download
M chrome/browser/views/cookie_prompt_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 5 chunks +36 lines, -45 lines 0 comments Download
M chrome/browser/views/cookie_prompt_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 8 chunks +63 lines, -67 lines 0 comments Download
M chrome/browser/views/jsmessage_box_dialog.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +12 lines, -17 lines 0 comments Download
M chrome/browser/views/jsmessage_box_dialog.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 4 chunks +17 lines, -40 lines 0 comments Download
A chrome/browser/views/modal_dialog_delegate.h View 4 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/browser/views/modal_dialog_delegate.cc View 1 chunk +37 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 6 chunks +16 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
zel
modal app dialog in Chrome has an unintuitive OOD, my changes don't fix that issue ...
10 years, 10 months ago (2010-02-03 09:50:23 UTC) #1
darin (slow to review)
good stuff! some nits: http://codereview.chromium.org/560030/diff/4012/5011 File chrome/browser/app_modal_dialog.cc (right): http://codereview.chromium.org/560030/diff/4012/5011#newcode30 chrome/browser/app_modal_dialog.cc:30: if (tab_contents_) so it looks ...
10 years, 10 months ago (2010-02-03 21:28:29 UTC) #2
zel
this patch set covers most of Darin's comments and Linux build... I still have Mac ...
10 years, 10 months ago (2010-02-04 01:38:55 UTC) #3
zel
The latest patch should cover all Darin's comments and Linux build break. I am still ...
10 years, 10 months ago (2010-02-04 01:43:05 UTC) #4
zel
http://codereview.chromium.org/560030/diff/4012/5028 File chrome/browser/browser_browsertest.cc (left): http://codereview.chromium.org/560030/diff/4012/5028#oldcode232 chrome/browser/browser_browsertest.cc:232: EXPECT_FALSE(alert->is_before_unload_dialog()); On 2010/02/04 01:38:55, zel wrote: > On 2010/02/03 ...
10 years, 10 months ago (2010-02-04 01:49:21 UTC) #5
zel
Jochen is working on mac part of this change, the rest of it should be ...
10 years, 10 months ago (2010-02-04 04:30:56 UTC) #6
darin (slow to review)
http://codereview.chromium.org/560030/diff/13015/12026 File chrome/browser/browser_browsertest.cc (right): http://codereview.chromium.org/560030/diff/13015/12026#newcode233 chrome/browser/browser_browsertest.cc:233: EXPECT_FALSE(reinterpret_cast<JavaScriptAppModalDialog*>(alert)-> please use static_cast here. http://codereview.chromium.org/560030/diff/13015/12029 File chrome/browser/cookie_modal_dialog.h (right): ...
10 years, 10 months ago (2010-02-04 06:20:47 UTC) #7
darin (slow to review)
http://codereview.chromium.org/560030/diff/13015/12020 File chrome/browser/views/cookie_prompt_view.h (right): http://codereview.chromium.org/560030/diff/13015/12020#newcode33 chrome/browser/views/cookie_prompt_view.h:33: class CookiesPromptViewDelegate { ben tells me that interfaces like ...
10 years, 10 months ago (2010-02-04 07:35:15 UTC) #8
Ben Goodger (Google)
http://codereview.chromium.org/560030/diff/13015/12029 File chrome/browser/cookie_modal_dialog.h (right): http://codereview.chromium.org/560030/diff/13015/12029#newcode50 chrome/browser/cookie_modal_dialog.h:50: // Whether we're showing cookie UI as opposed to ...
10 years, 10 months ago (2010-02-04 07:45:53 UTC) #9
zel
http://codereview.chromium.org/560030/diff/13015/12026 File chrome/browser/browser_browsertest.cc (right): http://codereview.chromium.org/560030/diff/13015/12026#newcode233 chrome/browser/browser_browsertest.cc:233: EXPECT_FALSE(reinterpret_cast<JavaScriptAppModalDialog*>(alert)-> On 2010/02/04 06:20:47, darin wrote: > please use ...
10 years, 10 months ago (2010-02-04 21:57:26 UTC) #10
Ben Goodger (Google)
BTW from my perspective now this LGTM. Darin may have addtl comments.
10 years, 10 months ago (2010-02-05 21:17:53 UTC) #11
darin (slow to review)
> http://codereview.chromium.org/560030/diff/13015/12014#newcode251 > net/base/cookie_monster.h:251: ParsedCookie() {} > On 2010/02/04 06:20:47, darin wrote: > > is ...
10 years, 10 months ago (2010-02-05 21:20:49 UTC) #12
darin (slow to review)
10 years, 10 months ago (2010-02-05 21:39:57 UTC) #13
LGTM

Powered by Google App Engine
This is Rietveld 408576698