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

Side by Side Diff: chrome/common/render_messages.h

Issue 2737893002: Mojoify the RequestThumbnailForContextNode IPC message and reply (Closed)
Patch Set: rebase & pull out raw proxy for making calls 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Multiply-included file, no traditional include guard. 5 // Multiply-included file, no traditional include guard.
6 #include <stdint.h> 6 #include <stdint.h>
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 // Sent when the profile changes the kSafeBrowsingEnabled preference. 132 // Sent when the profile changes the kSafeBrowsingEnabled preference.
133 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection, 133 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection,
134 bool /* enable_phishing_detection */) 134 bool /* enable_phishing_detection */)
135 135
136 // Reloads the image selected by the most recently opened context menu 136 // Reloads the image selected by the most recently opened context menu
137 // (if there indeed is an image at that location). 137 // (if there indeed is an image at that location).
138 // 138 //
139 // TODO(nigeltao): delete this when tab_android.cc's use is converted to Mojo. 139 // TODO(nigeltao): delete this when tab_android.cc's use is converted to Mojo.
140 IPC_MESSAGE_ROUTED0(ChromeViewMsg_RequestReloadImageForContextNode) 140 IPC_MESSAGE_ROUTED0(ChromeViewMsg_RequestReloadImageForContextNode)
141 141
142 // Asks the renderer for a thumbnail of the image selected by the most
143 // recently opened context menu, if there is one. If the image's area
144 // is greater than thumbnail_min_area it will be downscaled to
145 // be within thumbnail_max_size. The possibly downsampled image will be
146 // returned in a ChromeViewHostMsg_RequestThumbnailForContextNode_ACK message.
147 IPC_MESSAGE_ROUTED3(ChromeViewMsg_RequestThumbnailForContextNode,
148 int /* thumbnail_min_area_pixels */,
149 gfx::Size /* thumbnail_max_size_pixels */,
150 int /* ID of the callback */)
151
152 // Notifies the renderer whether hiding/showing the browser controls is enabled, 142 // Notifies the renderer whether hiding/showing the browser controls is enabled,
153 // what the current state should be, and whether or not to animate to the 143 // what the current state should be, and whether or not to animate to the
154 // proper state. 144 // proper state.
155 IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateBrowserControlsState, 145 IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateBrowserControlsState,
156 content::BrowserControlsState /* constraints */, 146 content::BrowserControlsState /* constraints */,
157 content::BrowserControlsState /* current */, 147 content::BrowserControlsState /* current */,
158 bool /* animate */) 148 bool /* animate */)
159 149
160 // Updates the window features of the render view. 150 // Updates the window features of the render view.
161 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures, 151 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures,
162 blink::mojom::WindowFeatures /* window_features */) 152 blink::mojom::WindowFeatures /* window_features */)
163 153
164 // Responds to the request for a thumbnail.
165 // Thumbnail data will be empty is a thumbnail could not be produced.
166 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK,
167 std::string /* JPEG-encoded thumbnail data */,
168 gfx::Size /* original size of the image */,
169 int /* ID of the callback */)
170
171 // Requests application info for the page. The renderer responds back with 154 // Requests application info for the page. The renderer responds back with
172 // ChromeViewHostMsg_DidGetWebApplicationInfo. 155 // ChromeViewHostMsg_DidGetWebApplicationInfo.
173 IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetWebApplicationInfo) 156 IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetWebApplicationInfo)
174 157
175 // chrome.principals messages ------------------------------------------------ 158 // chrome.principals messages ------------------------------------------------
176 159
177 // Message sent from the renderer to the browser to get the list of browser 160 // Message sent from the renderer to the browser to get the list of browser
178 // managed accounts for the given origin. 161 // managed accounts for the given origin.
179 IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetManagedAccounts, 162 IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetManagedAccounts,
180 GURL /* current URL */, 163 GURL /* current URL */,
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 // process so that they can be assigned to an Instant renderer. 368 // process so that they can be assigned to an Instant renderer.
386 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs, 369 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs,
387 std::vector<GURL> /* search_urls */, 370 std::vector<GURL> /* search_urls */,
388 GURL /* new_tab_page_url */) 371 GURL /* new_tab_page_url */)
389 372
390 #if BUILDFLAG(ENABLE_PLUGINS) 373 #if BUILDFLAG(ENABLE_PLUGINS)
391 // Sent by the renderer to check if crash reporting is enabled. 374 // Sent by the renderer to check if crash reporting is enabled.
392 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled, 375 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled,
393 bool /* enabled */) 376 bool /* enabled */)
394 #endif 377 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698