Unsubscribe from NSNotificationCenter when WebContents is destroyed

Due to ref-counted references the NSView is not destroyed immediately
when WebContents is destroyed, so it is not reliable to do this in
the destructor.
This commit is contained in:
Cheng Zhao 2015-09-17 11:19:08 +08:00
parent fa588f104c
commit fc33eb99f7
3 changed files with 3 additions and 2 deletions

View file

@ -24,6 +24,7 @@ using brightray::InspectableWebContentsViewMac;
}
- (instancetype)initWithInspectableWebContentsViewMac:(InspectableWebContentsViewMac*)view;
- (void)removeObservers;
- (void)notifyDevToolsFocused;
- (void)setDevToolsVisible:(BOOL)visible;
- (BOOL)isDevToolsVisible;