Stop overriding methods from RenderWidget in RenderViewImpl

For each method that overrides RenderWidget, move it to the
RenderWidgetOwnerDelegate interface, and have RenderWidget invoke it
from there. If the override did not always call back to the
RenderWidget base class, have it return a bool (true = I handled it,
false = you handle it) so RenderWidget knows if it should exit or not.

If an override called up to the RenderWidget not at the start or end
but in the middle of its body, then it is split into multiple pieces
in the RenderWidgetOwnerDelegate interface so that RenderWidget can
call each piece to maintain the same code ordering.

OnMessageReceived still inherits from RenderWidget as it is meant to
implement IPC::Listener, however it is still tied up with RenderWidget
and handles some of the same messages.

There should be no behaviour change from this CL.

Bug: 419087
Change-Id: I0f401742dfb78f195f3d834e307794fe8daa890b
Commit-Queue: danakj <>
Reviewed-by: Albert J. Wong <>
Reviewed-by: Dmitry Gozman <>
Cr-Commit-Position: refs/heads/master@{#578027}
9 files changed