[iOS] Change pipes to backticks in /ios/chrome/browser/ui/elements
Please review the CL to ensure that nothing is broken and the script
didn't miss some pipes.
This should allow us to have a better formatting in Xcode.
This CL was uploaded by git cl split.
R=marq@chromium.org
Bug: 1311955
Change-Id: I3949ab58e7a07cf0ca1f648ee44c9a431a4f227a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3732509
Auto-Submit: Gauthier Ambard <gambard@chromium.org>
Reviewed-by: Mark Cogan <marq@chromium.org>
Commit-Queue: Mark Cogan <marq@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1019054}
diff --git a/ios/chrome/browser/ui/elements/chrome_activity_overlay_view_controller.h b/ios/chrome/browser/ui/elements/chrome_activity_overlay_view_controller.h
index 9b2703f..8f95be9 100644
--- a/ios/chrome/browser/ui/elements/chrome_activity_overlay_view_controller.h
+++ b/ios/chrome/browser/ui/elements/chrome_activity_overlay_view_controller.h
@@ -8,7 +8,7 @@
#import <UIKit/UIKit.h>
// View controller that displays a UIActivityIndicatorView and informative
-// |messageText| over a translucent background.
+// `messageText` over a translucent background.
@interface ChromeActivityOverlayViewController : UIViewController
// Text that will be shown above the UIActivityIndicatorView.
diff --git a/ios/chrome/browser/ui/elements/extended_touch_target_button.mm b/ios/chrome/browser/ui/elements/extended_touch_target_button.mm
index de00fc07..c2f1898 100644
--- a/ios/chrome/browser/ui/elements/extended_touch_target_button.mm
+++ b/ios/chrome/browser/ui/elements/extended_touch_target_button.mm
@@ -19,8 +19,8 @@
}
- (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent*)event {
- // Point is in |bounds| coordinates, but |center| is in the |superview|
- // coordinates. Compute center in |bounds| coords.
+ // Point is in `bounds` coordinates, but `center` is in the `superview`
+ // coordinates. Compute center in `bounds` coords.
CGPoint center =
CGPointMake(CGRectGetMidX(self.bounds), CGRectGetMidY(self.bounds));
CGFloat distance = sqrt((center.x - point.x) * (center.x - point.x) +
diff --git a/ios/chrome/browser/ui/elements/home_waiting_view.h b/ios/chrome/browser/ui/elements/home_waiting_view.h
index e219ed2..df748aec 100644
--- a/ios/chrome/browser/ui/elements/home_waiting_view.h
+++ b/ios/chrome/browser/ui/elements/home_waiting_view.h
@@ -12,7 +12,7 @@
// Displays a waiting UI.
// It displays an activity indicator with an optional colored background.
// The activity indicator appears after a delay, starting from the moment
-// |startWaiting| is called.
+// `startWaiting` is called.
@interface HomeWaitingView : UIView
- (instancetype)initWithFrame:(CGRect)frame backgroundColor:(UIColor*)color;
@@ -23,7 +23,7 @@
- (void)startWaiting;
// Call this method when this view is removed from the visible view hierarchy.
-// |completion| will be called when this view is done animating out.
+// `completion` will be called when this view is done animating out.
- (void)stopWaitingWithCompletion:(ProceduralBlock)completion;
@end
diff --git a/ios/chrome/browser/ui/elements/instruction_view.h b/ios/chrome/browser/ui/elements/instruction_view.h
index 48e5502..4fe3ebe 100644
--- a/ios/chrome/browser/ui/elements/instruction_view.h
+++ b/ios/chrome/browser/ui/elements/instruction_view.h
@@ -16,11 +16,11 @@
// View containing an instruction list with their step number.
@interface InstructionView : UIView
-// Creates the numbered instructions view list with |instructionList| which
+// Creates the numbered instructions view list with `instructionList` which
// contains instructions strings. Strings can have bold part in it.
-// |instructionList| must have at least one step.
-// |style| should be one of InstructionViewStyle.
-// |icons| optional, should be supplied if an icon should be used instead of
+// `instructionList` must have at least one step.
+// `style` should be one of InstructionViewStyle.
+// `icons` optional, should be supplied if an icon should be used instead of
// step number. If provided, the number of icons should be the same as the
// number of steps in instructionList.
- (instancetype)initWithList:(NSArray<NSString*>*)instructionList
diff --git a/ios/chrome/browser/ui/elements/windowed_container_view.mm b/ios/chrome/browser/ui/elements/windowed_container_view.mm
index ca99335f..5fe440b 100644
--- a/ios/chrome/browser/ui/elements/windowed_container_view.mm
+++ b/ios/chrome/browser/ui/elements/windowed_container_view.mm
@@ -23,9 +23,9 @@
[super addSubview:view];
- // Don't let the hidden |view| take the first responder. Without the call to
+ // Don't let the hidden `view` take the first responder. Without the call to
// -resignFirstResponder below, the keyboard would still appear for the hidden
- // |view|'s focused element.
+ // `view`'s focused element.
[GetFirstResponderSubview(view) resignFirstResponder];
}