OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_SHARE_EXTENSION_UI_UTIL_H_ |
| 6 #define IOS_CHROME_SHARE_EXTENSION_UI_UTIL_H_ |
| 7 |
| 8 namespace ui_util { |
| 9 |
| 10 // Returns the closest pixel-aligned value less than |value|, taking the scale |
| 11 // factor into account. At a scale of 1, equivalent to floor(). |
| 12 CGFloat AlignValueToPixel(CGFloat value); |
| 13 |
| 14 // Creates constraints so that |filler| fills entirely |container| and make them |
| 15 // active. |
| 16 void ConstrainAllSidesOfViewToView(UIView* container, UIView* filler); |
| 17 |
| 18 } // namespace ui_util |
| 19 |
| 20 #endif // IOS_CHROME_SHARE_EXTENSION_UI_UTIL_H_ |
OLD | NEW |