2013-03-14 13:03:50 +00:00
|
|
|
#import <AppKit/AppKit.h>
|
|
|
|
|
2014-07-02 08:21:47 +00:00
|
|
|
#include "browser/devtools_contents_resizing_strategy.h"
|
2013-03-14 13:03:50 +00:00
|
|
|
|
2014-07-01 12:57:49 +00:00
|
|
|
#include "base/mac/scoped_nsobject.h"
|
2014-07-02 08:21:47 +00:00
|
|
|
#include "ui/base/cocoa/base_view.h"
|
|
|
|
#include "ui/gfx/insets.h"
|
2014-07-01 12:57:49 +00:00
|
|
|
|
|
|
|
namespace brightray {
|
|
|
|
class InspectableWebContentsViewMac;
|
|
|
|
}
|
|
|
|
|
2014-07-02 08:54:04 +00:00
|
|
|
using brightray::InspectableWebContentsViewMac;
|
|
|
|
|
2014-07-02 08:21:47 +00:00
|
|
|
@interface BRYInspectableWebContentsView : BaseView<NSWindowDelegate> {
|
2013-03-14 13:03:50 +00:00
|
|
|
@private
|
2014-07-01 12:57:49 +00:00
|
|
|
brightray::InspectableWebContentsViewMac* inspectableWebContentsView_;
|
2014-07-02 08:21:47 +00:00
|
|
|
|
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_;
|
|
|
|
|
|
|
|
DevToolsContentsResizingStrategy strategy_;
|
2013-03-14 13:03:50 +00:00
|
|
|
}
|
|
|
|
|
2014-07-02 08:54:04 +00:00
|
|
|
- (instancetype)initWithInspectableWebContentsViewMac:(InspectableWebContentsViewMac*)view;
|
2014-07-01 12:57:49 +00:00
|
|
|
- (void)setDevToolsVisible:(BOOL)visible;
|
|
|
|
- (BOOL)isDevToolsVisible;
|
2014-07-02 08:21:47 +00:00
|
|
|
- (void)setIsDocked:(BOOL)docked;
|
|
|
|
- (void)setContentsResizingStrategy:(const DevToolsContentsResizingStrategy&)strategy;
|
|
|
|
|
|
|
|
// Adjust docked devtools to the contents resizing strategy.
|
|
|
|
- (void)update;
|
2013-03-14 13:03:50 +00:00
|
|
|
|
|
|
|
@end
|