Clean up DelegatedFrameHost's interface to its client
commit529de3d7572e558713a21e199de51e771ce2e8b3
authorccameron <ccameron@chromium.org>
Sat, 24 Jan 2015 19:43:50 +0000 (24 11:43 -0800)
committerCommit bot <commit-bot@chromium.org>
Sat, 24 Jan 2015 19:45:09 +0000 (24 19:45 +0000)
tree7ebba4e3fe0b08d4ca355a2476a76d19df952362
parent4a4858da86f02f4832296957e2196f1a91176cf2
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)

Review URL: https://codereview.chromium.org/864333004

Cr-Commit-Position: refs/heads/master@{#313028}
content/browser/compositor/delegated_frame_host.cc
content/browser/compositor/delegated_frame_host.h
content/browser/renderer_host/render_widget_host_view_android.cc
content/browser/renderer_host/render_widget_host_view_aura.cc
content/browser/renderer_host/render_widget_host_view_aura.h
content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
content/browser/renderer_host/render_widget_host_view_mac.h
content/browser/renderer_host/render_widget_host_view_mac.mm