| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 interacting with frames. | 5 // IPC messages for interacting with frames. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
| 9 #include "content/common/content_param_traits.h" | 9 #include "content/common/content_param_traits.h" |
| 10 #include "content/common/frame_message_enums.h" | 10 #include "content/common/frame_message_enums.h" |
| 11 #include "content/common/frame_param.h" | 11 #include "content/common/frame_param.h" |
| 12 #include "content/common/navigation_gesture.h" | 12 #include "content/common/navigation_gesture.h" |
| 13 #include "content/common/resource_request_body.h" | 13 #include "content/common/resource_request_body.h" |
| 14 #include "content/public/common/color_suggestion.h" | 14 #include "content/public/common/color_suggestion.h" |
| 15 #include "content/public/common/common_param_traits.h" | 15 #include "content/public/common/common_param_traits.h" |
| 16 #include "content/public/common/context_menu_params.h" | 16 #include "content/public/common/context_menu_params.h" |
| 17 #include "content/public/common/frame_navigate_params.h" | 17 #include "content/public/common/frame_navigate_params.h" |
| 18 #include "content/public/common/javascript_message_type.h" | 18 #include "content/public/common/javascript_message_type.h" |
| 19 #include "content/public/common/page_state.h" | 19 #include "content/public/common/page_state.h" |
| 20 #include "ipc/ipc_message_macros.h" | 20 #include "ipc/ipc_message_macros.h" |
| 21 #include "ui/gfx/ipc/gfx_param_traits.h" | 21 #include "ui/gfx/ipc/gfx_param_traits.h" |
| 22 #include "url/gurl.h" | 22 #include "url/gurl.h" |
| 23 | 23 |
| 24 #undef IPC_MESSAGE_EXPORT | 24 #undef IPC_MESSAGE_EXPORT |
| 25 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 25 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 26 | 26 |
| 27 #define IPC_MESSAGE_START FrameMsgStart | 27 #define IPC_MESSAGE_START FrameMsgStart |
| 28 | 28 |
| 29 IPC_ENUM_TRAITS_MIN_MAX_VALUE(AccessibilityMode, |
| 30 AccessibilityModeOff, |
| 31 AccessibilityModeComplete) |
| 29 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptMessageType, | 32 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptMessageType, |
| 30 content::JAVASCRIPT_MESSAGE_TYPE_ALERT, | 33 content::JAVASCRIPT_MESSAGE_TYPE_ALERT, |
| 31 content::JAVASCRIPT_MESSAGE_TYPE_PROMPT) | 34 content::JAVASCRIPT_MESSAGE_TYPE_PROMPT) |
| 32 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value, | 35 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value, |
| 33 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST) | 36 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST) |
| 34 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType, | 37 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType, |
| 35 blink::WebContextMenuData::MediaTypeLast) | 38 blink::WebContextMenuData::MediaTypeLast) |
| 36 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST) | 39 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST) |
| 37 | 40 |
| 38 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion) | 41 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion) |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 | 399 |
| 397 // Request the text surrounding the selection with a |max_length|. The response | 400 // Request the text surrounding the selection with a |max_length|. The response |
| 398 // will be sent via FrameHostMsg_TextSurroundingSelectionResponse. | 401 // will be sent via FrameHostMsg_TextSurroundingSelectionResponse. |
| 399 IPC_MESSAGE_ROUTED1(FrameMsg_TextSurroundingSelectionRequest, | 402 IPC_MESSAGE_ROUTED1(FrameMsg_TextSurroundingSelectionRequest, |
| 400 size_t /* max_length */) | 403 size_t /* max_length */) |
| 401 | 404 |
| 402 // Tells the renderer to insert a link to the specified stylesheet. This is | 405 // Tells the renderer to insert a link to the specified stylesheet. This is |
| 403 // needed to support navigation transitions. | 406 // needed to support navigation transitions. |
| 404 IPC_MESSAGE_ROUTED1(FrameMsg_AddStyleSheetByURL, std::string) | 407 IPC_MESSAGE_ROUTED1(FrameMsg_AddStyleSheetByURL, std::string) |
| 405 | 408 |
| 409 // Change the accessibility mode in the renderer process. |
| 410 IPC_MESSAGE_ROUTED1(FrameMsg_SetAccessibilityMode, |
| 411 AccessibilityMode) |
| 412 |
| 406 // ----------------------------------------------------------------------------- | 413 // ----------------------------------------------------------------------------- |
| 407 // Messages sent from the renderer to the browser. | 414 // Messages sent from the renderer to the browser. |
| 408 | 415 |
| 409 // Blink and JavaScript error messages to log to the console | 416 // Blink and JavaScript error messages to log to the console |
| 410 // or debugger UI. | 417 // or debugger UI. |
| 411 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, | 418 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, |
| 412 int32, /* log level */ | 419 int32, /* log level */ |
| 413 base::string16, /* msg */ | 420 base::string16, /* msg */ |
| 414 int32, /* line number */ | 421 int32, /* line number */ |
| 415 base::string16 /* source id */ ) | 422 base::string16 /* source id */ ) |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 int /* render_frame_id */, | 681 int /* render_frame_id */, |
| 675 bool /* is_transition */) | 682 bool /* is_transition */) |
| 676 | 683 |
| 677 // Tells the browser to perform a navigation. | 684 // Tells the browser to perform a navigation. |
| 678 IPC_MESSAGE_ROUTED1(FrameHostMsg_BeginNavigation, | 685 IPC_MESSAGE_ROUTED1(FrameHostMsg_BeginNavigation, |
| 679 FrameHostMsg_BeginNavigation_Params) | 686 FrameHostMsg_BeginNavigation_Params) |
| 680 | 687 |
| 681 // Sent once a paint happens after the first non empty layout. In other words | 688 // Sent once a paint happens after the first non empty layout. In other words |
| 682 // after the frame has painted something. | 689 // after the frame has painted something. |
| 683 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) | 690 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) |
| OLD | NEW |