mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
views: Support specification of screen bounds for CefWindow creation (fixes issue #2980)
This commit is contained in:
@ -78,6 +78,17 @@ class CefWindowDelegate : public CefPanelDelegate {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
///
|
||||
// Return the initial bounds for |window| in screen coordinates. If this
|
||||
// method returns an empty CefRect then GetPreferredSize() will be called to
|
||||
// retrieve the size, and the window will be placed on the default screen with
|
||||
// origin (0,0).
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefRect GetInitialBounds(CefRefPtr<CefWindow> window) {
|
||||
return CefRect();
|
||||
}
|
||||
|
||||
///
|
||||
// Return true if |window| should be created without a frame or title bar. The
|
||||
// window will be resizable if CanResize() returns true. Use
|
||||
|
Reference in New Issue
Block a user