[Chromecast] Send Gestures through CastContentWindow
This unifies the gesture code paths across Aura and Android platforms.
Some code cleanup was also done to facilitate.
Bug: internal b/72436346
Bug: internal b/72436104
Test: CQ, test swipe gestures manually.
Change-Id: I113f0d0a04037cf23a9eaede10b48d85cda44605
Reviewed-on: https://chromium-review.googlesource.com/977421
Reviewed-by: Luke Halliwell <[email protected]>
Commit-Queue: Sean Topping <[email protected]>
Cr-Commit-Position: refs/heads/master@{#546317}
diff --git a/chromecast/browser/service/cast_service_simple.cc b/chromecast/browser/service/cast_service_simple.cc
index c8260c7..d1a7d8a 100644
--- a/chromecast/browser/service/cast_service_simple.cc
+++ b/chromecast/browser/service/cast_service_simple.cc
@@ -73,8 +73,8 @@
nullptr, /* extension */
GURL() /* initial_url */);
cast_web_view_->LoadUrl(startup_url_);
- cast_web_view_->CreateWindow(
- window_manager_, true /* is_visible */,
+ cast_web_view_->InitializeWindow(
+ window_manager_, true /* is_visible */, CastWindowManager::APP,
chromecast::shell::VisibilityPriority::STICKY_ACTIVITY);
}
@@ -102,9 +102,13 @@
return false;
}
+bool CastServiceSimple::CanHandleGesture(GestureType gesture_type) {
+ return false;
+}
+
bool CastServiceSimple::ConsumeGesture(GestureType gesture_type) {
return false;
-};
+}
void CastServiceSimple::OnVisibilityChange(VisibilityType visibility_type) {}