Index: chrome/common/thumbnail_capturer.mojom |
diff --git a/chrome/common/thumbnail_capturer.mojom b/chrome/common/thumbnail_capturer.mojom |
index 71bf82c2777c403aa95c1ad8b3fed1626c8be20b..feaa366d04c0bcbe390c1e0e36f7af7b745a822c 100644 |
--- a/chrome/common/thumbnail_capturer.mojom |
+++ b/chrome/common/thumbnail_capturer.mojom |
@@ -7,12 +7,12 @@ module chrome.mojom; |
import "ui/gfx/geometry/mojo/geometry.mojom"; |
interface ThumbnailCapturer { |
- // Requests a JPEG encoded thumbnail of the image selected by the most |
- // recently opened context menu. If no image is selected or there's an error |
- // capturing a thumbnail, |thumbnail_data| will be empty. If the image area is |
- // larger than |thumbnail_min_area_pixels| it will be downscaled to fit within |
- // |thumbnail_max_size_pixels|. |
+ // Requests an encoded thumbnail of the image selected by the most recently opened context menu. |
Tom Sepez
2017/06/23 20:25:27
nit: 80 cols.
Daniel Park
2017/06/23 23:30:21
Done.
|
+ // The encoding format is specified as a parameter. If no image is selected or there's an error |
+ // capturing a thumbnail, |thumbnail_data| will be empty. If the image area is larger than |
+ // |thumbnail_min_area_pixels| it will be downscaled to fit within |thumbnail_max_size_pixels|. |
RequestThumbnailForContextNode(int32 thumbnail_min_area_pixels, |
- gfx.mojom.Size thumbnail_max_size_pixels) |
+ gfx.mojom.Size thumbnail_max_size_pixels, |
+ bool use_png_codec) |
=> (array<uint8> thumbnail_data, gfx.mojom.Size original_size); |
}; |