| 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_
|
|
|