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

Issue 387353004: Create only a single LegacyRenderWidgetHostHWND per WebContentsViewAura. (Closed)

Created:
6 years, 5 months ago by dmazzoni
Modified:
6 years, 1 month ago
Reviewers:
ananta, sky
CC:
chromium-reviews, yusukes+watch_chromium.org, plundblad+watch_chromium.org, yukishiino+watch_chromium.org, aboxhall+watch_chromium.org, jam, penghuang+watch_chromium.org, yuzo+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@render_frame_ax_3
Project:
chromium
Visibility:
Public.

Description

Create only a single LegacyRenderWidgetHostHWND per WebContentsViewAura. BUG=393665 Committed: https://crrev.com/4f8a4bca1a98b8ce3ed61aca14b4e1edc7a361a8 Cr-Commit-Position: refs/heads/master@{#301810}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase #

Patch Set 3 : One more unneeded line #

Total comments: 2

Patch Set 4 : Rebase #

Patch Set 5 : Fix Win 8 #

Total comments: 10

Patch Set 6 : Address feedback #

Patch Set 7 : Check GetHost before calling GetAcceleratedWidget on it #

Patch Set 8 : Fix linux/aura compile and fix interactive_ui_test #

Patch Set 9 : Rebase #

Total comments: 2

Patch Set 10 : Don't parent to desktop window #

Total comments: 4

Patch Set 11 : Check legacy_hwnd_ before using #

Total comments: 11

Patch Set 12 : IsWindow checks #

Patch Set 13 : Rebase, put Create after destructor #

Patch Set 14 : Fix compile #

Patch Set 15 : Rebase #

