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

Side by Side Diff: chrome/common/thumbnail_capturer.mojom

Issue 2943363003: Fixing transparent pixels appearing black when rendered for the context menu. (Closed)
Patch Set: creating and implementing ImageFormat enum Created 3 years, 5 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 unified diff | Download patch
OLDNEW
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 enum ImageFormat {
10 JPEG,
11 PNG,
12 };
13
9 interface ThumbnailCapturer { 14 interface ThumbnailCapturer {
10 // Requests a JPEG encoded thumbnail of the image selected by the most 15 // Requests an encoded thumbnail of the image selected by the most recently
11 // recently opened context menu. If no image is selected or there's an error 16 // opened context menu. The encoding format is specified as a parameter. If
12 // capturing a thumbnail, |thumbnail_data| will be empty. If the image area is 17 // no image is selected or there's an error capturing a thumbnail,
13 // larger than |thumbnail_min_area_pixels| it will be downscaled to fit within 18 // |thumbnail_data| will be empty. If the image area is larger than
19 // |thumbnail_min_area_pixels| it will be downscaled to fit within
14 // |thumbnail_max_size_pixels|. 20 // |thumbnail_max_size_pixels|.
15 RequestThumbnailForContextNode(int32 thumbnail_min_area_pixels, 21 RequestThumbnailForContextNode(int32 thumbnail_min_area_pixels,
16 gfx.mojom.Size thumbnail_max_size_pixels) 22 gfx.mojom.Size thumbnail_max_size_pixels,
23 ImageFormat image_format)
17 => (array<uint8> thumbnail_data, gfx.mojom.Size original_size); 24 => (array<uint8> thumbnail_data, gfx.mojom.Size original_size);
18 }; 25 };
OLDNEW
« no previous file with comments | « chrome/browser/ui/tab_contents/core_tab_helper.cc ('k') | chrome/renderer/chrome_render_frame_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698