enable_larger_than_screen_(false),
is_closed_(false),
has_dialog_attached_(false),
+ sheet_offset_(0.0),
aspect_ratio_(0.0),
inspectable_web_contents_(inspectable_web_contents),
weak_factory_(this) {
return NO;
}
-- (NSRect)window:(NSWindow *)window willPositionSheet:(NSWindow *)sheet usingRect:(NSRect)rect {
- NSView * view = window.contentView;
+- (NSRect)window:(NSWindow*)window
+ willPositionSheet:(NSWindow*)sheet usingRect:(NSRect)rect {
+ NSView* view = window.contentView;
rect.origin.y = view.frame.size.height - shell_->GetSheetOffset();
return rect;
}
-
@end
@interface AtomNSWindow : NSWindow {
std::map<uint64_t, net::CompletionCallback> callbacks_;
base::Lock lock_;
+
// Client id for devtools network emulation.
std::string client_id_;
before the app `ready`event on Linux, the message will be emitted to stderr,
and no GUI dialog will appear.
-
## Sheets
On Mac OS X, dialogs are presented as sheets attached to a window if you provide