| 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/process.h" | 8 #include "base/process.h" |
| 9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
| 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" | 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" |
| 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" | 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" |
| 45 #include "ui/base/dialogs/selected_file_info.h" | 45 #include "ui/base/dialogs/selected_file_info.h" |
| 46 #include "ui/base/ime/text_input_type.h" | 46 #include "ui/base/ime/text_input_type.h" |
| 47 #include "ui/base/range/range.h" | 47 #include "ui/base/range/range.h" |
| 48 #include "ui/gfx/point.h" | 48 #include "ui/gfx/point.h" |
| 49 #include "ui/gfx/rect.h" | 49 #include "ui/gfx/rect.h" |
| 50 #include "ui/gfx/rect_f.h" | 50 #include "ui/gfx/rect_f.h" |
| 51 #include "ui/gfx/vector2d.h" | 51 #include "ui/gfx/vector2d.h" |
| 52 #include "webkit/compositor_bindings/web_latency_info_impl.h" |
| 52 #include "webkit/glue/webcookie.h" | 53 #include "webkit/glue/webcookie.h" |
| 53 #include "webkit/glue/webmenuitem.h" | 54 #include "webkit/glue/webmenuitem.h" |
| 54 #include "webkit/glue/webpreferences.h" | 55 #include "webkit/glue/webpreferences.h" |
| 55 #include "webkit/plugins/npapi/webplugin.h" | 56 #include "webkit/plugins/npapi/webplugin.h" |
| 56 | 57 |
| 57 #if defined(OS_MACOSX) | 58 #if defined(OS_MACOSX) |
| 58 #include "content/common/mac/font_descriptor.h" | 59 #include "content/common/mac/font_descriptor.h" |
| 59 #endif | 60 #endif |
| 60 | 61 |
| 61 #undef IPC_MESSAGE_EXPORT | 62 #undef IPC_MESSAGE_EXPORT |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 IPC_STRUCT_TRAITS_MEMBER(params) | 390 IPC_STRUCT_TRAITS_MEMBER(params) |
| 390 IPC_STRUCT_TRAITS_MEMBER(time) | 391 IPC_STRUCT_TRAITS_MEMBER(time) |
| 391 IPC_STRUCT_TRAITS_END() | 392 IPC_STRUCT_TRAITS_END() |
| 392 | 393 |
| 393 IPC_STRUCT_TRAITS_BEGIN(ui::SelectedFileInfo) | 394 IPC_STRUCT_TRAITS_BEGIN(ui::SelectedFileInfo) |
| 394 IPC_STRUCT_TRAITS_MEMBER(file_path) | 395 IPC_STRUCT_TRAITS_MEMBER(file_path) |
| 395 IPC_STRUCT_TRAITS_MEMBER(local_path) | 396 IPC_STRUCT_TRAITS_MEMBER(local_path) |
| 396 IPC_STRUCT_TRAITS_MEMBER(display_name) | 397 IPC_STRUCT_TRAITS_MEMBER(display_name) |
| 397 IPC_STRUCT_TRAITS_END() | 398 IPC_STRUCT_TRAITS_END() |
| 398 | 399 |
| 400 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebLatencyInfoImpl) |
| 401 IPC_STRUCT_TRAITS_MEMBER(inputNumber) |
| 402 IPC_STRUCT_TRAITS_MEMBER(rendererMainFrameNumber) |
| 403 IPC_STRUCT_TRAITS_MEMBER(rendererImplFrameNumber) |
| 404 IPC_STRUCT_TRAITS_MEMBER(browserMainFrameNumber) |
| 405 IPC_STRUCT_TRAITS_MEMBER(browserImplFrameNumber) |
| 406 IPC_STRUCT_TRAITS_MEMBER(swapTimestamp) |
| 407 IPC_STRUCT_TRAITS_END() |
| 408 |
| 399 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWindow_Params) | 409 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWindow_Params) |
| 400 // Routing ID of the view initiating the open. | 410 // Routing ID of the view initiating the open. |
| 401 IPC_STRUCT_MEMBER(int, opener_id) | 411 IPC_STRUCT_MEMBER(int, opener_id) |
| 402 | 412 |
| 403 // True if this open request came in the context of a user gesture. | 413 // True if this open request came in the context of a user gesture. |
| 404 IPC_STRUCT_MEMBER(bool, user_gesture) | 414 IPC_STRUCT_MEMBER(bool, user_gesture) |
| 405 | 415 |
| 406 // Type of window requested. | 416 // Type of window requested. |
| 407 IPC_STRUCT_MEMBER(WindowContainerType, window_container_type) | 417 IPC_STRUCT_MEMBER(WindowContainerType, window_container_type) |
| 408 | 418 |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 607 // request messages. | 617 // request messages. |
| 608 IPC_STRUCT_MEMBER(int, flags) | 618 IPC_STRUCT_MEMBER(int, flags) |
| 609 | 619 |
| 610 // Whether or not the renderer expects a ViewMsg_UpdateRect_ACK for this | 620 // Whether or not the renderer expects a ViewMsg_UpdateRect_ACK for this |
| 611 // update. True for 2D painting, but false for accelerated compositing. | 621 // update. True for 2D painting, but false for accelerated compositing. |
| 612 IPC_STRUCT_MEMBER(bool, needs_ack) | 622 IPC_STRUCT_MEMBER(bool, needs_ack) |
| 613 | 623 |
| 614 // All the above coordinates are in DIP. This is the scale factor needed | 624 // All the above coordinates are in DIP. This is the scale factor needed |
| 615 // to convert them to pixels. | 625 // to convert them to pixels. |
| 616 IPC_STRUCT_MEMBER(float, scale_factor) | 626 IPC_STRUCT_MEMBER(float, scale_factor) |
| 627 |
| 628 // The frame number this update rect corresponds to. |
| 629 IPC_STRUCT_MEMBER(WebKit::WebLatencyInfoImpl, latency_info) |
| 617 IPC_STRUCT_END() | 630 IPC_STRUCT_END() |
| 618 | 631 |
| 619 IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params) | 632 IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params) |
| 620 // The serialized script value. | 633 // The serialized script value. |
| 621 IPC_STRUCT_MEMBER(string16, data) | 634 IPC_STRUCT_MEMBER(string16, data) |
| 622 | 635 |
| 623 // When sent to the browser, this is the routing ID of the source frame in | 636 // When sent to the browser, this is the routing ID of the source frame in |
| 624 // the source process. The browser replaces it with the routing ID of the | 637 // the source process. The browser replaces it with the routing ID of the |
| 625 // equivalent (swapped out) frame in the destination process. | 638 // equivalent (swapped out) frame in the destination process. |
| 626 IPC_STRUCT_MEMBER(int, source_routing_id) | 639 IPC_STRUCT_MEMBER(int, source_routing_id) |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 918 | 931 |
| 919 // Tells the render view that a SwapBuffers was completed. Typically, | 932 // Tells the render view that a SwapBuffers was completed. Typically, |
| 920 // SwapBuffers requests go from renderer -> GPU process -> browser. Most | 933 // SwapBuffers requests go from renderer -> GPU process -> browser. Most |
| 921 // platforms still use the GfxCxt3D Echo for receiving the SwapBuffers Ack. | 934 // platforms still use the GfxCxt3D Echo for receiving the SwapBuffers Ack. |
| 922 // Using Echo routes the ack from browser -> GPU process -> renderer, while this | 935 // Using Echo routes the ack from browser -> GPU process -> renderer, while this |
| 923 // Ack goes directly from browser -> renderer. This is not used for the threaded | 936 // Ack goes directly from browser -> renderer. This is not used for the threaded |
| 924 // compositor path. | 937 // compositor path. |
| 925 IPC_MESSAGE_ROUTED0(ViewMsg_SwapBuffers_ACK) | 938 IPC_MESSAGE_ROUTED0(ViewMsg_SwapBuffers_ACK) |
| 926 | 939 |
| 927 // Sends an input event to the render widget. | 940 // Sends an input event to the render widget. |
| 928 IPC_MESSAGE_ROUTED2(ViewMsg_HandleInputEvent, | 941 IPC_MESSAGE_ROUTED3(ViewMsg_HandleInputEvent, |
| 942 int64 /* input_number */, |
| 929 IPC::WebInputEventPointer /* event */, | 943 IPC::WebInputEventPointer /* event */, |
| 930 bool /* is_keyboard_shortcut */) | 944 bool /* is_keyboard_shortcut */) |
| 931 | 945 |
| 946 // A new frame with a new input number has started. |
| 947 IPC_MESSAGE_ROUTED1(ViewMsg_StartFrame, |
| 948 int64 /* input_number */) |
| 949 |
| 932 // Tells the render widget that a smooth scroll completed. | 950 // Tells the render widget that a smooth scroll completed. |
| 933 IPC_MESSAGE_ROUTED1(ViewMsg_SmoothScrollCompleted, | 951 IPC_MESSAGE_ROUTED1(ViewMsg_SmoothScrollCompleted, |
| 934 int /* gesture_id */) | 952 int /* gesture_id */) |
| 935 | 953 |
| 936 // This message notifies the renderer that the next key event is bound to one | 954 // This message notifies the renderer that the next key event is bound to one |
| 937 // or more pre-defined edit commands. If the next key event is not handled | 955 // or more pre-defined edit commands. If the next key event is not handled |
| 938 // by webkit, the specified edit commands shall be executed against current | 956 // by webkit, the specified edit commands shall be executed against current |
| 939 // focused frame. | 957 // focused frame. |
| 940 // Parameters | 958 // Parameters |
| 941 // * edit_commands (see chrome/common/edit_command_types.h) | 959 // * edit_commands (see chrome/common/edit_command_types.h) |
| (...skipping 1500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2442 int /* arb_robustness_status_code */) | 2460 int /* arb_robustness_status_code */) |
| 2443 | 2461 |
| 2444 #if defined(OS_WIN) | 2462 #if defined(OS_WIN) |
| 2445 // Request that the given font characters be loaded by the browser so it's | 2463 // Request that the given font characters be loaded by the browser so it's |
| 2446 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters | 2464 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters |
| 2447 // for details. | 2465 // for details. |
| 2448 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, | 2466 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, |
| 2449 LOGFONT /* font_data */, | 2467 LOGFONT /* font_data */, |
| 2450 string16 /* characters */) | 2468 string16 /* characters */) |
| 2451 #endif | 2469 #endif |
| OLD | NEW |