Fix some coding style issues
authorCheng Zhao <zcbenz@gmail.com>
Wed, 20 Apr 2016 00:18:50 +0000 (09:18 +0900)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 20 Apr 2016 00:18:50 +0000 (09:18 +0900)
atom/browser/native_window.cc
atom/browser/native_window_mac.mm
atom/browser/net/atom_network_delegate.h
docs/api/dialog.md

index 091a7b8a3fb1ebb948f7b60f51c8542b022b3d97..2379bdd053c5e3acd2f59fc2d74a9f5e099b9458 100644 (file)
@@ -54,6 +54,7 @@ NativeWindow::NativeWindow(
       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) {
index c35c177ac298be2ef9f83065a57d1410e7b12702..5f980fed62cffe0078e4e6b22655bbf7c3098861 100644 (file)
@@ -243,13 +243,13 @@ bool ScopedDisableResize::disable_resize_ = false;
   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 {
index 92ea6415e69ecff9868489a3db6eb4bdc8111fc5..701a953c265e502a7f4790c0f722c2cb2ee85373 100644 (file)
@@ -121,6 +121,7 @@ class AtomNetworkDelegate : public brightray::NetworkDelegate {
   std::map<uint64_t, net::CompletionCallback> callbacks_;
 
   base::Lock lock_;
+
   // Client id for devtools network emulation.
   std::string client_id_;
 
index 32b8628567af66234e71d6885bb3c98f47c7888c..1cea9da119ad9b5c219a88f0ea10ddebc9b9e5f1 100644 (file)
@@ -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,
 and no GUI dialog will appear.
 
-
 ## Sheets
 
 On Mac OS X, dialogs are presented as sheets attached to a window if you provide