Improve documentation related to views screen coordinates (see issue #2980)

This commit is contained in:
Marshall Greenblatt
2020-09-25 14:31:14 -04:00
parent 4fbd247231
commit cae194f493
6 changed files with 98 additions and 77 deletions

View File

@@ -79,10 +79,12 @@ class CefWindowDelegate : public CefPanelDelegate {
}
///
// 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).
// Return the initial bounds for |window| in density independent pixel (DIP)
// 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 screen with origin (0,0). This method can be used in
// combination with CefView::GetBoundsInScreen() to restore the previous
// window bounds.
///
/*--cef()--*/
virtual CefRect GetInitialBounds(CefRefPtr<CefWindow> window) {