void PlatformWebView::resizeTo(unsigned width, unsigned height) { WKRect frame = windowFrame(); frame.size.width = width; frame.size.height = height; setWindowFrame(frame); }
ExpanderApp::ExpanderApp() : BApplication("application/x-vnd.Haiku-Expander") { BPoint windowPosition = fSettings.Message().FindPoint("window_position"); BRect windowFrame(0, 0, 450, 120); windowFrame.OffsetBy(windowPosition); BMessage settings(fSettings.Message()); fWindow = new ExpanderWindow(windowFrame, NULL, &settings); }