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