Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Unified Diff: ios/chrome/search_widget_extension/ui_util.h

Issue 2858253002: Adding search widget UI and functionality. (Closed)
Patch Set: comment and naming Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « ios/chrome/search_widget_extension/search_widget_view_controller.mm ('k') | ios/chrome/search_widget_extension/ui_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698