Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 module chrome.mojom; | 5 module chrome.mojom; |
| 6 | 6 |
| 7 import "ui/gfx/geometry/mojo/geometry.mojom"; | 7 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 8 | 8 |
| 9 interface ThumbnailCapturer { | 9 interface ThumbnailCapturer { |
| 10 // Requests a JPEG encoded thumbnail of the image selected by the most | 10 // Requests an encoded thumbnail of the image selected by the most recently op ened context menu. |
|
Tom Sepez
2017/06/23 20:25:27
nit: 80 cols.
Daniel Park
2017/06/23 23:30:21
Done.
| |
| 11 // recently opened context menu. If no image is selected or there's an error | 11 // The encoding format is specified as a parameter. If no image is selected or there's an error |
| 12 // capturing a thumbnail, |thumbnail_data| will be empty. If the image area is | 12 // capturing a thumbnail, |thumbnail_data| will be empty. If the image area is larger than |
| 13 // larger than |thumbnail_min_area_pixels| it will be downscaled to fit within | 13 // |thumbnail_min_area_pixels| it will be downscaled to fit within |thumbnail_ max_size_pixels|. |
| 14 // |thumbnail_max_size_pixels|. | |
| 15 RequestThumbnailForContextNode(int32 thumbnail_min_area_pixels, | 14 RequestThumbnailForContextNode(int32 thumbnail_min_area_pixels, |
| 16 gfx.mojom.Size thumbnail_max_size_pixels) | 15 gfx.mojom.Size thumbnail_max_size_pixels, |
| 16 bool use_png_codec) | |
| 17 => (array<uint8> thumbnail_data, gfx.mojom.Size original_size); | 17 => (array<uint8> thumbnail_data, gfx.mojom.Size original_size); |
| 18 }; | 18 }; |
| OLD | NEW |