electron/brightray/browser/mac/bry_inspectable_web_contents_view.h

38 lines
1 KiB
C
Raw Normal View History

#import <AppKit/AppKit.h>
#include "base/mac/scoped_nsobject.h"
#include "brightray/browser/devtools_contents_resizing_strategy.h"
#include "ui/base/cocoa/base_view.h"
namespace brightray {
class InspectableWebContentsViewMac;
}
2014-07-02 08:54:04 +00:00
using brightray::InspectableWebContentsViewMac;
2018-04-18 01:46:27 +00:00
@interface BRYInspectableWebContentsView : BaseView <NSWindowDelegate> {
@private
brightray::InspectableWebContentsViewMac* inspectableWebContentsView_;
base::scoped_nsobject<NSWindow> devtools_window_;
BOOL devtools_visible_;
BOOL devtools_docked_;
2015-09-15 03:04:46 +00:00
BOOL devtools_is_first_responder_;
DevToolsContentsResizingStrategy strategy_;
}
2018-04-18 01:46:27 +00:00
- (instancetype)initWithInspectableWebContentsViewMac:
(InspectableWebContentsViewMac*)view;
- (void)removeObservers;
2015-09-15 03:24:35 +00:00
- (void)notifyDevToolsFocused;
- (void)setDevToolsVisible:(BOOL)visible;
- (BOOL)isDevToolsVisible;
2015-09-15 03:04:46 +00:00
- (BOOL)isDevToolsFocused;
- (void)setIsDocked:(BOOL)docked;
2018-04-18 01:46:27 +00:00
- (void)setContentsResizingStrategy:
(const DevToolsContentsResizingStrategy&)strategy;
2015-08-25 12:55:07 +00:00
- (void)setTitle:(NSString*)title;
@end