alloy: views: mac: Add three-finger-swipe navigation gesture support

This adds support for the three-finger-swipe navigation gesture with
Alloy/Views. The default implementation matches the Chrome runtime
and navigates the browser back/forward. We also add an Alloy/Views-
specific client callback in CefBrowserViewDelegate for optional
custom handling of the gesture event.
This commit is contained in:
Nik Pavlov
2023-05-26 09:05:33 +00:00
committed by Marshall Greenblatt
parent 8ff65ec09f
commit f3083218af
11 changed files with 145 additions and 8 deletions

View File

@@ -74,6 +74,7 @@ class CefBrowserViewImpl
// CefBrowserViewView::Delegate methods:
void OnBrowserViewAdded() override;
void OnBoundsChanged() override;
void OnGestureCommand(cef_gesture_command_t command) override;
// Return the WebView representation of this object.
views::WebView* web_view() const;