diff options
author | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-31 21:59:05 +0000 |
---|---|---|
committer | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-31 21:59:05 +0000 |
commit | 31dd25ab9d478176dded4999473fd1cdf4e5fcc6 (patch) | |
tree | a33223129a1d11781d6e842dfe948e0ef4988caf /chrome/common | |
parent | f7dbc3f9ef3a4d9c1a1f08f180e031fd9181eb50 (diff) | |
download | chromium_src-31dd25ab9d478176dded4999473fd1cdf4e5fcc6.zip chromium_src-31dd25ab9d478176dded4999473fd1cdf4e5fcc6.tar.gz chromium_src-31dd25ab9d478176dded4999473fd1cdf4e5fcc6.tar.bz2 |
Add renderer side of IPC handler for context menu image thumbnail
BUG=89945
Review URL: https://chromiumcodereview.appspot.com/19994008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214830 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/render_messages.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h index 6001df2..547057c 100644 --- a/chrome/common/render_messages.h +++ b/chrome/common/render_messages.h @@ -366,6 +366,15 @@ IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection, IPC_MESSAGE_ROUTED1(ChromeViewMsg_StartFrameSniffer, string16 /* frame-name */) +// Asks the renderer for a thumbnail of the image selected by the most +// recently opened context menu, if there is one. If the image's area +// is greater than thumbnail_min_area it will be downscaled to +// be within thumbnail_max_size. The possibly downsampled image will be +// returned in a ChromeViewHostMsg_RequestThumbnailForContextNode_ACK message. +IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestThumbnailForContextNode, + int /* thumbnail_min_area_pixels */, + gfx::Size /* thumbnail_max_size_pixels */) + // Notifies the renderer whether hiding/showing the top controls is enabled, // what the current state should be, and whether or not to animate to the // proper state. @@ -374,10 +383,15 @@ IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateTopControlsState, content::TopControlsState /* current */, bool /* animate */) + // Updates the window features of the render view. IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures, WebKit::WebWindowFeatures /* window_features */) +IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK, + SkBitmap /* thumbnail */) + + // JavaScript related messages ----------------------------------------------- // Notify the JavaScript engine in the render to change its parameters |