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

Unified Diff: ios/chrome/browser/ui/ui_util.h

Issue 2645653003: Expose thumbnails of pages to iOS share extensions. (Closed)
Patch Set: Addressed comments. Created 3 years, 10 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/browser/ui/browser_view_controller_unittest.mm ('k') | ios/chrome/browser/ui/ui_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/ui_util.h
diff --git a/ios/chrome/browser/ui/ui_util.h b/ios/chrome/browser/ui/ui_util.h
index 1bef1f04e1b41d1bf6a5af1f91642d6d3624b556..9518febb02a6dfd161d5b4722c6f55791b6c9f28 100644
--- a/ios/chrome/browser/ui/ui_util.h
+++ b/ios/chrome/browser/ui/ui_util.h
@@ -74,13 +74,18 @@ enum class ProjectionMode {
// |projectTo| and |revisedTargetSize| will be set to |targetSize|
kFill,
- // Scale to the target, maintaining aspect ratio, clipping the excess. Large
- // original sizes are shrunk until they fit on one side, small original sizes
- // are expanded.
+ // Scale to the target, maintaining aspect ratio, clipping the excess, while
+ // keeping the image centered.
+ // Large original sizes are shrunk until they fit on one side, small original
+ // sizes are expanded.
// |projectTo| will be a subset of |originalSize|
// |revisedTargetSize| will be set to |targetSize|
kAspectFill,
+ // Same as kAspectFill, except that the bottom part of the image will be
+ // clipped. The image will still be horizontally centered.
+ kAspectFillAlignTop,
+
// Fit the image in the target so it fits completely inside, preserving aspect
// ratio. This will leave bands with with no data in the target.
// |projectTo| will be set to |originalSize|
« no previous file with comments | « ios/chrome/browser/ui/browser_view_controller_unittest.mm ('k') | ios/chrome/browser/ui/ui_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698