diff options
Diffstat (limited to 'chrome/browser/ui/cocoa/panels/panel_window_controller_cocoa.mm')
-rw-r--r-- | chrome/browser/ui/cocoa/panels/panel_window_controller_cocoa.mm | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/chrome/browser/ui/cocoa/panels/panel_window_controller_cocoa.mm b/chrome/browser/ui/cocoa/panels/panel_window_controller_cocoa.mm index 53cb9db..dc51ed7 100644 --- a/chrome/browser/ui/cocoa/panels/panel_window_controller_cocoa.mm +++ b/chrome/browser/ui/cocoa/panels/panel_window_controller_cocoa.mm @@ -569,14 +569,6 @@ const double kWidthOfMouseResizeArea = 15.0; // whether it's refactoring more things into BrowserWindowUtils or making a // common base controller for browser windows. - (void)windowDidBecomeKey:(NSNotification*)notification { - // We need to activate the controls (in the "WebView"). To do this, get the - // selected WebContents's RenderWidgetHostView and tell it to activate. - if (WebContents* contents = windowShim_->panel()->GetWebContents()) { - if (content::RenderWidgetHostView* rwhv = - contents->GetRenderWidgetHostView()) - rwhv->SetActive(true); - } - windowShim_->panel()->OnActiveStateChanged(true); // Make the window user-resizable when it gains the focus. @@ -730,14 +722,6 @@ const double kWidthOfMouseResizeArea = 15.0; } - (void)onWindowDidResignKey { - // We need to deactivate the controls (in the "WebView"). To do this, get the - // selected WebContents's RenderWidgetHostView and tell it to deactivate. - if (WebContents* contents = windowShim_->panel()->GetWebContents()) { - if (content::RenderWidgetHostView* rwhv = - contents->GetRenderWidgetHostView()) - rwhv->SetActive(false); - } - windowShim_->panel()->OnActiveStateChanged(false); // Make the window not user-resizable when it loses the focus. This is to |