}
- (void)windowDidBecomeMain:(NSNotification*)notification {
- shell_->NotifyWindowFocus();
-
content::WebContents* web_contents = shell_->GetWebContents();
if (!web_contents)
return;
content::RenderWidgetHostView* rwhv = web_contents->GetRenderWidgetHostView();
if (rwhv)
rwhv->SetActive(true);
+
+ shell_->NotifyWindowFocus();
}
- (void)windowDidResignMain:(NSNotification*)notification {
- shell_->NotifyWindowBlur();
-
content::WebContents* web_contents = shell_->GetWebContents();
if (!web_contents)
return;
content::RenderWidgetHostView* rwhv = web_contents->GetRenderWidgetHostView();
if (rwhv)
rwhv->SetActive(false);
+
+ shell_->NotifyWindowBlur();
}
- (void)windowDidResize:(NSNotification*)otification {