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/common_param_traits.h" | 13 #include "content/public/common/common_param_traits.h" |
14 #include "content/public/common/context_menu_params.h" | 14 #include "content/public/common/context_menu_params.h" |
15 #include "content/public/common/frame_navigate_params.h" | 15 #include "content/public/common/frame_navigate_params.h" |
| 16 #include "content/public/common/javascript_message_type.h" |
16 #include "content/public/common/page_state.h" | 17 #include "content/public/common/page_state.h" |
17 #include "ipc/ipc_message_macros.h" | 18 #include "ipc/ipc_message_macros.h" |
18 #include "url/gurl.h" | 19 #include "url/gurl.h" |
19 | 20 |
20 #undef IPC_MESSAGE_EXPORT | 21 #undef IPC_MESSAGE_EXPORT |
21 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 22 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
22 | 23 |
23 #define IPC_MESSAGE_START FrameMsgStart | 24 #define IPC_MESSAGE_START FrameMsgStart |
24 | 25 |
25 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value, | 26 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value, |
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 float /* scale_factor */) | 514 float /* scale_factor */) |
514 | 515 |
515 // Response for FrameMsg_JavaScriptExecuteRequest, sent when a reply was | 516 // Response for FrameMsg_JavaScriptExecuteRequest, sent when a reply was |
516 // requested. The ID is the parameter supplied to | 517 // requested. The ID is the parameter supplied to |
517 // FrameMsg_JavaScriptExecuteRequest. The result has the value returned by the | 518 // FrameMsg_JavaScriptExecuteRequest. The result has the value returned by the |
518 // script as its only element, one of Null, Boolean, Integer, Real, Date, or | 519 // script as its only element, one of Null, Boolean, Integer, Real, Date, or |
519 // String. | 520 // String. |
520 IPC_MESSAGE_ROUTED2(FrameHostMsg_JavaScriptExecuteResponse, | 521 IPC_MESSAGE_ROUTED2(FrameHostMsg_JavaScriptExecuteResponse, |
521 int /* id */, | 522 int /* id */, |
522 base::ListValue /* result */) | 523 base::ListValue /* result */) |
| 524 |
| 525 // A request to run a JavaScript dialog. |
| 526 IPC_SYNC_MESSAGE_ROUTED4_2(FrameHostMsg_RunJavaScriptMessage, |
| 527 base::string16 /* in - alert message */, |
| 528 base::string16 /* in - default prompt */, |
| 529 GURL /* in - originating page URL */, |
| 530 content::JavaScriptMessageType /* in - type */, |
| 531 bool /* out - success */, |
| 532 base::string16 /* out - user_input field */) |
| 533 |
| 534 // Displays a dialog to confirm that the user wants to navigate away from the |
| 535 // page. Replies true if yes, and false otherwise. The reply string is ignored, |
| 536 // but is included so that we can use OnJavaScriptMessageBoxClosed. |
| 537 IPC_SYNC_MESSAGE_ROUTED3_2(FrameHostMsg_RunBeforeUnloadConfirm, |
| 538 GURL, /* in - originating frame URL */ |
| 539 base::string16 /* in - alert message */, |
| 540 bool /* in - is a reload */, |
| 541 bool /* out - success */, |
| 542 base::string16 /* out - This is ignored.*/) |
OLD | NEW |