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/public/common/color_suggestion.h" | 13 #include "content/public/common/color_suggestion.h" |
14 #include "content/public/common/common_param_traits.h" | 14 #include "content/public/common/common_param_traits.h" |
15 #include "content/public/common/context_menu_params.h" | 15 #include "content/public/common/context_menu_params.h" |
16 #include "content/public/common/frame_navigate_params.h" | 16 #include "content/public/common/frame_navigate_params.h" |
17 #include "content/public/common/javascript_message_type.h" | 17 #include "content/public/common/javascript_message_type.h" |
18 #include "content/public/common/page_state.h" | 18 #include "content/public/common/page_state.h" |
19 #include "ipc/ipc_message_macros.h" | 19 #include "ipc/ipc_message_macros.h" |
20 #include "url/gurl.h" | 20 #include "url/gurl.h" |
21 | 21 |
22 #undef IPC_MESSAGE_EXPORT | 22 #undef IPC_MESSAGE_EXPORT |
23 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 23 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
24 | 24 |
25 #define IPC_MESSAGE_START FrameMsgStart | 25 #define IPC_MESSAGE_START FrameMsgStart |
26 | 26 |
| 27 IPC_ENUM_TRAITS_MIN_MAX_VALUE(AccessibilityMode, |
| 28 AccessibilityModeOff, |
| 29 AccessibilityModeComplete) |
27 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptMessageType, | 30 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptMessageType, |
28 content::JAVASCRIPT_MESSAGE_TYPE_ALERT, | 31 content::JAVASCRIPT_MESSAGE_TYPE_ALERT, |
29 content::JAVASCRIPT_MESSAGE_TYPE_PROMPT) | 32 content::JAVASCRIPT_MESSAGE_TYPE_PROMPT) |
30 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value, | 33 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value, |
31 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST) | 34 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST) |
32 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType, | 35 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType, |
33 blink::WebContextMenuData::MediaTypeLast) | 36 blink::WebContextMenuData::MediaTypeLast) |
34 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST) | 37 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST) |
35 | 38 |
36 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion) | 39 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion) |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 // Notifies the color chooser client that the user selected a color. | 354 // Notifies the color chooser client that the user selected a color. |
352 IPC_MESSAGE_ROUTED2(FrameMsg_DidChooseColorResponse, unsigned, SkColor) | 355 IPC_MESSAGE_ROUTED2(FrameMsg_DidChooseColorResponse, unsigned, SkColor) |
353 | 356 |
354 // Notifies the color chooser client that the color chooser has ended. | 357 // Notifies the color chooser client that the color chooser has ended. |
355 IPC_MESSAGE_ROUTED1(FrameMsg_DidEndColorChooser, unsigned) | 358 IPC_MESSAGE_ROUTED1(FrameMsg_DidEndColorChooser, unsigned) |
356 | 359 |
357 // Notifies the corresponding RenderFrameProxy object to replace itself with the | 360 // Notifies the corresponding RenderFrameProxy object to replace itself with the |
358 // RenderFrame object it is associated with. | 361 // RenderFrame object it is associated with. |
359 IPC_MESSAGE_ROUTED0(FrameMsg_DeleteProxy) | 362 IPC_MESSAGE_ROUTED0(FrameMsg_DeleteProxy) |
360 | 363 |
| 364 // Change the accessibility mode in the renderer process. |
| 365 IPC_MESSAGE_ROUTED1(FrameMsg_SetAccessibilityMode, |
| 366 AccessibilityMode) |
| 367 |
361 // ----------------------------------------------------------------------------- | 368 // ----------------------------------------------------------------------------- |
362 // Messages sent from the renderer to the browser. | 369 // Messages sent from the renderer to the browser. |
363 | 370 |
364 // Blink and JavaScript error messages to log to the console | 371 // Blink and JavaScript error messages to log to the console |
365 // or debugger UI. | 372 // or debugger UI. |
366 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, | 373 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, |
367 int32, /* log level */ | 374 int32, /* log level */ |
368 base::string16, /* msg */ | 375 base::string16, /* msg */ |
369 int32, /* line number */ | 376 int32, /* line number */ |
370 base::string16 /* source id */ ) | 377 base::string16 /* source id */ ) |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 SkColor /* color */) | 606 SkColor /* color */) |
600 | 607 |
601 // Notifies the browser that media has started/stopped playing. | 608 // Notifies the browser that media has started/stopped playing. |
602 IPC_MESSAGE_ROUTED3(FrameHostMsg_MediaPlayingNotification, | 609 IPC_MESSAGE_ROUTED3(FrameHostMsg_MediaPlayingNotification, |
603 int64 /* player_cookie, distinguishes instances */, | 610 int64 /* player_cookie, distinguishes instances */, |
604 bool /* has_video */, | 611 bool /* has_video */, |
605 bool /* has_audio */) | 612 bool /* has_audio */) |
606 | 613 |
607 IPC_MESSAGE_ROUTED1(FrameHostMsg_MediaPausedNotification, | 614 IPC_MESSAGE_ROUTED1(FrameHostMsg_MediaPausedNotification, |
608 int64 /* player_cookie, distinguishes instances */) | 615 int64 /* player_cookie, distinguishes instances */) |
OLD | NEW |