mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
alloy: Use Views context menus on Windows/Linux (fixes issue #3330)
This commit is contained in:
@@ -82,7 +82,8 @@ void CefBrowserPlatformDelegateBackground::SetFocus(bool setFocus) {
|
||||
}
|
||||
|
||||
gfx::Point CefBrowserPlatformDelegateBackground::GetScreenPoint(
|
||||
const gfx::Point& view_pt) const {
|
||||
const gfx::Point& view_pt,
|
||||
bool want_dip_coords) const {
|
||||
// Nothing to do here.
|
||||
return view_pt;
|
||||
}
|
||||
@@ -119,6 +120,7 @@ CefWindowHandle CefBrowserPlatformDelegateBackground::GetParentWindowHandle()
|
||||
}
|
||||
|
||||
gfx::Point CefBrowserPlatformDelegateBackground::GetParentScreenPoint(
|
||||
const gfx::Point& view) const {
|
||||
return GetScreenPoint(view);
|
||||
const gfx::Point& view,
|
||||
bool want_dip_coords) const {
|
||||
return GetScreenPoint(view, want_dip_coords);
|
||||
}
|
||||
|
@@ -34,7 +34,8 @@ class CefBrowserPlatformDelegateBackground
|
||||
int deltaY) override;
|
||||
void SendTouchEvent(const CefTouchEvent& event) override;
|
||||
void SetFocus(bool setFocus) override;
|
||||
gfx::Point GetScreenPoint(const gfx::Point& view) const override;
|
||||
gfx::Point GetScreenPoint(const gfx::Point& view,
|
||||
bool want_dip_coords) const override;
|
||||
void ViewText(const std::string& text) override;
|
||||
bool HandleKeyboardEvent(
|
||||
const content::NativeWebKeyboardEvent& event) override;
|
||||
@@ -46,7 +47,8 @@ class CefBrowserPlatformDelegateBackground
|
||||
|
||||
// CefBrowserPlatformDelegateNative::WindowlessHandler methods:
|
||||
CefWindowHandle GetParentWindowHandle() const override;
|
||||
gfx::Point GetParentScreenPoint(const gfx::Point& view) const override;
|
||||
gfx::Point GetParentScreenPoint(const gfx::Point& view,
|
||||
bool want_dip_coords) const override;
|
||||
|
||||
private:
|
||||
std::unique_ptr<CefBrowserPlatformDelegateNative> native_delegate_;
|
||||
|
Reference in New Issue
Block a user