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

Issue 864333004: Clean up DelegatedFrameHost's interface to its client (Closed)

Created:
5 years, 11 months ago by ccameron
Modified:
5 years, 11 months ago
Reviewers:
danakj
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_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@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clean up DelegatedFrameHost's interface to its client Rename client methods to start with the prefix DelegatedFrame, to indicate to which interface they belong (not doing this had resulted in each RWHV having IsHidden and IsVisible functions, which weren't opposites of each other). Do not access the RenderWidgetHostImpl directly in DelegatedFrameHost, but rather create client methods for all functions that will need to access it (and, for most of these methods, send the IPCs directly on the RWHI, rather than re-looking it up by its process and routing). Clean up the interfaces used for testing. BUG=(paying down technical debt) Committed: https://crrev.com/529de3d7572e558713a21e199de51e771ce2e8b3 Cr-Commit-Position: refs/heads/master@{#313028}

Patch Set 1 #

Patch Set 2 : Clean up #

Patch Set 3 : Rebase #

Patch Set 4 : Clean up tests more #

Patch Set 5 : Fix mac compile #

Total comments: 16

Patch Set 6 : Incorprate review feedback #

Total comments: 1

Patch Set 7 : Clean up format #

Patch Set 8 : Query layer #

Patch Set 9 : More debugging over trybots, shoot menow #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -171 lines) Patch
M content/browser/compositor/delegated_frame_host.h View 1 2 3 4 5 6 7 5 chunks +30 lines, -23 lines 0 comments Download
M content/browser/compositor/delegated_frame_host.cc View 1 2 3 4 5 6 7 23 chunks +46 lines, -74 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 2 chunks +4 lines, -9 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 4 5 6 7 3 chunks +21 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 7 8 2 chunks +45 lines, -18 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 2 3 4 5 6 7 1 chunk +17 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 6 7 6 chunks +44 lines, -25 lines 0 comments Download

Messages

Total messages: 21 (10 generated)
ccameron
There also appears to be consensus that Android to switch over to using DFH (barring ...
5 years, 11 months ago (2015-01-23 23:20:48 UTC) #2
danakj
https://codereview.chromium.org/864333004/diff/80001/content/browser/compositor/delegated_frame_host.cc File content/browser/compositor/delegated_frame_host.cc (right): https://codereview.chromium.org/864333004/diff/80001/content/browser/compositor/delegated_frame_host.cc#newcode105 content/browser/compositor/delegated_frame_host.cc:105: if (!resize_lock_) This can't return null if ShouldCreate returns ...
5 years, 11 months ago (2015-01-24 00:06:06 UTC) #3
ccameron
Thanks -- updated. https://codereview.chromium.org/864333004/diff/80001/content/browser/compositor/delegated_frame_host.cc File content/browser/compositor/delegated_frame_host.cc (right): https://codereview.chromium.org/864333004/diff/80001/content/browser/compositor/delegated_frame_host.cc#newcode105 content/browser/compositor/delegated_frame_host.cc:105: if (!resize_lock_) On 2015/01/24 00:06:06, danakj ...
5 years, 11 months ago (2015-01-24 01:27:21 UTC) #5
danakj
LGTM https://codereview.chromium.org/864333004/diff/120001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/864333004/diff/120001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode2597 content/browser/renderer_host/render_widget_host_view_aura.cc:2597: // On Windows and Linux, holding pointer moves ...
5 years, 11 months ago (2015-01-24 01:45:02 UTC) #6
ccameron
Thanks! Updated the #if order.
5 years, 11 months ago (2015-01-24 04:07:17 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/864333004/140001
5 years, 11 months ago (2015-01-24 04:07:58 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/17955)
5 years, 11 months ago (2015-01-24 05:10:35 UTC) #11
ccameron
It turns out it's not quite possible to make the ui::Layer be an immutable property ...
5 years, 11 months ago (2015-01-24 18:32:10 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/864333004/280001
5 years, 11 months ago (2015-01-24 18:34:10 UTC) #19
commit-bot: I haz the power
Committed patchset #9 (id:280001)
5 years, 11 months ago (2015-01-24 19:44:22 UTC) #20
commit-bot: I haz the power
5 years, 11 months ago (2015-01-24 19:45:42 UTC) #21
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/529de3d7572e558713a21e199de51e771ce2e8b3
Cr-Commit-Position: refs/heads/master@{#313028}

Powered by Google App Engine
This is Rietveld 408576698