Add BrowserWindow.focusOnWebView and blurWebView.

This commit is contained in:
Cheng Zhao 2013-05-24 17:51:15 +08:00
parent f3a8a0741c
commit edf2e84895
7 changed files with 50 additions and 3 deletions

View file

@ -95,6 +95,8 @@ class NativeWindow : public content::WebContentsDelegate,
virtual bool IsClosed() const { return is_closed_; }
virtual void OpenDevTools();
virtual void CloseDevTools();
virtual void FocusOnWebView();
virtual void BlurWebView();
// The same with closing a tab in a real browser.
//
@ -120,6 +122,7 @@ class NativeWindow : public content::WebContentsDelegate,
}
void NotifyWindowClosed();
void NotifyWindowBlur();
// Implementations of content::WebContentsDelegate.
virtual void WebContentsCreated(content::WebContents* source_contents,