Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Side by Side Diff: content/common/frame_messages.h

Issue 226503002: Move modal dialogs from WebViewClient to WebFrameClient, part 1/3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: last nits Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
26 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptMessageType,
27 content::JAVASCRIPT_MESSAGE_TYPE_ALERT,
28 content::JAVASCRIPT_MESSAGE_TYPE_PROMPT)
25 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value, 29 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value,
26 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST) 30 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST)
27 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType, 31 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType,
28 blink::WebContextMenuData::MediaTypeLast) 32 blink::WebContextMenuData::MediaTypeLast)
29
30 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST) 33 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST)
31 34
32 IPC_STRUCT_TRAITS_BEGIN(content::ContextMenuParams) 35 IPC_STRUCT_TRAITS_BEGIN(content::ContextMenuParams)
33 IPC_STRUCT_TRAITS_MEMBER(media_type) 36 IPC_STRUCT_TRAITS_MEMBER(media_type)
34 IPC_STRUCT_TRAITS_MEMBER(x) 37 IPC_STRUCT_TRAITS_MEMBER(x)
35 IPC_STRUCT_TRAITS_MEMBER(y) 38 IPC_STRUCT_TRAITS_MEMBER(y)
36 IPC_STRUCT_TRAITS_MEMBER(link_url) 39 IPC_STRUCT_TRAITS_MEMBER(link_url)
37 IPC_STRUCT_TRAITS_MEMBER(link_text) 40 IPC_STRUCT_TRAITS_MEMBER(link_text)
38 IPC_STRUCT_TRAITS_MEMBER(unfiltered_link_url) 41 IPC_STRUCT_TRAITS_MEMBER(unfiltered_link_url)
39 IPC_STRUCT_TRAITS_MEMBER(src_url) 42 IPC_STRUCT_TRAITS_MEMBER(src_url)
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 float /* scale_factor */) 516 float /* scale_factor */)
514 517
515 // Response for FrameMsg_JavaScriptExecuteRequest, sent when a reply was 518 // Response for FrameMsg_JavaScriptExecuteRequest, sent when a reply was
516 // requested. The ID is the parameter supplied to 519 // requested. The ID is the parameter supplied to
517 // FrameMsg_JavaScriptExecuteRequest. The result has the value returned by the 520 // FrameMsg_JavaScriptExecuteRequest. The result has the value returned by the
518 // script as its only element, one of Null, Boolean, Integer, Real, Date, or 521 // script as its only element, one of Null, Boolean, Integer, Real, Date, or
519 // String. 522 // String.
520 IPC_MESSAGE_ROUTED2(FrameHostMsg_JavaScriptExecuteResponse, 523 IPC_MESSAGE_ROUTED2(FrameHostMsg_JavaScriptExecuteResponse,
521 int /* id */, 524 int /* id */,
522 base::ListValue /* result */) 525 base::ListValue /* result */)
526
527 // A request to run a JavaScript dialog.
528 IPC_SYNC_MESSAGE_ROUTED4_2(FrameHostMsg_RunJavaScriptMessage,
529 base::string16 /* in - alert message */,
530 base::string16 /* in - default prompt */,
531 GURL /* in - originating page URL */,
532 content::JavaScriptMessageType /* in - type */,
533 bool /* out - success */,
534 base::string16 /* out - user_input field */)
535
536 // Displays a dialog to confirm that the user wants to navigate away from the
537 // page. Replies true if yes, and false otherwise. The reply string is ignored,
538 // but is included so that we can use OnJavaScriptMessageBoxClosed.
539 IPC_SYNC_MESSAGE_ROUTED3_2(FrameHostMsg_RunBeforeUnloadConfirm,
540 GURL, /* in - originating frame URL */
541 base::string16 /* in - alert message */,
542 bool /* in - is a reload */,
543 bool /* out - success */,
544 base::string16 /* out - This is ignored.*/)
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl_unittest.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698