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

@@ -68,8 +68,8 @@ class CefRenderHandler : public virtual CefBaseRefCounted {
}
///
// Called to retrieve the root window rectangle in screen coordinates. Return
// true if the rectangle was provided. If this method returns false the
// Called to retrieve the root window rectangle in screen DIP coordinates.
// Return true if the rectangle was provided. If this method returns false the
// rectangle from GetViewRect will be used.
///
/*--cef()--*/
@@ -78,15 +78,17 @@ class CefRenderHandler : public virtual CefBaseRefCounted {
}
///
// Called to retrieve the view rectangle which is relative to screen
// coordinates. This method must always provide a non-empty rectangle.
// Called to retrieve the view rectangle in screen DIP coordinates. This
// method must always provide a non-empty rectangle.
///
/*--cef()--*/
virtual void GetViewRect(CefRefPtr<CefBrowser> browser, CefRect& rect) = 0;
///
// Called to retrieve the translation from view coordinates to actual screen
// coordinates. Return true if the screen coordinates were provided.
// Called to retrieve the translation from view DIP coordinates to screen
// coordinates. Windows/Linux should provide screen device (pixel) coordinates
// and MacOS should provide screen DIP coordinates. Return true if the
// requested coordinates were provided.
///
/*--cef()--*/
virtual bool GetScreenPoint(CefRefPtr<CefBrowser> browser,