alloy: Use Views context menus on Windows/Linux (fixes issue #3330)

This commit is contained in:
Marshall Greenblatt
2022-05-13 14:38:41 +03:00
parent 2dcee2ccfc
commit 7a372a642b
41 changed files with 475 additions and 1418 deletions

View File

@@ -35,6 +35,9 @@ class CefBrowserPlatformDelegateNativeAura
int deltaX,
int deltaY) override;
void SendTouchEvent(const CefTouchEvent& event) override;
std::unique_ptr<CefMenuRunner> CreateMenuRunner() override;
gfx::Point GetScreenPoint(const gfx::Point& view,
bool want_dip_coords) const override;
// CefBrowserPlatformDelegateNative methods:
content::NativeWebKeyboardEvent TranslateWebKeyEvent(
@@ -72,6 +75,10 @@ class CefBrowserPlatformDelegateNativeAura
static int TranslateUiEventModifiers(uint32 cef_modifiers);
static int TranslateUiChangedButtonFlags(uint32 cef_modifiers);
// Widget hosting the web contents. It will be deleted automatically when the
// associated root window is destroyed.
views::Widget* window_widget_ = nullptr;
private:
content::RenderWidgetHostViewAura* GetHostView() const;
};