Point (CefBrowser browser, Point viewPoint) { Point pt = viewPoint.getLocation(); Point loc = getLocation(); if (SystemInfoRt.isMac) { Rectangle rect = myScreenBoundsProvider.fun(myComponent); pt.setLocation(loc.x + pt.x, rect.height - loc.y - pt.y); } else { pt.translate(loc.x, loc.y); } return SystemInfoRt.isWindows ? toRealCoordinates(pt) : pt; }