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

@ -75,8 +75,9 @@ void BrowserWindowStdWin::Show() {
REQUIRE_MAIN_THREAD();
HWND hwnd = GetWindowHandle();
if (hwnd && !::IsWindowVisible(hwnd))
if (hwnd && !::IsWindowVisible(hwnd)) {
ShowWindow(hwnd, SW_SHOW);
}
}
void BrowserWindowStdWin::Hide() {
@ -105,15 +106,17 @@ void BrowserWindowStdWin::SetBounds(int x, int y, size_t width, size_t height) {
void BrowserWindowStdWin::SetFocus(bool focus) {
REQUIRE_MAIN_THREAD();
if (browser_)
if (browser_) {
browser_->GetHost()->SetFocus(focus);
}
}
ClientWindowHandle BrowserWindowStdWin::GetWindowHandle() const {
REQUIRE_MAIN_THREAD();
if (browser_)
if (browser_) {
return browser_->GetHost()->GetWindowHandle();
}
return nullptr;
}