]> khamidou — GitHub mirrors - electron.git/commitdiff
Correct code style.
authorHaojian Wu <hokein.wu@gmail.com>
Thu, 18 Sep 2014 08:17:49 +0000 (16:17 +0800)
committerHaojian Wu <hokein.wu@gmail.com>
Thu, 18 Sep 2014 08:48:00 +0000 (16:48 +0800)
atom/browser/native_window_mac.mm
atom/browser/native_window_views.cc

index e9881eb03a0513c4023d10d4ce3ac22fe8c84c28..c5fd5522d6d2ef59141ac9c299bd0d2f14352d64 100644 (file)
@@ -203,21 +203,21 @@ static const CGFloat kAtomWindowCornerRadius = 4.0;
     return;
   // Draw edges of rounded rect.
   NSRect rect = NSInsetRect([self bounds], 1.0, 1.0);
-       CGFloat radius = rect.size.height / 2;
-       NSBezierPath* bezier_path = [NSBezierPath bezierPathWithRoundedRect:rect xRadius:radius yRadius:radius];
-       [bezier_path setLineWidth:2.0];
-       [[NSColor grayColor] set];
-       [bezier_path stroke];
+  CGFloat radius = rect.size.height / 2;
+  NSBezierPath* bezier_path = [NSBezierPath bezierPathWithRoundedRect:rect xRadius:radius yRadius:radius];
+  [bezier_path setLineWidth:2.0];
+  [[NSColor grayColor] set];
+  [bezier_path stroke];
 
   // Fill the rounded rect.
-       rect = NSInsetRect(rect, 2.0, 2.0);
-       radius = rect.size.height / 2;
-       bezier_path = [NSBezierPath bezierPathWithRoundedRect:rect xRadius:radius yRadius:radius];
-       [bezier_path setLineWidth:1.0];
-       [bezier_path addClip];
+  rect = NSInsetRect(rect, 2.0, 2.0);
+  radius = rect.size.height / 2;
+  bezier_path = [NSBezierPath bezierPathWithRoundedRect:rect xRadius:radius yRadius:radius];
+  [bezier_path setLineWidth:1.0];
+  [bezier_path addClip];
 
   // Calculate the progress width.
-       rect.size.width = floor(rect.size.width * ([self doubleValue] / [self maxValue]));
+  rect.size.width = floor(rect.size.width * ([self doubleValue] / [self maxValue]));
 
   // Fill the progress bar with color blue.
   [[NSColor colorWithSRGBRed:0.2 green:0.6 blue:1 alpha:1] set];
index d3eec5c1c57fda00e67117a0d888daced460d507..0bc77b35b1e87a9fa50ba843d3811f67d34f069c 100644 (file)
@@ -497,7 +497,9 @@ void NativeWindowViews::SetProgressBar(double progress) {
   } else if (progress < 0) {
     taskbar->SetProgressState(frame, TBPF_NOPROGRESS);
   } else if (progress >= 0) {
-    taskbar->SetProgressValue(frame, static_cast<int>(progress*100), progress);
+    taskbar->SetProgressValue(frame,
+                              static_cast<int>(progress * 100),
+                              progress);
   }
 #endif
 }