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) |
(...skipping 11 matching lines...) Expand all Loading... |
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 | 426 |
446 // All the above coordinates are in DIP. This is the scale factor needed | 427 // All the above coordinates are in DIP. This is the scale factor needed |
447 // to convert them to pixels. | 428 // to convert them to pixels. |
448 IPC_STRUCT_MEMBER(float, scale_factor) | 429 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() | 430 IPC_STRUCT_END() |
454 | 431 |
455 IPC_STRUCT_BEGIN(ViewMsg_New_Params) | 432 IPC_STRUCT_BEGIN(ViewMsg_New_Params) |
456 // Renderer-wide preferences. | 433 // Renderer-wide preferences. |
457 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) | 434 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) |
458 | 435 |
459 // Preferences for this view. | 436 // Preferences for this view. |
460 IPC_STRUCT_MEMBER(WebPreferences, web_preferences) | 437 IPC_STRUCT_MEMBER(WebPreferences, web_preferences) |
461 | 438 |
462 // The ID of the view to be created. | 439 // The ID of the view to be created. |
(...skipping 1354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1817 // synchronously (see crbug.com/120597). This IPC message sends the character | 1794 // synchronously (see crbug.com/120597). This IPC message sends the character |
1818 // bounds after every composition change to always have correct bound info. | 1795 // bounds after every composition change to always have correct bound info. |
1819 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 1796 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
1820 gfx::Range /* composition range */, | 1797 gfx::Range /* composition range */, |
1821 std::vector<gfx::Rect> /* character bounds */) | 1798 std::vector<gfx::Rect> /* character bounds */) |
1822 #endif | 1799 #endif |
1823 | 1800 |
1824 // Adding a new message? Stick to the sort order above: first platform | 1801 // Adding a new message? Stick to the sort order above: first platform |
1825 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1802 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1826 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1803 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |