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

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

Issue 2370393002: Extracting placeholder information from Webkit to Blimp (Closed)
Patch Set: Switched from ViewMsg_* to FrameMsg_* Created 4 years, 1 month 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
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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 13 matching lines...) Expand all
24 #include "content/common/frame_replication_state.h" 24 #include "content/common/frame_replication_state.h"
25 #include "content/common/navigation_gesture.h" 25 #include "content/common/navigation_gesture.h"
26 #include "content/common/navigation_params.h" 26 #include "content/common/navigation_params.h"
27 #include "content/common/savable_subframe.h" 27 #include "content/common/savable_subframe.h"
28 #include "content/public/common/color_suggestion.h" 28 #include "content/public/common/color_suggestion.h"
29 #include "content/public/common/common_param_traits.h" 29 #include "content/public/common/common_param_traits.h"
30 #include "content/public/common/console_message_level.h" 30 #include "content/public/common/console_message_level.h"
31 #include "content/public/common/context_menu_params.h" 31 #include "content/public/common/context_menu_params.h"
32 #include "content/public/common/file_chooser_file_info.h" 32 #include "content/public/common/file_chooser_file_info.h"
33 #include "content/public/common/file_chooser_params.h" 33 #include "content/public/common/file_chooser_params.h"
34 #include "content/public/common/form_field_data.h"
34 #include "content/public/common/frame_navigate_params.h" 35 #include "content/public/common/frame_navigate_params.h"
35 #include "content/public/common/javascript_message_type.h" 36 #include "content/public/common/javascript_message_type.h"
36 #include "content/public/common/page_importance_signals.h" 37 #include "content/public/common/page_importance_signals.h"
37 #include "content/public/common/page_state.h" 38 #include "content/public/common/page_state.h"
38 #include "content/public/common/resource_response.h" 39 #include "content/public/common/resource_response.h"
39 #include "content/public/common/stop_find_action.h" 40 #include "content/public/common/stop_find_action.h"
40 #include "content/public/common/three_d_api_types.h" 41 #include "content/public/common/three_d_api_types.h"
41 #include "content/public/common/transition_element.h" 42 #include "content/public/common/transition_element.h"
42 #include "ipc/ipc_message_macros.h" 43 #include "ipc/ipc_message_macros.h"
43 #include "ipc/ipc_platform_file.h" 44 #include "ipc/ipc_platform_file.h"
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 IPC_STRUCT_MEMBER(blink::WebSandboxFlags, sandbox_flags) 509 IPC_STRUCT_MEMBER(blink::WebSandboxFlags, sandbox_flags)
509 IPC_STRUCT_MEMBER(content::FrameOwnerProperties, frame_owner_properties) 510 IPC_STRUCT_MEMBER(content::FrameOwnerProperties, frame_owner_properties)
510 IPC_STRUCT_END() 511 IPC_STRUCT_END()
511 512
512 IPC_STRUCT_TRAITS_BEGIN(content::ContentSecurityPolicyHeader) 513 IPC_STRUCT_TRAITS_BEGIN(content::ContentSecurityPolicyHeader)
513 IPC_STRUCT_TRAITS_MEMBER(header_value) 514 IPC_STRUCT_TRAITS_MEMBER(header_value)
514 IPC_STRUCT_TRAITS_MEMBER(type) 515 IPC_STRUCT_TRAITS_MEMBER(type)
515 IPC_STRUCT_TRAITS_MEMBER(source) 516 IPC_STRUCT_TRAITS_MEMBER(source)
516 IPC_STRUCT_TRAITS_END() 517 IPC_STRUCT_TRAITS_END()
517 518
519 IPC_STRUCT_TRAITS_BEGIN(content::FormFieldData)
520 IPC_STRUCT_TRAITS_MEMBER(text)
521 IPC_STRUCT_TRAITS_MEMBER(placeholder)
522 IPC_STRUCT_TRAITS_MEMBER(text_input_type)
523 IPC_STRUCT_TRAITS_END()
524
518 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserFileInfo) 525 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserFileInfo)
519 IPC_STRUCT_TRAITS_MEMBER(file_path) 526 IPC_STRUCT_TRAITS_MEMBER(file_path)
520 IPC_STRUCT_TRAITS_MEMBER(display_name) 527 IPC_STRUCT_TRAITS_MEMBER(display_name)
521 IPC_STRUCT_TRAITS_MEMBER(file_system_url) 528 IPC_STRUCT_TRAITS_MEMBER(file_system_url)
522 IPC_STRUCT_TRAITS_MEMBER(modification_time) 529 IPC_STRUCT_TRAITS_MEMBER(modification_time)
523 IPC_STRUCT_TRAITS_MEMBER(length) 530 IPC_STRUCT_TRAITS_MEMBER(length)
524 IPC_STRUCT_TRAITS_MEMBER(is_directory) 531 IPC_STRUCT_TRAITS_MEMBER(is_directory)
525 IPC_STRUCT_TRAITS_END() 532 IPC_STRUCT_TRAITS_END()
526 533
527 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams) 534 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams)
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 719
713 // Notifies the corresponding RenderFrameProxy object to replace itself with the 720 // Notifies the corresponding RenderFrameProxy object to replace itself with the
714 // RenderFrame object it is associated with. 721 // RenderFrame object it is associated with.
715 IPC_MESSAGE_ROUTED0(FrameMsg_DeleteProxy) 722 IPC_MESSAGE_ROUTED0(FrameMsg_DeleteProxy)
716 723
717 // Request the text surrounding the selection with a |max_length|. The response 724 // Request the text surrounding the selection with a |max_length|. The response
718 // will be sent via FrameHostMsg_TextSurroundingSelectionResponse. 725 // will be sent via FrameHostMsg_TextSurroundingSelectionResponse.
719 IPC_MESSAGE_ROUTED1(FrameMsg_TextSurroundingSelectionRequest, 726 IPC_MESSAGE_ROUTED1(FrameMsg_TextSurroundingSelectionRequest,
720 uint32_t /* max_length */) 727 uint32_t /* max_length */)
721 728
729 // Requests the renderer for information about currently focused text input
730 // element.
731 IPC_MESSAGE_ROUTED1(FrameMsg_FocusedFormFieldDataRequest, int)
732
722 // Tells the renderer to insert a link to the specified stylesheet. This is 733 // Tells the renderer to insert a link to the specified stylesheet. This is
723 // needed to support navigation transitions. 734 // needed to support navigation transitions.
724 IPC_MESSAGE_ROUTED1(FrameMsg_AddStyleSheetByURL, std::string) 735 IPC_MESSAGE_ROUTED1(FrameMsg_AddStyleSheetByURL, std::string)
725 736
726 // Change the accessibility mode in the renderer process. 737 // Change the accessibility mode in the renderer process.
727 IPC_MESSAGE_ROUTED1(FrameMsg_SetAccessibilityMode, 738 IPC_MESSAGE_ROUTED1(FrameMsg_SetAccessibilityMode,
728 AccessibilityMode) 739 AccessibilityMode)
729 740
730 // Dispatch a load event in the iframe element containing this frame. 741 // Dispatch a load event in the iframe element containing this frame.
731 IPC_MESSAGE_ROUTED0(FrameMsg_DispatchLoad) 742 IPC_MESSAGE_ROUTED0(FrameMsg_DispatchLoad)
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
1344 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeThemeColor, 1355 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeThemeColor,
1345 SkColor /* theme_color */) 1356 SkColor /* theme_color */)
1346 1357
1347 // Response for FrameMsg_TextSurroundingSelectionRequest, |startOffset| and 1358 // Response for FrameMsg_TextSurroundingSelectionRequest, |startOffset| and
1348 // |endOffset| are the offsets of the selection in the returned |content|. 1359 // |endOffset| are the offsets of the selection in the returned |content|.
1349 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse, 1360 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse,
1350 base::string16, /* content */ 1361 base::string16, /* content */
1351 uint32_t, /* startOffset */ 1362 uint32_t, /* startOffset */
1352 uint32_t/* endOffset */) 1363 uint32_t/* endOffset */)
1353 1364
1365 // Response for FrameMsg_FocusedFormFieldDataRequest. Sends info about the
1366 // currently focused form field.
1367 IPC_MESSAGE_ROUTED2(FrameHostMsg_FocusedFormFieldDataResponse,
1368 int,
1369 content::FormFieldData)
1370
1354 // Register a new handler for URL requests with the given scheme. 1371 // Register a new handler for URL requests with the given scheme.
1355 IPC_MESSAGE_ROUTED4(FrameHostMsg_RegisterProtocolHandler, 1372 IPC_MESSAGE_ROUTED4(FrameHostMsg_RegisterProtocolHandler,
1356 std::string /* scheme */, 1373 std::string /* scheme */,
1357 GURL /* url */, 1374 GURL /* url */,
1358 base::string16 /* title */, 1375 base::string16 /* title */,
1359 bool /* user_gesture */) 1376 bool /* user_gesture */)
1360 1377
1361 // Unregister the registered handler for URL requests with the given scheme. 1378 // Unregister the registered handler for URL requests with the given scheme.
1362 IPC_MESSAGE_ROUTED3(FrameHostMsg_UnregisterProtocolHandler, 1379 IPC_MESSAGE_ROUTED3(FrameHostMsg_UnregisterProtocolHandler,
1363 std::string /* scheme */, 1380 std::string /* scheme */,
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
1506 // nearest find result in the sending frame. 1523 // nearest find result in the sending frame.
1507 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, 1524 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply,
1508 int /* nfr_request_id */, 1525 int /* nfr_request_id */,
1509 float /* distance */) 1526 float /* distance */)
1510 #endif 1527 #endif
1511 1528
1512 // Adding a new message? Stick to the sort order above: first platform 1529 // Adding a new message? Stick to the sort order above: first platform
1513 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1530 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1514 // platform independent FrameHostMsg, then ifdefs for platform specific 1531 // platform independent FrameHostMsg, then ifdefs for platform specific
1515 // FrameHostMsg. 1532 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698