Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 module chrome.mojom; | |
| 6 | |
| 7 import "ui/gfx/geometry/mojo/geometry.mojom"; | |
| 8 | |
| 9 interface ThumbnailCapturer { | |
| 10 // Requests a thumbnail of the image selected by the most recently opened | |
| 11 // context menu. If no image is selected or there's an error capturing a | |
| 12 // thumbnail, |thumbnail_data| will be empty. If the image area is larger than | |
| 13 // |thumbnail_min_area_pixels| it will be downscaled to fit within | |
| 14 // |thumbnail_max_size_pixels|. | |
| 15 RequestThumbnailForContextNode(int32 thumbnail_min_area_pixels, | |
| 16 gfx.mojom.Size thumbnail_max_size_pixels) | |
| 17 => (string thumbnail_data, gfx.mojom.Size original_size); | |
|
Sam McNally
2017/03/09 04:17:13
Use array<uint8> for data. Mention that it's JPEG-
watk
2017/03/09 06:38:41
Done.
| |
| 18 }; | |
| OLD | NEW |