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

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

Issue 6246007: Generate thumbnails in the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include <map> 5 #include <map>
6 #include <set> 6 #include <set>
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 // IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need 47 // IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need
48 // to typedef it to avoid that. 48 // to typedef it to avoid that.
49 // Substitution map for l10n messages. 49 // Substitution map for l10n messages.
50 typedef std::map<std::string, std::string> SubstitutionMap; 50 typedef std::map<std::string, std::string> SubstitutionMap;
51 51
52 class Value; 52 class Value;
53 class GPUInfo; 53 class GPUInfo;
54 struct PP_Flash_NetAddress; 54 struct PP_Flash_NetAddress;
55 class SkBitmap; 55 class SkBitmap;
56 struct ThumbnailScore;
57 class WebCursor; 56 class WebCursor;
58 57
59 namespace gfx { 58 namespace gfx {
60 class Rect; 59 class Rect;
61 } 60 }
62 61
63 namespace IPC { 62 namespace IPC {
64 struct ChannelHandle; 63 struct ChannelHandle;
65 class Message; 64 class Message;
66 } 65 }
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 149
151 // Tells the render view that it is no longer hidden (see WasHidden), and the 150 // Tells the render view that it is no longer hidden (see WasHidden), and the
152 // render view is expected to respond with a full repaint if needs_repainting 151 // render view is expected to respond with a full repaint if needs_repainting
153 // is true. In that case, the generated ViewHostMsg_PaintRect message will 152 // is true. In that case, the generated ViewHostMsg_PaintRect message will
154 // have the IS_RESTORE_ACK flag set. If needs_repainting is false, then this 153 // have the IS_RESTORE_ACK flag set. If needs_repainting is false, then this
155 // message does not trigger a message in response. 154 // message does not trigger a message in response.
156 IPC_MESSAGE_ROUTED1(ViewMsg_WasRestored, 155 IPC_MESSAGE_ROUTED1(ViewMsg_WasRestored,
157 bool /* needs_repainting */) 156 bool /* needs_repainting */)
158 157
159 // Tells the render view to capture a thumbnail image of the page. The 158 // Tells the render view to capture a thumbnail image of the page. The
160 // render view responds with a ViewHostMsg_Thumbnail.
161 IPC_MESSAGE_ROUTED0(ViewMsg_CaptureThumbnail)
162
163 // Tells the render view to capture a thumbnail image of the page. The
164 // render view responds with a ViewHostMsg_Snapshot. 159 // render view responds with a ViewHostMsg_Snapshot.
165 IPC_MESSAGE_ROUTED0(ViewMsg_CaptureSnapshot) 160 IPC_MESSAGE_ROUTED0(ViewMsg_CaptureSnapshot)
166 161
167 // Tells the render view to switch the CSS to print media type, renders every 162 // Tells the render view to switch the CSS to print media type, renders every
168 // requested pages and switch back the CSS to display media type. 163 // requested pages and switch back the CSS to display media type.
169 IPC_MESSAGE_ROUTED0(ViewMsg_PrintPages) 164 IPC_MESSAGE_ROUTED0(ViewMsg_PrintPages)
170 165
171 // Tells the render view that printing is done so it can clean up. 166 // Tells the render view that printing is done so it can clean up.
172 IPC_MESSAGE_ROUTED2(ViewMsg_PrintingDone, 167 IPC_MESSAGE_ROUTED2(ViewMsg_PrintingDone,
173 int /* document_cookie */, 168 int /* document_cookie */,
(...skipping 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after
1272 // the tag sent along with ViewMsg_PaintAtSize. 1267 // the tag sent along with ViewMsg_PaintAtSize.
1273 IPC_MESSAGE_ROUTED2(ViewHostMsg_PaintAtSize_ACK, 1268 IPC_MESSAGE_ROUTED2(ViewHostMsg_PaintAtSize_ACK,
1274 int /* tag */, 1269 int /* tag */,
1275 gfx::Size /* size */) 1270 gfx::Size /* size */)
1276 1271
1277 // Sent to update part of the view. In response to this message, the host 1272 // Sent to update part of the view. In response to this message, the host
1278 // generates a ViewMsg_UpdateRect_ACK message. 1273 // generates a ViewMsg_UpdateRect_ACK message.
1279 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateRect, 1274 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateRect,
1280 ViewHostMsg_UpdateRect_Params) 1275 ViewHostMsg_UpdateRect_Params)
1281 1276
1277 // Sent to update the current scroll offset.
1278 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateScrollOffset, gfx::Size);
1279
1282 // Sent by the renderer when accelerated compositing is enabled or disabled to 1280 // Sent by the renderer when accelerated compositing is enabled or disabled to
1283 // notify the browser whether or not is should do painting. 1281 // notify the browser whether or not is should do painting.
1284 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidActivateAcceleratedCompositing, 1282 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidActivateAcceleratedCompositing,
1285 bool /* true if the accelerated compositor is actve */) 1283 bool /* true if the accelerated compositor is actve */)
1286 1284
1287 // Acknowledges receipt of a ViewMsg_HandleInputEvent message. 1285 // Acknowledges receipt of a ViewMsg_HandleInputEvent message.
1288 // Payload is a WebInputEvent::Type which is the type of the event, followed 1286 // Payload is a WebInputEvent::Type which is the type of the event, followed
1289 // by an optional WebInputEvent which is provided only if the event was not 1287 // by an optional WebInputEvent which is provided only if the event was not
1290 // processed. 1288 // processed.
1291 IPC_MESSAGE_ROUTED0(ViewHostMsg_HandleInputEvent_ACK) 1289 IPC_MESSAGE_ROUTED0(ViewHostMsg_HandleInputEvent_ACK)
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 int32 /* page id */, 1480 int32 /* page id */,
1483 string16 /* page contents */, 1481 string16 /* page contents */,
1484 std::string /* page ISO639_1 language code */, 1482 std::string /* page ISO639_1 language code */,
1485 bool /* whether the page can be translated */) 1483 bool /* whether the page can be translated */)
1486 1484
1487 // Used to get the extension message bundle. 1485 // Used to get the extension message bundle.
1488 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetExtensionMessageBundle, 1486 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetExtensionMessageBundle,
1489 std::string /* extension id */, 1487 std::string /* extension id */,
1490 SubstitutionMap /* message bundle */) 1488 SubstitutionMap /* message bundle */)
1491 1489
1492 // Specifies the URL as the first parameter (a wstring) and thumbnail as
1493 // binary data as the second parameter.
1494 IPC_MESSAGE_ROUTED3(ViewHostMsg_Thumbnail,
1495 GURL /* url */,
1496 ThumbnailScore /* score */,
1497 SkBitmap /* bitmap */)
1498
1499 // Send a snapshot of the tab contents to the render host. 1490 // Send a snapshot of the tab contents to the render host.
1500 IPC_MESSAGE_ROUTED1(ViewHostMsg_Snapshot, 1491 IPC_MESSAGE_ROUTED1(ViewHostMsg_Snapshot,
1501 SkBitmap /* bitmap */) 1492 SkBitmap /* bitmap */)
1502 1493
1503 // Notification that the url for the favicon of a site has been determined. 1494 // Notification that the url for the favicon of a site has been determined.
1504 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateFavIconURL, 1495 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateFavIconURL,
1505 int32 /* page_id */, 1496 int32 /* page_id */,
1506 GURL /* url of the favicon */) 1497 GURL /* url of the favicon */)
1507 1498
1508 // Used to tell the parent that the user right clicked on an area of the 1499 // Used to tell the parent that the user right clicked on an area of the
(...skipping 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after
2630 int /* request_id */, 2621 int /* request_id */,
2631 PP_Flash_NetAddress /* addr */) 2622 PP_Flash_NetAddress /* addr */)
2632 2623
2633 // JavaScript related messages ----------------------------------------------- 2624 // JavaScript related messages -----------------------------------------------
2634 2625
2635 // Notify the JavaScript engine in the render to change its parameters 2626 // Notify the JavaScript engine in the render to change its parameters
2636 // while performing stress testing. 2627 // while performing stress testing.
2637 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, 2628 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl,
2638 int /* cmd */, 2629 int /* cmd */,
2639 int /* param */) 2630 int /* param */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698