Index: ios/chrome/search_widget_extension/ui_util.h |
diff --git a/ios/chrome/search_widget_extension/ui_util.h b/ios/chrome/search_widget_extension/ui_util.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d5ccf4ec07a8fdfa1888578fba327d7eec6d47df |
--- /dev/null |
+++ b/ios/chrome/search_widget_extension/ui_util.h |
@@ -0,0 +1,17 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef IOS_CHROME_SEARCH_WIDGET_EXTENSION_UI_UTIL_H_ |
+#define IOS_CHROME_SEARCH_WIDGET_EXTENSION_UI_UTIL_H_ |
+ |
+namespace ui_util { |
+ |
+// Returns constraints to make two views' size and center equal by pinning |
+// leading, trailing, top and bottom anchors. |
+NSArray<NSLayoutConstraint*>* CreateSameConstraints(UIView* view1, |
+ UIView* view2); |
+ |
+} // namespace ui_util |
+ |
+#endif // IOS_CHROME_SEARCH_WIDGET_EXTENSION_UI_UTIL_H_ |