mac: Revert to simplest undocked-only devtools.
This makes porting Chrome's devtools easier.
This commit is contained in:
parent
6c825042b5
commit
7d130c9697
5 changed files with 59 additions and 226 deletions
|
@ -1,14 +1,24 @@
|
|||
#import <AppKit/AppKit.h>
|
||||
|
||||
@class BRYInspectableWebContentsViewPrivate;
|
||||
#include <string>
|
||||
|
||||
@interface BRYInspectableWebContentsView
|
||||
: NSView<NSWindowDelegate, NSSplitViewDelegate> {
|
||||
@private
|
||||
BRYInspectableWebContentsViewPrivate *_private;
|
||||
#include "base/mac/scoped_nsobject.h"
|
||||
|
||||
namespace brightray {
|
||||
class InspectableWebContentsViewMac;
|
||||
}
|
||||
|
||||
- (void)removeFromNotificationCenter;
|
||||
@interface BRYInspectableWebContentsView : NSView<NSWindowDelegate> {
|
||||
@private
|
||||
brightray::InspectableWebContentsViewMac* inspectableWebContentsView_;
|
||||
base::scoped_nsobject<NSWindow> devtools_window_;
|
||||
BOOL devtools_visible_;
|
||||
}
|
||||
|
||||
- (instancetype)initWithInspectableWebContentsViewMac:(brightray::InspectableWebContentsViewMac*)inspectableWebContentsView;
|
||||
- (IBAction)showDevTools:(id)sender;
|
||||
- (void)setDevToolsVisible:(BOOL)visible;
|
||||
- (BOOL)isDevToolsVisible;
|
||||
- (BOOL)setDockSide:(const std::string&)side ;
|
||||
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue