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

@ -20,6 +20,7 @@
#include "content/public/browser/native_web_keyboard_event.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_view.h"
#include "content/public/browser/render_view_host.h"
@interface AtomNSWindowDelegate : NSObject<NSWindowDelegate> {
@private
@ -36,7 +37,11 @@
return self;
}
- (void)windowWillClose:(NSNotification *)notification {
- (void)windowDidResignKey:(NSNotification*)notification {
shell_->NotifyWindowBlur();
}
- (void)windowWillClose:(NSNotification*)notification {
shell_->window() = nil;
[self autorelease];
}