Update source files for bracket style

This commit is contained in:
Marshall Greenblatt
2023-01-02 17:59:03 -05:00
parent d84b07a5cb
commit 3af3eab3e4
366 changed files with 7275 additions and 3834 deletions

View File

@@ -35,15 +35,17 @@ void WindowTestRunnerMac::SetPos(CefRefPtr<CefBrowser> browser,
NSWindow* window = GetWindow(browser);
// Make sure the window isn't minimized or maximized.
if ([window isMiniaturized])
if ([window isMiniaturized]) {
[window deminiaturize:nil];
else if ([window isZoomed])
} else if ([window isZoomed]) {
[window performZoom:nil];
}
// Retrieve information for the display that contains the window.
NSScreen* screen = [window screen];
if (screen == nil)
if (screen == nil) {
screen = [NSScreen mainScreen];
}
NSRect frame = [screen frame];
NSRect visibleFrame = [screen visibleFrame];
@@ -82,10 +84,11 @@ void WindowTestRunnerMac::Restore(CefRefPtr<CefBrowser> browser) {
REQUIRE_MAIN_THREAD();
NSWindow* window = GetWindow(browser);
if ([window isMiniaturized])
if ([window isMiniaturized]) {
[window deminiaturize:nil];
else if ([window isZoomed])
} else if ([window isZoomed]) {
[window performZoom:nil];
}
}
} // namespace window_test