OLD | NEW |
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 // IPC messages for page rendering. | 5 // IPC messages for page rendering. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 // ViewHostMsg_UpdateRect_Flags::IS_REPAINT_ACK | 356 // ViewHostMsg_UpdateRect_Flags::IS_REPAINT_ACK |
357 // Indicates that this is a response to a ViewMsg_Repaint message. | 357 // Indicates that this is a response to a ViewMsg_Repaint message. |
358 // | 358 // |
359 // If flags is zero, then this message corresponds to an unsolicited paint | 359 // If flags is zero, then this message corresponds to an unsolicited paint |
360 // request by the render view. Any of the above bits may be set in flags, | 360 // request by the render view. Any of the above bits may be set in flags, |
361 // which would indicate that this paint message is an ACK for multiple | 361 // which would indicate that this paint message is an ACK for multiple |
362 // request messages. | 362 // request messages. |
363 IPC_STRUCT_MEMBER(int, flags) | 363 IPC_STRUCT_MEMBER(int, flags) |
364 IPC_STRUCT_END() | 364 IPC_STRUCT_END() |
365 | 365 |
366 IPC_STRUCT_BEGIN(ViewMsg_New_Params) | |
367 // Renderer-wide preferences. | |
368 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) | |
369 | |
370 // Preferences for this view. | |
371 IPC_STRUCT_MEMBER(content::WebPreferences, web_preferences) | |
372 | |
373 // The ID of the view to be created. | |
374 IPC_STRUCT_MEMBER(int32_t, view_id, MSG_ROUTING_NONE) | |
375 | |
376 // The ID of the main frame hosted in the view. | |
377 IPC_STRUCT_MEMBER(int32_t, main_frame_routing_id, MSG_ROUTING_NONE) | |
378 | |
379 // The ID of the widget for the main frame. | |
380 IPC_STRUCT_MEMBER(int32_t, main_frame_widget_routing_id, MSG_ROUTING_NONE) | |
381 | |
382 // The session storage namespace ID this view should use. | |
383 IPC_STRUCT_MEMBER(int64_t, session_storage_namespace_id) | |
384 | |
385 // The route ID of the opener RenderFrame or RenderFrameProxy, if we need to | |
386 // set one (MSG_ROUTING_NONE otherwise). | |
387 IPC_STRUCT_MEMBER(int, opener_frame_route_id, MSG_ROUTING_NONE) | |
388 | |
389 // Whether the RenderView should initially be swapped out. | |
390 IPC_STRUCT_MEMBER(bool, swapped_out) | |
391 | |
392 // Carries replicated information, such as frame name and sandbox flags, for | |
393 // this view's main frame, which will be a proxy in |swapped_out| | |
394 // views when in --site-per-process mode, or a RenderFrame in all other | |
395 // cases. | |
396 IPC_STRUCT_MEMBER(content::FrameReplicationState, replicated_frame_state) | |
397 | |
398 // The ID of the proxy object for the main frame in this view. It is only | |
399 // used if |swapped_out| is true. | |
400 IPC_STRUCT_MEMBER(int32_t, proxy_routing_id, MSG_ROUTING_NONE) | |
401 | |
402 // Whether the RenderView should initially be hidden. | |
403 IPC_STRUCT_MEMBER(bool, hidden) | |
404 | |
405 // Whether the RenderView will never be visible. | |
406 IPC_STRUCT_MEMBER(bool, never_visible) | |
407 | |
408 // Whether the window associated with this view was created with an opener. | |
409 IPC_STRUCT_MEMBER(bool, window_was_created_with_opener) | |
410 | |
411 // The initial page ID to use for this view, which must be larger than any | |
412 // existing navigation that might be loaded in the view. Page IDs are unique | |
413 // to a view and are only updated by the renderer after this initial value. | |
414 IPC_STRUCT_MEMBER(int32_t, next_page_id) | |
415 | |
416 // The initial renderer size. | |
417 IPC_STRUCT_MEMBER(content::ResizeParams, initial_size) | |
418 | |
419 // Whether to enable auto-resize. | |
420 IPC_STRUCT_MEMBER(bool, enable_auto_resize) | |
421 | |
422 // The minimum size to layout the page if auto-resize is enabled. | |
423 IPC_STRUCT_MEMBER(gfx::Size, min_size) | |
424 | |
425 // The maximum size to layout the page if auto-resize is enabled. | |
426 IPC_STRUCT_MEMBER(gfx::Size, max_size) | |
427 | |
428 // The page zoom level. | |
429 IPC_STRUCT_MEMBER(double, page_zoom_level) | |
430 | |
431 // The ICC profile of the output color space to use for image decode. | |
432 IPC_STRUCT_MEMBER(gfx::ICCProfile, image_decode_color_space) | |
433 IPC_STRUCT_END() | |
434 | |
435 #if defined(OS_MACOSX) | 366 #if defined(OS_MACOSX) |
436 IPC_STRUCT_BEGIN(ViewMsg_UpdateScrollbarTheme_Params) | 367 IPC_STRUCT_BEGIN(ViewMsg_UpdateScrollbarTheme_Params) |
437 IPC_STRUCT_MEMBER(float, initial_button_delay) | 368 IPC_STRUCT_MEMBER(float, initial_button_delay) |
438 IPC_STRUCT_MEMBER(float, autoscroll_button_delay) | 369 IPC_STRUCT_MEMBER(float, autoscroll_button_delay) |
439 IPC_STRUCT_MEMBER(bool, jump_on_track_click) | 370 IPC_STRUCT_MEMBER(bool, jump_on_track_click) |
440 IPC_STRUCT_MEMBER(blink::ScrollerStyle, preferred_scroller_style) | 371 IPC_STRUCT_MEMBER(blink::ScrollerStyle, preferred_scroller_style) |
441 IPC_STRUCT_MEMBER(bool, redraw) | 372 IPC_STRUCT_MEMBER(bool, redraw) |
442 IPC_STRUCT_MEMBER(blink::WebScrollbarButtonsPlacement, button_placement) | 373 IPC_STRUCT_MEMBER(blink::WebScrollbarButtonsPlacement, button_placement) |
443 IPC_STRUCT_END() | 374 IPC_STRUCT_END() |
444 #endif | 375 #endif |
(...skipping 11 matching lines...) Expand all Loading... |
456 #endif | 387 #endif |
457 | 388 |
458 // Tells the render side that a ViewHostMsg_LockMouse message has been | 389 // Tells the render side that a ViewHostMsg_LockMouse message has been |
459 // processed. |succeeded| indicates whether the mouse has been successfully | 390 // processed. |succeeded| indicates whether the mouse has been successfully |
460 // locked or not. | 391 // locked or not. |
461 IPC_MESSAGE_ROUTED1(ViewMsg_LockMouse_ACK, | 392 IPC_MESSAGE_ROUTED1(ViewMsg_LockMouse_ACK, |
462 bool /* succeeded */) | 393 bool /* succeeded */) |
463 // Tells the render side that the mouse has been unlocked. | 394 // Tells the render side that the mouse has been unlocked. |
464 IPC_MESSAGE_ROUTED0(ViewMsg_MouseLockLost) | 395 IPC_MESSAGE_ROUTED0(ViewMsg_MouseLockLost) |
465 | 396 |
466 // Tells the renderer to create a new view. | |
467 // This message is slightly different, the view it takes (via | |
468 // ViewMsg_New_Params) is the view to create, the message itself is sent as a | |
469 // non-view control message. | |
470 IPC_MESSAGE_CONTROL1(ViewMsg_New, | |
471 ViewMsg_New_Params) | |
472 | |
473 // Sends updated preferences to the renderer. | 397 // Sends updated preferences to the renderer. |
474 IPC_MESSAGE_ROUTED1(ViewMsg_SetRendererPrefs, | 398 IPC_MESSAGE_ROUTED1(ViewMsg_SetRendererPrefs, |
475 content::RendererPreferences) | 399 content::RendererPreferences) |
476 | 400 |
477 // This passes a set of webkit preferences down to the renderer. | 401 // This passes a set of webkit preferences down to the renderer. |
478 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateWebPreferences, | 402 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateWebPreferences, |
479 content::WebPreferences) | 403 content::WebPreferences) |
480 | 404 |
481 // Tells the render view to close. | 405 // Tells the render view to close. |
482 // Expects a Close_ACK message when finished. | 406 // Expects a Close_ACK message when finished. |
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1080 int /* y */) | 1004 int /* y */) |
1081 | 1005 |
1082 #elif defined(OS_MACOSX) | 1006 #elif defined(OS_MACOSX) |
1083 // Receives content of a web page as plain text. | 1007 // Receives content of a web page as plain text. |
1084 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 1008 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
1085 #endif | 1009 #endif |
1086 | 1010 |
1087 // Adding a new message? Stick to the sort order above: first platform | 1011 // Adding a new message? Stick to the sort order above: first platform |
1088 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1012 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1089 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1013 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |