// Then show it.
bool show = true;
options.Get(switches::kShow, &show);
- if (show) {
+ if (show)
Show();
- } else {
- // When RenderView is created it sets to visible, this is to prevent
- // breaking the visibility API.
- web_contents()->WasHidden();
- }
}
void NativeWindow::SetSize(const gfx::Size& size) {
}
void NativeWindowMac::Show() {
- web_contents()->WasShown();
-
// This method is supposed to put focus on window, however if the app does not
// have focus then "makeKeyAndOrderFront" will only show the window.
[NSApp activateIgnoringOtherApps:YES];
}
void NativeWindowMac::ShowInactive() {
- web_contents()->WasShown();
[window_ orderFrontRegardless];
}
void NativeWindowMac::Hide() {
[window_ orderOut:nil];
- web_contents()->WasHidden();
}
bool NativeWindowMac::IsVisible() {
}
void NativeWindowViews::Show() {
- web_contents()->WasShown();
window_->native_widget_private()->ShowWithWindowState(GetRestoredState());
}
void NativeWindowViews::ShowInactive() {
- web_contents()->WasShown();
window_->ShowInactive();
}
void NativeWindowViews::Hide() {
- window_->Hide();
web_contents()->WasHidden();
}