2013-03-14 13:03:50 +00:00
|
|
|
#import <AppKit/AppKit.h>
|
|
|
|
|
2014-07-01 12:57:49 +00:00
|
|
|
#include "base/mac/scoped_nsobject.h"
|
2018-09-12 13:45:08 +00:00
|
|
|
#include "chrome/browser/devtools/devtools_contents_resizing_strategy.h"
|
2014-07-02 08:21:47 +00:00
|
|
|
#include "ui/base/cocoa/base_view.h"
|
2014-07-01 12:57:49 +00:00
|
|
|
|
|
|
|
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
|
2014-07-01 12:57:49 +00:00
|
|
|
brightray::InspectableWebContentsViewMac* inspectableWebContentsView_;
|
2014-07-02 08:21:47 +00:00
|
|
|
|
2018-08-16 22:57:40 +00:00
|
|
|
base::scoped_nsobject<NSView> fake_view_;
|
2014-07-01 12:57:49 +00:00
|
|
|
base::scoped_nsobject<NSWindow> devtools_window_;
|
|
|
|
BOOL devtools_visible_;
|
2014-07-02 08:21:47 +00:00
|
|
|
BOOL devtools_docked_;
|
2015-09-15 03:04:46 +00:00
|
|
|
BOOL devtools_is_first_responder_;
|
2014-07-02 08:21:47 +00:00
|
|
|
|
|
|
|
DevToolsContentsResizingStrategy strategy_;
|
2013-03-14 13:03:50 +00:00
|
|
|
}
|
|
|
|
|
2018-04-18 01:46:27 +00:00
|
|
|
- (instancetype)initWithInspectableWebContentsViewMac:
|
|
|
|
(InspectableWebContentsViewMac*)view;
|
2015-09-17 03:19:08 +00:00
|
|
|
- (void)removeObservers;
|
2015-09-15 03:24:35 +00:00
|
|
|
- (void)notifyDevToolsFocused;
|
2014-07-01 12:57:49 +00:00
|
|
|
- (void)setDevToolsVisible:(BOOL)visible;
|
|
|
|
- (BOOL)isDevToolsVisible;
|
2015-09-15 03:04:46 +00:00
|
|
|
- (BOOL)isDevToolsFocused;
|
2014-07-02 08:21:47 +00:00
|
|
|
- (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;
|
2014-07-02 08:21:47 +00:00
|
|
|
|
2013-03-14 13:03:50 +00:00
|
|
|
@end
|