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

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

Issue 2617993002: Animate IOS Share extension button. (Closed)
Patch Set: feedback Created 3 years, 11 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
« no previous file with comments | « ios/chrome/share_extension/ui_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/share_extension/ui_util.mm
diff --git a/ios/chrome/share_extension/ui_util.mm b/ios/chrome/share_extension/ui_util.mm
index c898d5141add272a634caeb39ba102284ebfd834..d4af8acf81695197834c54a0ff02f5778841a255 100644
--- a/ios/chrome/share_extension/ui_util.mm
+++ b/ios/chrome/share_extension/ui_util.mm
@@ -12,6 +12,8 @@
namespace ui_util {
+const CGFloat kAnimationDuration = 0.3;
+
CGFloat AlignValueToPixel(CGFloat value) {
CGFloat scale = [[UIScreen mainScreen] scale];
return floor(value * scale) / scale;
« no previous file with comments | « ios/chrome/share_extension/ui_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698