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

Unified Diff: chrome/common/thumbnail_capturer.mojom

Issue 2737893002: Mojoify the RequestThumbnailForContextNode IPC message and reply (Closed)
Patch Set: Remove watcher; use ContextMenuWaiter Created 3 years, 9 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
Index: chrome/common/thumbnail_capturer.mojom
diff --git a/chrome/common/thumbnail_capturer.mojom b/chrome/common/thumbnail_capturer.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..1ad6a497aca8fe48360c94b91ee9fe879f60f427
--- /dev/null
+++ b/chrome/common/thumbnail_capturer.mojom
@@ -0,0 +1,18 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module chrome.mojom;
+
+import "ui/gfx/geometry/mojo/geometry.mojom";
+
+interface ThumbnailCapturer {
+ // Requests a 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|.
+ RequestThumbnailForContextNode(int32 thumbnail_min_area_pixels,
+ gfx.mojom.Size thumbnail_max_size_pixels)
+ => (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.
+};

Powered by Google App Engine
This is Rietveld 408576698