Move EventListenerProperties getter/setter to WebWidgetClient (12/n)

We are removing the WebLayerTreeView interface as it is redundant with
WebWidgetClient now that we always composite web contents.

More importantly this helps us Close/Restart the WebWidget parts of
WebViewImpl by not requiring plumbing 2 pointers with slightly different
lifetimes (WebLayerTreeView is created inside the Init of the
WebWidgetClient). This will help avoid a bunch of complexity in
creating WebFrameWidgets and other WebWidgets.

[email protected]

Bug: 912193
Change-Id: I1d65fa08358615f66e20b191ad7feeb239e8ef14
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1685836
Reviewed-by: Jeremy Roman <[email protected]>
Reviewed-by: Kentaro Hara <[email protected]>
Reviewed-by: David Bokan <[email protected]>
Auto-Submit: danakj <[email protected]>
Commit-Queue: danakj <[email protected]>
Cr-Commit-Position: refs/heads/master@{#675058}
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index 70a3e14..5af0983 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -3271,12 +3271,12 @@
   return actual;
 }
 
-void RenderWidget::HasPointerRawUpdateEventHandlers(bool has_handlers) {
+void RenderWidget::SetHasPointerRawUpdateEventHandlers(bool has_handlers) {
   if (input_event_queue_)
     input_event_queue_->HasPointerRawUpdateEventHandlers(has_handlers);
 }
 
-void RenderWidget::HasTouchEventHandlers(bool has_handlers) {
+void RenderWidget::SetHasTouchEventHandlers(bool has_handlers) {
   if (has_touch_handlers_ && *has_touch_handlers_ == has_handlers)
     return;
 
@@ -3515,6 +3515,19 @@
   NotifySwapAndPresentationTime(base::NullCallback(), std::move(callback));
 }
 
+void RenderWidget::SetEventListenerProperties(
+    cc::EventListenerClass event_class,
+    cc::EventListenerProperties properties) {
+  layer_tree_view_->layer_tree_host()->SetEventListenerProperties(event_class,
+                                                                  properties);
+}
+
+cc::EventListenerProperties RenderWidget::EventListenerProperties(
+    cc::EventListenerClass event_class) const {
+  return layer_tree_view_->layer_tree_host()->event_listener_properties(
+      event_class);
+}
+
 void RenderWidget::NotifySwapAndPresentationTime(
     ReportTimeCallback swap_time_callback,
     ReportTimeCallback presentation_time_callback) {