| 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) | |
| 32 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptMessageType, | 29 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptMessageType, |
| 33 content::JAVASCRIPT_MESSAGE_TYPE_ALERT, | 30 content::JAVASCRIPT_MESSAGE_TYPE_ALERT, |
| 34 content::JAVASCRIPT_MESSAGE_TYPE_PROMPT) | 31 content::JAVASCRIPT_MESSAGE_TYPE_PROMPT) |
| 35 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value, | 32 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value, |
| 36 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST) | 33 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST) |
| 37 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType, | 34 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType, |
| 38 blink::WebContextMenuData::MediaTypeLast) | 35 blink::WebContextMenuData::MediaTypeLast) |
| 39 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST) | 36 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST) |
| 40 | 37 |
| 41 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion) | 38 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion) |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 | 385 |
| 389 // Request the text surrounding the selection with a |max_length|. The response | 386 // Request the text surrounding the selection with a |max_length|. The response |
| 390 // will be sent via FrameHostMsg_TextSurroundingSelectionResponse. | 387 // will be sent via FrameHostMsg_TextSurroundingSelectionResponse. |
| 391 IPC_MESSAGE_ROUTED1(FrameMsg_TextSurroundingSelectionRequest, | 388 IPC_MESSAGE_ROUTED1(FrameMsg_TextSurroundingSelectionRequest, |
| 392 size_t /* max_length */) | 389 size_t /* max_length */) |
| 393 | 390 |
| 394 // Tells the renderer to insert a link to the specified stylesheet. This is | 391 // Tells the renderer to insert a link to the specified stylesheet. This is |
| 395 // needed to support navigation transitions. | 392 // needed to support navigation transitions. |
| 396 IPC_MESSAGE_ROUTED1(FrameMsg_AddStyleSheetByURL, std::string) | 393 IPC_MESSAGE_ROUTED1(FrameMsg_AddStyleSheetByURL, std::string) |
| 397 | 394 |
| 398 // Change the accessibility mode in the renderer process. | |
| 399 IPC_MESSAGE_ROUTED1(FrameMsg_SetAccessibilityMode, | |
| 400 AccessibilityMode) | |
| 401 | |
| 402 // ----------------------------------------------------------------------------- | 395 // ----------------------------------------------------------------------------- |
| 403 // Messages sent from the renderer to the browser. | 396 // Messages sent from the renderer to the browser. |
| 404 | 397 |
| 405 // Blink and JavaScript error messages to log to the console | 398 // Blink and JavaScript error messages to log to the console |
| 406 // or debugger UI. | 399 // or debugger UI. |
| 407 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, | 400 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, |
| 408 int32, /* log level */ | 401 int32, /* log level */ |
| 409 base::string16, /* msg */ | 402 base::string16, /* msg */ |
| 410 int32, /* line number */ | 403 int32, /* line number */ |
| 411 base::string16 /* source id */ ) | 404 base::string16 /* source id */ ) |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 size_t /* endOffset */) | 659 size_t /* endOffset */) |
| 667 | 660 |
| 668 // Notifies the browser that the renderer has a pending navigation transition. | 661 // Notifies the browser that the renderer has a pending navigation transition. |
| 669 IPC_MESSAGE_CONTROL2(FrameHostMsg_SetHasPendingTransitionRequest, | 662 IPC_MESSAGE_CONTROL2(FrameHostMsg_SetHasPendingTransitionRequest, |
| 670 int /* render_frame_id */, | 663 int /* render_frame_id */, |
| 671 bool /* is_transition */) | 664 bool /* is_transition */) |
| 672 | 665 |
| 673 // Tells the browser to perform a navigation. | 666 // Tells the browser to perform a navigation. |
| 674 IPC_MESSAGE_ROUTED1(FrameHostMsg_BeginNavigation, | 667 IPC_MESSAGE_ROUTED1(FrameHostMsg_BeginNavigation, |
| 675 FrameHostMsg_BeginNavigation_Params) | 668 FrameHostMsg_BeginNavigation_Params) |
| OLD | NEW |