Fix some coding style issues
This commit is contained in:
parent
eb9e0e5534
commit
18f5fcde60
4 changed files with 5 additions and 4 deletions
|
@ -54,6 +54,7 @@ NativeWindow::NativeWindow(
|
||||||
enable_larger_than_screen_(false),
|
enable_larger_than_screen_(false),
|
||||||
is_closed_(false),
|
is_closed_(false),
|
||||||
has_dialog_attached_(false),
|
has_dialog_attached_(false),
|
||||||
|
sheet_offset_(0.0),
|
||||||
aspect_ratio_(0.0),
|
aspect_ratio_(0.0),
|
||||||
inspectable_web_contents_(inspectable_web_contents),
|
inspectable_web_contents_(inspectable_web_contents),
|
||||||
weak_factory_(this) {
|
weak_factory_(this) {
|
||||||
|
|
|
@ -243,13 +243,13 @@ bool ScopedDisableResize::disable_resize_ = false;
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSRect)window:(NSWindow *)window willPositionSheet:(NSWindow *)sheet usingRect:(NSRect)rect {
|
- (NSRect)window:(NSWindow*)window
|
||||||
NSView * view = window.contentView;
|
willPositionSheet:(NSWindow*)sheet usingRect:(NSRect)rect {
|
||||||
|
NSView* view = window.contentView;
|
||||||
rect.origin.y = view.frame.size.height - shell_->GetSheetOffset();
|
rect.origin.y = view.frame.size.height - shell_->GetSheetOffset();
|
||||||
return rect;
|
return rect;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface AtomNSWindow : NSWindow {
|
@interface AtomNSWindow : NSWindow {
|
||||||
|
|
|
@ -121,6 +121,7 @@ class AtomNetworkDelegate : public brightray::NetworkDelegate {
|
||||||
std::map<uint64_t, net::CompletionCallback> callbacks_;
|
std::map<uint64_t, net::CompletionCallback> callbacks_;
|
||||||
|
|
||||||
base::Lock lock_;
|
base::Lock lock_;
|
||||||
|
|
||||||
// Client id for devtools network emulation.
|
// Client id for devtools network emulation.
|
||||||
std::string client_id_;
|
std::string client_id_;
|
||||||
|
|
||||||
|
|
|
@ -122,7 +122,6 @@ it is usually used to report errors in early stage of startup. If called
|
||||||
before the app `ready`event on Linux, the message will be emitted to stderr,
|
before the app `ready`event on Linux, the message will be emitted to stderr,
|
||||||
and no GUI dialog will appear.
|
and no GUI dialog will appear.
|
||||||
|
|
||||||
|
|
||||||
## Sheets
|
## Sheets
|
||||||
|
|
||||||
On Mac OS X, dialogs are presented as sheets attached to a window if you provide
|
On Mac OS X, dialogs are presented as sheets attached to a window if you provide
|
||||||
|
|
Loading…
Reference in a new issue