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

Side by Side 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW
« 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