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

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

Issue 1346473003: Move font IPCs to be RenderProcess messages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
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 "base/memory/shared_memory.h"
9 #include "cc/surfaces/surface_id.h" 8 #include "cc/surfaces/surface_id.h"
10 #include "cc/surfaces/surface_sequence.h" 9 #include "cc/surfaces/surface_sequence.h"
11 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
12 #include "content/common/content_param_traits.h" 11 #include "content/common/content_param_traits.h"
13 #include "content/common/frame_message_enums.h" 12 #include "content/common/frame_message_enums.h"
14 #include "content/common/frame_param.h" 13 #include "content/common/frame_param.h"
15 #include "content/common/frame_replication_state.h" 14 #include "content/common/frame_replication_state.h"
16 #include "content/common/navigation_gesture.h" 15 #include "content/common/navigation_gesture.h"
17 #include "content/common/navigation_params.h" 16 #include "content/common/navigation_params.h"
18 #include "content/common/resource_request_body.h" 17 #include "content/common/resource_request_body.h"
19 #include "content/public/common/color_suggestion.h" 18 #include "content/public/common/color_suggestion.h"
20 #include "content/public/common/common_param_traits.h" 19 #include "content/public/common/common_param_traits.h"
21 #include "content/public/common/console_message_level.h" 20 #include "content/public/common/console_message_level.h"
22 #include "content/public/common/context_menu_params.h" 21 #include "content/public/common/context_menu_params.h"
23 #include "content/public/common/frame_navigate_params.h" 22 #include "content/public/common/frame_navigate_params.h"
24 #include "content/public/common/javascript_message_type.h" 23 #include "content/public/common/javascript_message_type.h"
25 #include "content/public/common/message_port_types.h" 24 #include "content/public/common/message_port_types.h"
26 #include "content/public/common/page_state.h" 25 #include "content/public/common/page_state.h"
27 #include "content/public/common/resource_response.h" 26 #include "content/public/common/resource_response.h"
28 #include "content/public/common/three_d_api_types.h" 27 #include "content/public/common/three_d_api_types.h"
29 #include "content/public/common/transition_element.h" 28 #include "content/public/common/transition_element.h"
30 #include "ipc/ipc_message_macros.h" 29 #include "ipc/ipc_message_macros.h"
31 #include "third_party/WebKit/public/web/WebTreeScopeType.h" 30 #include "third_party/WebKit/public/web/WebTreeScopeType.h"
32 #include "ui/gfx/ipc/gfx_param_traits.h" 31 #include "ui/gfx/ipc/gfx_param_traits.h"
33 #include "url/gurl.h" 32 #include "url/gurl.h"
34 #include "url/origin.h" 33 #include "url/origin.h"
35 34
36 #if defined(OS_MACOSX)
37 #include "content/common/mac/font_descriptor.h"
38 #endif
39
40 #if defined(ENABLE_PLUGINS) 35 #if defined(ENABLE_PLUGINS)
41 #include "content/common/pepper_renderer_instance_data.h" 36 #include "content/common/pepper_renderer_instance_data.h"
42 #endif 37 #endif
43 38
44 #undef IPC_MESSAGE_EXPORT 39 #undef IPC_MESSAGE_EXPORT
45 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 40 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
46 41
47 #define IPC_MESSAGE_START FrameMsgStart 42 #define IPC_MESSAGE_START FrameMsgStart
48 43
49 IPC_ENUM_TRAITS_MIN_MAX_VALUE(AccessibilityMode, 44 IPC_ENUM_TRAITS_MIN_MAX_VALUE(AccessibilityMode,
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 IPC_STRUCT_MEMBER(std::vector<content::MenuItem>, popup_items) 410 IPC_STRUCT_MEMBER(std::vector<content::MenuItem>, popup_items)
416 411
417 // Whether items should be right-aligned. 412 // Whether items should be right-aligned.
418 IPC_STRUCT_MEMBER(bool, right_aligned) 413 IPC_STRUCT_MEMBER(bool, right_aligned)
419 414
420 // Whether this is a multi-select popup. 415 // Whether this is a multi-select popup.
421 IPC_STRUCT_MEMBER(bool, allow_multiple_selection) 416 IPC_STRUCT_MEMBER(bool, allow_multiple_selection)
422 IPC_STRUCT_END() 417 IPC_STRUCT_END()
423 #endif 418 #endif
424 419
425 #if defined(OS_MACOSX)
426 IPC_STRUCT_TRAITS_BEGIN(FontDescriptor)
427 IPC_STRUCT_TRAITS_MEMBER(font_name)
428 IPC_STRUCT_TRAITS_MEMBER(font_point_size)
429 IPC_STRUCT_TRAITS_END()
430 #endif
431
432 #if defined(ENABLE_PLUGINS) 420 #if defined(ENABLE_PLUGINS)
433 IPC_STRUCT_TRAITS_BEGIN(content::PepperRendererInstanceData) 421 IPC_STRUCT_TRAITS_BEGIN(content::PepperRendererInstanceData)
434 IPC_STRUCT_TRAITS_MEMBER(render_process_id) 422 IPC_STRUCT_TRAITS_MEMBER(render_process_id)
435 IPC_STRUCT_TRAITS_MEMBER(render_frame_id) 423 IPC_STRUCT_TRAITS_MEMBER(render_frame_id)
436 IPC_STRUCT_TRAITS_MEMBER(document_url) 424 IPC_STRUCT_TRAITS_MEMBER(document_url)
437 IPC_STRUCT_TRAITS_MEMBER(plugin_url) 425 IPC_STRUCT_TRAITS_MEMBER(plugin_url)
438 IPC_STRUCT_TRAITS_MEMBER(is_potentially_secure_plugin_context) 426 IPC_STRUCT_TRAITS_MEMBER(is_potentially_secure_plugin_context)
439 IPC_STRUCT_TRAITS_END() 427 IPC_STRUCT_TRAITS_END()
440 #endif 428 #endif
441 429
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
1166 1154
1167 #if defined(OS_MACOSX) || defined(OS_ANDROID) 1155 #if defined(OS_MACOSX) || defined(OS_ANDROID)
1168 1156
1169 // Message to show/hide a popup menu using native controls. 1157 // Message to show/hide a popup menu using native controls.
1170 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, 1158 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup,
1171 FrameHostMsg_ShowPopup_Params) 1159 FrameHostMsg_ShowPopup_Params)
1172 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) 1160 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup)
1173 1161
1174 #endif 1162 #endif
1175 1163
1176 #if defined(OS_MACOSX)
1177 // Request that the browser load a font into shared memory for us.
1178 IPC_SYNC_MESSAGE_CONTROL1_3(FrameHostMsg_LoadFont,
1179 FontDescriptor /* font to load */,
1180 uint32 /* buffer size */,
1181 base::SharedMemoryHandle /* font data */,
1182 uint32 /* font id */)
1183 #elif defined(OS_WIN)
1184 // Request that the given font characters be loaded by the browser so it's
1185 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
1186 // for details.
1187 IPC_SYNC_MESSAGE_CONTROL2_0(FrameHostMsg_PreCacheFontCharacters,
1188 LOGFONT /* font_data */,
1189 base::string16 /* characters */)
1190 #endif
1191
1192 // Adding a new message? Stick to the sort order above: first platform 1164 // Adding a new message? Stick to the sort order above: first platform
1193 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1165 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1194 // platform independent FrameHostMsg, then ifdefs for platform specific 1166 // platform independent FrameHostMsg, then ifdefs for platform specific
1195 // FrameHostMsg. 1167 // FrameHostMsg.
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | content/common/mac/attributed_string_coder.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698