| 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 "base/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
| 9 #include "base/process/process.h" | 9 #include "base/process/process.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 // Whether or not the IME should be shown as a result of this update. Even if | 386 // Whether or not the IME should be shown as a result of this update. Even if |
| 387 // true, the IME will only be shown if the type is appropriate (e.g. not | 387 // true, the IME will only be shown if the type is appropriate (e.g. not |
| 388 // TEXT_INPUT_TYPE_NONE). | 388 // TEXT_INPUT_TYPE_NONE). |
| 389 IPC_STRUCT_MEMBER(bool, show_ime_if_needed) | 389 IPC_STRUCT_MEMBER(bool, show_ime_if_needed) |
| 390 | 390 |
| 391 // Whether this change is originated from non-IME (e.g. Javascript, Autofill). | 391 // Whether this change is originated from non-IME (e.g. Javascript, Autofill). |
| 392 IPC_STRUCT_MEMBER(bool, is_non_ime_change) | 392 IPC_STRUCT_MEMBER(bool, is_non_ime_change) |
| 393 IPC_STRUCT_END() | 393 IPC_STRUCT_END() |
| 394 | 394 |
| 395 IPC_STRUCT_BEGIN(ViewHostMsg_UpdateRect_Params) | 395 IPC_STRUCT_BEGIN(ViewHostMsg_UpdateRect_Params) |
| 396 // The bitmap to be painted into the view at the locations specified by | |
| 397 // update_rects. | |
| 398 IPC_STRUCT_MEMBER(TransportDIB::Id, bitmap) | |
| 399 | |
| 400 // The position and size of the bitmap. | |
| 401 IPC_STRUCT_MEMBER(gfx::Rect, bitmap_rect) | |
| 402 | |
| 403 // The scroll delta. Only one of the delta components can be non-zero, and if | |
| 404 // they are both zero, then it means there is no scrolling and the scroll_rect | |
| 405 // is ignored. | |
| 406 IPC_STRUCT_MEMBER(gfx::Vector2d, scroll_delta) | |
| 407 | |
| 408 // The rectangular region to scroll. | |
| 409 IPC_STRUCT_MEMBER(gfx::Rect, scroll_rect) | |
| 410 | |
| 411 // The scroll offset of the render view. | 396 // The scroll offset of the render view. |
| 412 IPC_STRUCT_MEMBER(gfx::Vector2d, scroll_offset) | 397 IPC_STRUCT_MEMBER(gfx::Vector2d, scroll_offset) |
| 413 | 398 |
| 414 // The regions of the bitmap (in view coords) that contain updated pixels. | |
| 415 // In the case of scrolling, this includes the scroll damage rect. | |
| 416 IPC_STRUCT_MEMBER(std::vector<gfx::Rect>, copy_rects) | |
| 417 | |
| 418 // The size of the RenderView when this message was generated. This is | 399 // The size of the RenderView when this message was generated. This is |
| 419 // included so the host knows how large the view is from the perspective of | 400 // included so the host knows how large the view is from the perspective of |
| 420 // the renderer process. This is necessary in case a resize operation is in | 401 // the renderer process. This is necessary in case a resize operation is in |
| 421 // progress. If auto-resize is enabled, this should update the corresponding | 402 // progress. If auto-resize is enabled, this should update the corresponding |
| 422 // view size. | 403 // view size. |
| 423 IPC_STRUCT_MEMBER(gfx::Size, view_size) | 404 IPC_STRUCT_MEMBER(gfx::Size, view_size) |
| 424 | 405 |
| 425 // New window locations for plugin child windows. | 406 // New window locations for plugin child windows. |
| 426 IPC_STRUCT_MEMBER(std::vector<content::WebPluginGeometry>, | 407 IPC_STRUCT_MEMBER(std::vector<content::WebPluginGeometry>, |
| 427 plugin_window_moves) | 408 plugin_window_moves) |
| 428 | 409 |
| 429 // The following describes the various bits that may be set in flags: | 410 // The following describes the various bits that may be set in flags: |
| 430 // | 411 // |
| 431 // ViewHostMsg_UpdateRect_Flags::IS_RESIZE_ACK | 412 // ViewHostMsg_UpdateRect_Flags::IS_RESIZE_ACK |
| 432 // Indicates that this is a response to a ViewMsg_Resize message. | 413 // Indicates that this is a response to a ViewMsg_Resize message. |
| 433 // | 414 // |
| 434 // ViewHostMsg_UpdateRect_Flags::IS_RESTORE_ACK | 415 // ViewHostMsg_UpdateRect_Flags::IS_RESTORE_ACK |
| 435 // Indicates that this is a response to a ViewMsg_WasShown message. | 416 // Indicates that this is a response to a ViewMsg_WasShown message. |
| 436 // | 417 // |
| 437 // ViewHostMsg_UpdateRect_Flags::IS_REPAINT_ACK | 418 // ViewHostMsg_UpdateRect_Flags::IS_REPAINT_ACK |
| 438 // Indicates that this is a response to a ViewMsg_Repaint message. | 419 // Indicates that this is a response to a ViewMsg_Repaint message. |
| 439 // | 420 // |
| 440 // If flags is zero, then this message corresponds to an unsolicited paint | 421 // If flags is zero, then this message corresponds to an unsolicited paint |
| 441 // request by the render view. Any of the above bits may be set in flags, | 422 // request by the render view. Any of the above bits may be set in flags, |
| 442 // which would indicate that this paint message is an ACK for multiple | 423 // which would indicate that this paint message is an ACK for multiple |
| 443 // request messages. | 424 // request messages. |
| 444 IPC_STRUCT_MEMBER(int, flags) | 425 IPC_STRUCT_MEMBER(int, flags) |
| 445 | |
| 446 // All the above coordinates are in DIP. This is the scale factor needed | |
| 447 // to convert them to pixels. | |
| 448 IPC_STRUCT_MEMBER(float, scale_factor) | |
| 449 | |
| 450 // The latency information for the frame. Only valid when accelerated | |
| 451 // compositing is disabled. | |
| 452 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) | |
| 453 IPC_STRUCT_END() | 426 IPC_STRUCT_END() |
| 454 | 427 |
| 455 IPC_STRUCT_BEGIN(ViewMsg_New_Params) | 428 IPC_STRUCT_BEGIN(ViewMsg_New_Params) |
| 456 // Renderer-wide preferences. | 429 // Renderer-wide preferences. |
| 457 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) | 430 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) |
| 458 | 431 |
| 459 // Preferences for this view. | 432 // Preferences for this view. |
| 460 IPC_STRUCT_MEMBER(WebPreferences, web_preferences) | 433 IPC_STRUCT_MEMBER(WebPreferences, web_preferences) |
| 461 | 434 |
| 462 // The ID of the view to be created. | 435 // The ID of the view to be created. |
| (...skipping 1353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1816 // synchronously (see crbug.com/120597). This IPC message sends the character | 1789 // synchronously (see crbug.com/120597). This IPC message sends the character |
| 1817 // bounds after every composition change to always have correct bound info. | 1790 // bounds after every composition change to always have correct bound info. |
| 1818 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 1791 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
| 1819 gfx::Range /* composition range */, | 1792 gfx::Range /* composition range */, |
| 1820 std::vector<gfx::Rect> /* character bounds */) | 1793 std::vector<gfx::Rect> /* character bounds */) |
| 1821 #endif | 1794 #endif |
| 1822 | 1795 |
| 1823 // Adding a new message? Stick to the sort order above: first platform | 1796 // Adding a new message? Stick to the sort order above: first platform |
| 1824 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1797 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1825 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1798 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |