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

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

Issue 2586713002: Upstream code and resources for Chrome on iOS extensions. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « ios/chrome/share_extension/share_view_controller.mm ('k') | ios/chrome/share_extension/ui_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/share_extension/ui_util.h
diff --git a/ios/chrome/share_extension/ui_util.h b/ios/chrome/share_extension/ui_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..864b776a0c3c9decdd7c270d0a63b0c64d45d243
--- /dev/null
+++ b/ios/chrome/share_extension/ui_util.h
@@ -0,0 +1,20 @@
+// Copyright 2016 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_SHARE_EXTENSION_UI_UTIL_H_
+#define IOS_CHROME_SHARE_EXTENSION_UI_UTIL_H_
+
+namespace ui_util {
+
+// Returns the closest pixel-aligned value less than |value|, taking the scale
+// factor into account. At a scale of 1, equivalent to floor().
+CGFloat AlignValueToPixel(CGFloat value);
+
+// Creates constraints so that |filler| fills entirely |container| and make them
+// active.
+void ConstrainAllSidesOfViewToView(UIView* container, UIView* filler);
+
+} // namespace ui_util
+
+#endif // IOS_CHROME_SHARE_EXTENSION_UI_UTIL_H_
« no previous file with comments | « ios/chrome/share_extension/share_view_controller.mm ('k') | ios/chrome/share_extension/ui_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698