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

Issue 226503002: Move modal dialogs from WebViewClient to WebFrameClient, part 1/3. (Closed)

Created:
6 years, 8 months ago by Avi (use Gerrit)
Modified:
6 years, 7 months ago
Reviewers:
jam, nasko
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, miu+watch_chromium.org, site-isolation-reviews_chromium.org
Visibility:
Public.

Description

Move modal dialogs from WebViewClient to WebFrameClient, part 1/3. BUG=304341 TEST=modal dialogs still work Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262520

Patch Set 1 #

Patch Set 2 : clean #

Total comments: 13

Patch Set 3 : bettar #

Patch Set 4 : suppression #

Patch Set 5 : works #

Total comments: 4

Patch Set 6 : last nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+362 lines, -321 lines) Patch
M content/browser/frame_host/render_frame_host_delegate.h View 1 2 3 2 chunks +14 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 3 chunks +17 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 3 chunks +66 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager_unittest.cc View 2 chunks +8 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 2 2 chunks +0 lines, -15 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 2 4 chunks +0 lines, -18 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 4 chunks +0 lines, -62 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 chunks +16 lines, -13 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 chunks +86 lines, -80 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 1 2 3 1 chunk +3 lines, -5 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 3 chunks +23 lines, -1 line 0 comments Download
M content/common/view_messages.h View 1 2 4 chunks +0 lines, -20 lines 0 comments Download
M content/public/renderer/render_view.h View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M content/public/test/mock_render_thread.h View 1 1 chunk +0 lines, -5 lines 0 comments Download
M content/public/test/mock_render_thread.cc View 1 1 chunk +0 lines, -11 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 3 chunks +14 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 2 chunks +78 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 5 chunks +9 lines, -14 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 4 chunks +28 lines, -65 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Avi (use Gerrit)
John, all but the IPC, Nasko, the IPC. The only interesting part is AreJavaScriptMessagesSuppressed(), which ...
6 years, 8 months ago (2014-04-04 22:50:18 UTC) #1
jam
if you avoid the duplication in the renderer side now, you can also remove the ...
6 years, 8 months ago (2014-04-05 00:21:37 UTC) #2
nasko
My general concern is that we duplicate the code path from RenderView into RenderFrame and ...
6 years, 8 months ago (2014-04-07 15:45:50 UTC) #3
Avi (use Gerrit)
On 2014/04/07 15:45:50, nasko wrote: > My general concern is that we duplicate the code ...
6 years, 8 months ago (2014-04-07 15:49:53 UTC) #4
Avi (use Gerrit)
https://codereview.chromium.org/226503002/diff/20001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/226503002/diff/20001/content/renderer/render_frame_impl.cc#newcode2086 content/renderer/render_frame_impl.cc:2086: if (is_swapped_out_) On 2014/04/07 15:45:51, nasko wrote: > This ...
6 years, 8 months ago (2014-04-07 15:51:53 UTC) #5
nasko
On 2014/04/07 15:49:53, Avi wrote: > On 2014/04/07 15:45:50, nasko wrote: > > My general ...
6 years, 8 months ago (2014-04-07 15:53:12 UTC) #6
nasko
On 2014/04/07 15:51:53, Avi wrote: > https://codereview.chromium.org/226503002/diff/20001/content/renderer/render_frame_impl.cc > File content/renderer/render_frame_impl.cc (right): > > https://codereview.chromium.org/226503002/diff/20001/content/renderer/render_frame_impl.cc#newcode2086 > ...
6 years, 8 months ago (2014-04-07 15:55:15 UTC) #7
Avi (use Gerrit)
On 2014/04/07 15:53:12, nasko wrote: > On 2014/04/07 15:49:53, Avi wrote: > > On 2014/04/07 ...
6 years, 8 months ago (2014-04-07 16:01:37 UTC) #8
Avi (use Gerrit)
https://codereview.chromium.org/226503002/diff/20001/content/renderer/render_frame_impl.h File content/renderer/render_frame_impl.h (right): https://codereview.chromium.org/226503002/diff/20001/content/renderer/render_frame_impl.h#newcode286 content/renderer/render_frame_impl.h:286: virtual void runModalAlertDialog(blink::WebFrame* frame, On 2014/04/05 00:21:38, jam wrote: ...
6 years, 8 months ago (2014-04-07 16:12:05 UTC) #9
Avi (use Gerrit)
BTW, WRT calling through... OOoooooooooooh. I get now the easy fix. :\ My brain. It ...
6 years, 8 months ago (2014-04-07 16:19:49 UTC) #10
Avi (use Gerrit)
John, Nasko, ptal. https://codereview.chromium.org/226503002/diff/20001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/226503002/diff/20001/content/browser/frame_host/render_frame_host_impl.cc#newcode697 content/browser/frame_host/render_frame_host_impl.cc:697: return &main_frame->are_javascript_messages_suppressed_; On 2014/04/05 00:21:38, jam ...
6 years, 8 months ago (2014-04-07 18:03:46 UTC) #11
jam
https://codereview.chromium.org/226503002/diff/20001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/226503002/diff/20001/content/browser/frame_host/render_frame_host_impl.cc#newcode697 content/browser/frame_host/render_frame_host_impl.cc:697: return &main_frame->are_javascript_messages_suppressed_; On 2014/04/07 18:03:46, Avi wrote: > On ...
6 years, 8 months ago (2014-04-07 18:11:35 UTC) #12
Avi (use Gerrit)
So I plumbed through "the dialog was suppressed" in the reply, so it's available where ...
6 years, 8 months ago (2014-04-07 19:53:54 UTC) #13
jam
lgtm
6 years, 8 months ago (2014-04-07 20:50:20 UTC) #14
Avi (use Gerrit)
Please take a look at the latest patch, patch 5. Because of the inheritance fun ...
6 years, 8 months ago (2014-04-07 23:31:10 UTC) #15
nasko
LGTM with a couple of nits. https://codereview.chromium.org/226503002/diff/80001/content/common/frame_messages.h File content/common/frame_messages.h (right): https://codereview.chromium.org/226503002/diff/80001/content/common/frame_messages.h#newcode29 content/common/frame_messages.h:29: nit: no empty ...
6 years, 8 months ago (2014-04-08 14:05:03 UTC) #16
Avi (use Gerrit)
Done https://codereview.chromium.org/226503002/diff/80001/content/common/frame_messages.h File content/common/frame_messages.h (right): https://codereview.chromium.org/226503002/diff/80001/content/common/frame_messages.h#newcode29 content/common/frame_messages.h:29: On 2014/04/08 14:05:04, nasko wrote: > nit: no ...
6 years, 8 months ago (2014-04-08 15:09:22 UTC) #17
Avi (use Gerrit)
The CQ bit was checked by avi@chromium.org
6 years, 8 months ago (2014-04-08 15:34:42 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/avi@chromium.org/226503002/100001
6 years, 8 months ago (2014-04-08 15:34:45 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-08 16:04:43 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 8 months ago (2014-04-08 16:04:44 UTC) #21
Avi (use Gerrit)
The CQ bit was checked by avi@chromium.org
6 years, 8 months ago (2014-04-08 19:30:34 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/avi@chromium.org/226503002/100001
6 years, 8 months ago (2014-04-08 19:32:06 UTC) #23
commit-bot: I haz the power
6 years, 8 months ago (2014-04-08 22:14:51 UTC) #24
Message was sent while issue was closed.
Change committed as 262520

Powered by Google App Engine
This is Rietveld 408576698