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

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

Issue 2370393002: Extracting placeholder information from Webkit to Blimp (Closed)
Patch Set: Bypassing the typical text entry path 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 page rendering. 5 // IPC messages for page rendering.
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
11 #include "base/memory/shared_memory.h" 11 #include "base/memory/shared_memory.h"
12 #include "base/process/process.h" 12 #include "base/process/process.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "cc/ipc/cc_param_traits.h" 15 #include "cc/ipc/cc_param_traits.h"
16 #include "cc/output/begin_frame_args.h" 16 #include "cc/output/begin_frame_args.h"
17 #include "cc/output/compositor_frame.h" 17 #include "cc/output/compositor_frame.h"
18 #include "cc/resources/shared_bitmap.h" 18 #include "cc/resources/shared_bitmap.h"
19 #include "content/common/content_export.h" 19 #include "content/common/content_export.h"
20 #include "content/common/content_param_traits.h" 20 #include "content/common/content_param_traits.h"
21 #include "content/common/date_time_suggestion.h" 21 #include "content/common/date_time_suggestion.h"
22 #include "content/common/frame_replication_state.h" 22 #include "content/common/frame_replication_state.h"
23 #include "content/common/navigation_gesture.h" 23 #include "content/common/navigation_gesture.h"
24 #include "content/common/resize_params.h" 24 #include "content/common/resize_params.h"
25 #include "content/common/text_input_state.h" 25 #include "content/common/text_input_state.h"
26 #include "content/common/view_message_enums.h" 26 #include "content/common/view_message_enums.h"
27 #include "content/public/common/common_param_traits.h" 27 #include "content/public/common/common_param_traits.h"
28 #include "content/public/common/favicon_url.h" 28 #include "content/public/common/favicon_url.h"
29 #include "content/public/common/form_field_data.h"
29 #include "content/public/common/menu_item.h" 30 #include "content/public/common/menu_item.h"
30 #include "content/public/common/page_state.h" 31 #include "content/public/common/page_state.h"
31 #include "content/public/common/page_zoom.h" 32 #include "content/public/common/page_zoom.h"
32 #include "content/public/common/referrer.h" 33 #include "content/public/common/referrer.h"
33 #include "content/public/common/renderer_preferences.h" 34 #include "content/public/common/renderer_preferences.h"
34 #include "content/public/common/screen_info.h" 35 #include "content/public/common/screen_info.h"
35 #include "content/public/common/three_d_api_types.h" 36 #include "content/public/common/three_d_api_types.h"
36 #include "content/public/common/window_container_type.h" 37 #include "content/public/common/window_container_type.h"
37 #include "ipc/ipc_channel_handle.h" 38 #include "ipc/ipc_channel_handle.h"
38 #include "ipc/ipc_message_macros.h" 39 #include "ipc/ipc_message_macros.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 IPC_STRUCT_TRAITS_MEMBER(tool_tip) 194 IPC_STRUCT_TRAITS_MEMBER(tool_tip)
194 IPC_STRUCT_TRAITS_MEMBER(type) 195 IPC_STRUCT_TRAITS_MEMBER(type)
195 IPC_STRUCT_TRAITS_MEMBER(action) 196 IPC_STRUCT_TRAITS_MEMBER(action)
196 IPC_STRUCT_TRAITS_MEMBER(rtl) 197 IPC_STRUCT_TRAITS_MEMBER(rtl)
197 IPC_STRUCT_TRAITS_MEMBER(has_directional_override) 198 IPC_STRUCT_TRAITS_MEMBER(has_directional_override)
198 IPC_STRUCT_TRAITS_MEMBER(enabled) 199 IPC_STRUCT_TRAITS_MEMBER(enabled)
199 IPC_STRUCT_TRAITS_MEMBER(checked) 200 IPC_STRUCT_TRAITS_MEMBER(checked)
200 IPC_STRUCT_TRAITS_MEMBER(submenu) 201 IPC_STRUCT_TRAITS_MEMBER(submenu)
201 IPC_STRUCT_TRAITS_END() 202 IPC_STRUCT_TRAITS_END()
202 203
204 IPC_STRUCT_TRAITS_BEGIN(content::FormFieldData)
205 IPC_STRUCT_TRAITS_MEMBER(text)
206 IPC_STRUCT_TRAITS_MEMBER(placeholder)
207 IPC_STRUCT_TRAITS_MEMBER(text_input_type)
208 IPC_STRUCT_TRAITS_END()
209
203 IPC_STRUCT_TRAITS_BEGIN(content::DateTimeSuggestion) 210 IPC_STRUCT_TRAITS_BEGIN(content::DateTimeSuggestion)
204 IPC_STRUCT_TRAITS_MEMBER(value) 211 IPC_STRUCT_TRAITS_MEMBER(value)
205 IPC_STRUCT_TRAITS_MEMBER(localized_value) 212 IPC_STRUCT_TRAITS_MEMBER(localized_value)
206 IPC_STRUCT_TRAITS_MEMBER(label) 213 IPC_STRUCT_TRAITS_MEMBER(label)
207 IPC_STRUCT_TRAITS_END() 214 IPC_STRUCT_TRAITS_END()
208 215
209 IPC_STRUCT_TRAITS_BEGIN(content::FaviconURL) 216 IPC_STRUCT_TRAITS_BEGIN(content::FaviconURL)
210 IPC_STRUCT_TRAITS_MEMBER(icon_url) 217 IPC_STRUCT_TRAITS_MEMBER(icon_url)
211 IPC_STRUCT_TRAITS_MEMBER(icon_type) 218 IPC_STRUCT_TRAITS_MEMBER(icon_type)
212 IPC_STRUCT_TRAITS_MEMBER(icon_sizes) 219 IPC_STRUCT_TRAITS_MEMBER(icon_sizes)
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 #endif 579 #endif
573 580
574 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer 581 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer
575 // process to release the magnified image. 582 // process to release the magnified image.
576 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupBitmap, 583 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupBitmap,
577 cc::SharedBitmapId /* id */) 584 cc::SharedBitmapId /* id */)
578 585
579 // Fetches complete rendered content of a web page as plain text. 586 // Fetches complete rendered content of a web page as plain text.
580 IPC_MESSAGE_ROUTED0(ViewMsg_GetRenderedText) 587 IPC_MESSAGE_ROUTED0(ViewMsg_GetRenderedText)
581 588
589 // Requests the renderer for information about currently focused text input
590 // element.
591 IPC_MESSAGE_ROUTED1(ViewMsg_GetFocusedFormFieldData, int)
592
582 #if defined(OS_ANDROID) 593 #if defined(OS_ANDROID)
583 // Notifies the renderer whether hiding/showing the top controls is enabled 594 // Notifies the renderer whether hiding/showing the top controls is enabled
584 // and whether or not to animate to the proper state. 595 // and whether or not to animate to the proper state.
585 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState, 596 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState,
586 bool /* enable_hiding */, 597 bool /* enable_hiding */,
587 bool /* enable_showing */, 598 bool /* enable_showing */,
588 bool /* animate */) 599 bool /* animate */)
589 600
590 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) 601 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded)
591 602
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 // A renderer sends this to the browser process when it wants to access a PPAPI 799 // A renderer sends this to the browser process when it wants to access a PPAPI
789 // broker. In contrast to FrameHostMsg_OpenChannelToPpapiBroker, this is called 800 // broker. In contrast to FrameHostMsg_OpenChannelToPpapiBroker, this is called
790 // for every connection. 801 // for every connection.
791 // The browser will respond with ViewMsg_PpapiBrokerPermissionResult. 802 // The browser will respond with ViewMsg_PpapiBrokerPermissionResult.
792 IPC_MESSAGE_ROUTED3(ViewHostMsg_RequestPpapiBrokerPermission, 803 IPC_MESSAGE_ROUTED3(ViewHostMsg_RequestPpapiBrokerPermission,
793 int /* routing_id */, 804 int /* routing_id */,
794 GURL /* document_url */, 805 GURL /* document_url */,
795 base::FilePath /* plugin_path */) 806 base::FilePath /* plugin_path */)
796 #endif // defined(ENABLE_PLUGINS) 807 #endif // defined(ENABLE_PLUGINS)
797 808
809 // Reply message for ViewMsg_GetFormTextInputInfo. Sends info about the
810 // currently focused form field.
811 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetFocusedFormFieldData,
David Trainor- moved to gerrit 2016/11/03 04:25:49 Should this have the word "Reply" in the message?
812 int,
813 content::FormFieldData)
814
798 // Send the tooltip text for the current mouse position to the browser. 815 // Send the tooltip text for the current mouse position to the browser.
799 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText, 816 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText,
800 base::string16 /* tooltip text string */, 817 base::string16 /* tooltip text string */,
801 blink::WebTextDirection /* text direction hint */) 818 blink::WebTextDirection /* text direction hint */)
802 819
803 // Notification that the selection bounds have changed. 820 // Notification that the selection bounds have changed.
804 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionBoundsChanged, 821 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionBoundsChanged,
805 ViewHostMsg_SelectionBounds_Params) 822 ViewHostMsg_SelectionBounds_Params)
806 823
807 // Asks the browser to enumerate a directory. This is equivalent to running 824 // Asks the browser to enumerate a directory. This is equivalent to running
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
948 int /* y */) 965 int /* y */)
949 966
950 #elif defined(OS_MACOSX) 967 #elif defined(OS_MACOSX)
951 // Receives content of a web page as plain text. 968 // Receives content of a web page as plain text.
952 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) 969 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string)
953 #endif 970 #endif
954 971
955 // Adding a new message? Stick to the sort order above: first platform 972 // Adding a new message? Stick to the sort order above: first platform
956 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 973 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
957 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 974 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698