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.
		
			
				
	
	
		
			36 lines
		
	
	
	
		
			1,023 B
			
		
	
	
	
		
			Objective-C
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
	
		
			1,023 B
			
		
	
	
	
		
			Objective-C
		
	
	
	
	
	
#import <AppKit/AppKit.h>
 | 
						|
 | 
						|
#include "browser/devtools_contents_resizing_strategy.h"
 | 
						|
 | 
						|
#include "base/mac/scoped_nsobject.h"
 | 
						|
#include "ui/base/cocoa/base_view.h"
 | 
						|
 | 
						|
namespace brightray {
 | 
						|
class InspectableWebContentsViewMac;
 | 
						|
}
 | 
						|
 | 
						|
using brightray::InspectableWebContentsViewMac;
 | 
						|
 | 
						|
@interface BRYInspectableWebContentsView : BaseView<NSWindowDelegate> {
 | 
						|
@private
 | 
						|
  brightray::InspectableWebContentsViewMac* inspectableWebContentsView_;
 | 
						|
 | 
						|
  base::scoped_nsobject<NSWindow> devtools_window_;
 | 
						|
  BOOL devtools_visible_;
 | 
						|
  BOOL devtools_docked_;
 | 
						|
  BOOL devtools_is_first_responder_;
 | 
						|
 | 
						|
  DevToolsContentsResizingStrategy strategy_;
 | 
						|
}
 | 
						|
 | 
						|
- (instancetype)initWithInspectableWebContentsViewMac:(InspectableWebContentsViewMac*)view;
 | 
						|
- (void)removeObservers;
 | 
						|
- (void)notifyDevToolsFocused;
 | 
						|
- (void)setDevToolsVisible:(BOOL)visible;
 | 
						|
- (BOOL)isDevToolsVisible;
 | 
						|
- (BOOL)isDevToolsFocused;
 | 
						|
- (void)setIsDocked:(BOOL)docked;
 | 
						|
- (void)setContentsResizingStrategy:(const DevToolsContentsResizingStrategy&)strategy;
 | 
						|
- (void)setTitle:(NSString*)title;
 | 
						|
 | 
						|
@end
 |