Patch Set 16 : Oops, forgot to upload delegate in new file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -185 lines) Patch
M content/browser/accessibility/browser_accessibility_win_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/legacy_render_widget_host_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +16 lines, -25 lines 0 comments Download
M content/browser/renderer_host/legacy_render_widget_host_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +43 lines, -48 lines 0 comments Download
A content/browser/renderer_host/legacy_render_widget_host_win_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +26 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +1 line, -13 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 13 chunks +15 lines, -97 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +25 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +68 lines, -1 line 0 comments Download
M ui/views/controls/webview/webview_interactive_uitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (4 generated)
dmazzoni
6 years, 5 months ago (2014-07-14 18:31:40 UTC) #1
ananta
https://codereview.chromium.org/387353004/diff/1/content/browser/renderer_host/legacy_render_widget_host_win.cc File content/browser/renderer_host/legacy_render_widget_host_win.cc (right): https://codereview.chromium.org/387353004/diff/1/content/browser/renderer_host/legacy_render_widget_host_win.cc#newcode118 content/browser/renderer_host/legacy_render_widget_host_win.cc:118: delegate_->OnLegacyHwndDestroyed(this); Please validate whether all shutdown scenarios are addressed ...
6 years, 5 months ago (2014-07-14 18:51:08 UTC) #2
ananta
On 2014/07/14 18:51:08, ananta wrote: > https://codereview.chromium.org/387353004/diff/1/content/browser/renderer_host/legacy_render_widget_host_win.cc > File content/browser/renderer_host/legacy_render_widget_host_win.cc (right): > > https://codereview.chromium.org/387353004/diff/1/content/browser/renderer_host/legacy_render_widget_host_win.cc#newcode118 > ...
6 years, 5 months ago (2014-07-14 18:53:02 UTC) #3
dmazzoni
I haven't forgotten about this change. See this change first - https://codereview.chromium.org/415633002/ - it simplifies ...
6 years, 5 months ago (2014-07-23 15:39:42 UTC) #4
dmazzoni
Ready for another look. https://codereview.chromium.org/387353004/diff/1/content/browser/renderer_host/legacy_render_widget_host_win.cc File content/browser/renderer_host/legacy_render_widget_host_win.cc (right): https://codereview.chromium.org/387353004/diff/1/content/browser/renderer_host/legacy_render_widget_host_win.cc#newcode118 content/browser/renderer_host/legacy_render_widget_host_win.cc:118: delegate_->OnLegacyHwndDestroyed(this); On 2014/07/14 18:51:08, ananta ...
6 years, 4 months ago (2014-07-29 23:03:05 UTC) #5
ananta
Looks good. Please test this on Windows ASH as well. https://codereview.chromium.org/387353004/diff/40001/content/browser/web_contents/web_contents_view_aura.cc File content/browser/web_contents/web_contents_view_aura.cc (right): https://codereview.chromium.org/387353004/diff/40001/content/browser/web_contents/web_contents_view_aura.cc#newcode1121 ...
6 years, 4 months ago (2014-08-04 19:28:34 UTC) #6
dmazzoni
PTAL. I didn't have a chance to look at this for a while. I tested ...
6 years, 3 months ago (2014-09-10 23:01:31 UTC) #7
ananta
Please test windowless NPAPI flash to see if continues to work correctly with this change. ...
6 years, 3 months ago (2014-09-23 20:14:06 UTC) #8
dmazzoni
On 2014/09/23 20:14:06, ananta wrote: > Please test windowless NPAPI flash to see if continues ...
6 years, 3 months ago (2014-09-24 22:46:28 UTC) #9
dmazzoni
Let's land this and then ask QA to pay special attention to the types of ...
6 years, 3 months ago (2014-09-24 22:57:52 UTC) #10
dmazzoni
+sky for OWNERS review
6 years, 2 months ago (2014-10-08 06:18:14 UTC) #12
sky
Ananta knows this code and should review it. He still hasn't approved.
6 years, 2 months ago (2014-10-08 14:43:00 UTC) #13
ananta
https://codereview.chromium.org/387353004/diff/160001/content/browser/web_contents/web_contents_view_aura.cc File content/browser/web_contents/web_contents_view_aura.cc (right): https://codereview.chromium.org/387353004/diff/160001/content/browser/web_contents/web_contents_view_aura.cc#newcode1134 content/browser/web_contents/web_contents_view_aura.cc:1134: parent_hwnd = ::GetDesktopWindow(); I am still not convinced about ...
6 years, 2 months ago (2014-10-08 18:30:13 UTC) #14
dmazzoni
https://codereview.chromium.org/387353004/diff/160001/content/browser/web_contents/web_contents_view_aura.cc File content/browser/web_contents/web_contents_view_aura.cc (right): https://codereview.chromium.org/387353004/diff/160001/content/browser/web_contents/web_contents_view_aura.cc#newcode1134 content/browser/web_contents/web_contents_view_aura.cc:1134: parent_hwnd = ::GetDesktopWindow(); On 2014/10/08 18:30:13, ananta wrote: > ...
6 years, 2 months ago (2014-10-10 21:09:50 UTC) #15
ananta
Looking good. Only nits. https://codereview.chromium.org/387353004/diff/180001/content/browser/renderer_host/legacy_render_widget_host_win.h File content/browser/renderer_host/legacy_render_widget_host_win.h (right): https://codereview.chromium.org/387353004/diff/180001/content/browser/renderer_host/legacy_render_widget_host_win.h#newcode52 content/browser/renderer_host/legacy_render_widget_host_win.h:52: // that delegates its accessibility ...
6 years, 2 months ago (2014-10-17 23:58:00 UTC) #16
dmazzoni
https://codereview.chromium.org/387353004/diff/180001/content/browser/renderer_host/legacy_render_widget_host_win.h File content/browser/renderer_host/legacy_render_widget_host_win.h (right): https://codereview.chromium.org/387353004/diff/180001/content/browser/renderer_host/legacy_render_widget_host_win.h#newcode52 content/browser/renderer_host/legacy_render_widget_host_win.h:52: // that delegates its accessibility implementation to the On ...
6 years, 2 months ago (2014-10-21 20:42:00 UTC) #17
dmazzoni
Ping?
6 years, 2 months ago (2014-10-24 23:08:52 UTC) #18
ananta
lgtm
6 years, 2 months ago (2014-10-24 23:12:59 UTC) #19
sky
https://codereview.chromium.org/387353004/diff/320001/content/browser/renderer_host/legacy_render_widget_host_win.cc File content/browser/renderer_host/legacy_render_widget_host_win.cc (left): https://codereview.chromium.org/387353004/diff/320001/content/browser/renderer_host/legacy_render_widget_host_win.cc#oldcode89 content/browser/renderer_host/legacy_render_widget_host_win.cc:89: void LegacyRenderWidgetHostHWND::OnFinalMessage(HWND hwnd) { If you're going to allow ...
6 years, 1 month ago (2014-10-27 15:21:33 UTC) #20
dmazzoni
https://codereview.chromium.org/387353004/diff/320001/content/browser/renderer_host/legacy_render_widget_host_win.cc File content/browser/renderer_host/legacy_render_widget_host_win.cc (left): https://codereview.chromium.org/387353004/diff/320001/content/browser/renderer_host/legacy_render_widget_host_win.cc#oldcode89 content/browser/renderer_host/legacy_render_widget_host_win.cc:89: void LegacyRenderWidgetHostHWND::OnFinalMessage(HWND hwnd) { On 2014/10/27 15:21:33, sky wrote: ...
6 years, 1 month ago (2014-10-27 20:32:32 UTC) #21
sky
https://codereview.chromium.org/387353004/diff/320001/content/browser/renderer_host/legacy_render_widget_host_win.h File content/browser/renderer_host/legacy_render_widget_host_win.h (right): https://codereview.chromium.org/387353004/diff/320001/content/browser/renderer_host/legacy_render_widget_host_win.h#newcode59 content/browser/renderer_host/legacy_render_widget_host_win.h:59: virtual ~LegacyRenderWidgetHostHWND(); On 2014/10/27 20:32:32, dmazzoni wrote: > On ...
6 years, 1 month ago (2014-10-27 22:04:54 UTC) #22
dmazzoni
On 2014/10/27 22:04:54, sky wrote: > That's not entirely true. From the style guide for ...
6 years, 1 month ago (2014-10-27 22:29:54 UTC) #23
sky
LGTM
6 years, 1 month ago (2014-10-27 23:02:07 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/387353004/400001
6 years, 1 month ago (2014-10-29 08:07:18 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/80107)
6 years, 1 month ago (2014-10-29 08:45:10 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/387353004/420001
6 years, 1 month ago (2014-10-29 09:00:47 UTC) #30
commit-bot: I haz the power
Committed patchset #16 (id:420001)
6 years, 1 month ago (2014-10-29 09:57:17 UTC) #31
commit-bot: I haz the power
6 years, 1 month ago (2014-10-29 09:58:05 UTC) #32
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/4f8a4bca1a98b8ce3ed61aca14b4e1edc7a361a8
Cr-Commit-Position: refs/heads/master@{#301810}

Powered by Google App Engine
This is Rietveld 408576698