OLD | NEW |
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 // Singly or Multiply-included shared traits file depending on circumstances. | 5 // Singly or Multiply-included shared traits file depending on circumstances. |
6 // This allows the use of IPC serialization macros in more than one IPC message | 6 // This allows the use of IPC serialization macros in more than one IPC message |
7 // file. | 7 // file. |
8 #ifndef CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_ | 8 #ifndef CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_ |
9 #define CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_ | 9 #define CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_ |
10 | 10 |
| 11 #include "cc/ipc/cc_param_traits.h" |
11 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
12 #include "content/common/download/mhtml_save_status.h" | 13 #include "content/common/download/mhtml_save_status.h" |
13 #include "content/common/input/input_event_ack_state.h" | 14 #include "content/common/input/input_event_ack_state.h" |
| 15 #include "content/common/render_widget_surface_properties.h" |
14 #include "content/public/common/request_context_frame_type.h" | 16 #include "content/public/common/request_context_frame_type.h" |
15 #include "content/public/common/request_context_type.h" | 17 #include "content/public/common/request_context_type.h" |
16 #include "content/public/common/resource_type.h" | 18 #include "content/public/common/resource_type.h" |
17 #include "ipc/ipc_message_macros.h" | 19 #include "ipc/ipc_message_macros.h" |
18 #include "third_party/WebKit/public/platform/WebAddressSpace.h" | 20 #include "third_party/WebKit/public/platform/WebAddressSpace.h" |
19 #include "third_party/WebKit/public/platform/WebContentSecurityPolicy.h" | 21 #include "third_party/WebKit/public/platform/WebContentSecurityPolicy.h" |
20 #include "third_party/WebKit/public/platform/WebInputEvent.h" | 22 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
21 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" | 23 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
22 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" | 24 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" |
23 #include "third_party/WebKit/public/web/WebSharedWorkerCreationContextType.h" | 25 #include "third_party/WebKit/public/web/WebSharedWorkerCreationContextType.h" |
24 #include "ui/gfx/gpu_memory_buffer.h" | 26 #include "ui/gfx/gpu_memory_buffer.h" |
| 27 #include "ui/gfx/ipc/geometry/gfx_param_traits.h" |
25 | 28 |
26 #undef IPC_MESSAGE_EXPORT | 29 #undef IPC_MESSAGE_EXPORT |
27 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 30 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
28 | 31 |
29 IPC_ENUM_TRAITS_MAX_VALUE(content::InputEventAckState, | 32 IPC_ENUM_TRAITS_MAX_VALUE(content::InputEventAckState, |
30 content::INPUT_EVENT_ACK_STATE_MAX) | 33 content::INPUT_EVENT_ACK_STATE_MAX) |
31 IPC_ENUM_TRAITS_MAX_VALUE(content::ResourceType, | 34 IPC_ENUM_TRAITS_MAX_VALUE(content::ResourceType, |
32 content::RESOURCE_TYPE_LAST_TYPE - 1) | 35 content::RESOURCE_TYPE_LAST_TYPE - 1) |
33 IPC_ENUM_TRAITS_MAX_VALUE(content::RequestContextType, | 36 IPC_ENUM_TRAITS_MAX_VALUE(content::RequestContextType, |
34 content::REQUEST_CONTEXT_TYPE_LAST) | 37 content::REQUEST_CONTEXT_TYPE_LAST) |
(...skipping 15 matching lines...) Expand all Loading... |
50 blink::kWebPageVisibilityStateLast) | 53 blink::kWebPageVisibilityStateLast) |
51 | 54 |
52 IPC_STRUCT_TRAITS_BEGIN(blink::WebCompositionUnderline) | 55 IPC_STRUCT_TRAITS_BEGIN(blink::WebCompositionUnderline) |
53 IPC_STRUCT_TRAITS_MEMBER(start_offset) | 56 IPC_STRUCT_TRAITS_MEMBER(start_offset) |
54 IPC_STRUCT_TRAITS_MEMBER(end_offset) | 57 IPC_STRUCT_TRAITS_MEMBER(end_offset) |
55 IPC_STRUCT_TRAITS_MEMBER(color) | 58 IPC_STRUCT_TRAITS_MEMBER(color) |
56 IPC_STRUCT_TRAITS_MEMBER(thick) | 59 IPC_STRUCT_TRAITS_MEMBER(thick) |
57 IPC_STRUCT_TRAITS_MEMBER(background_color) | 60 IPC_STRUCT_TRAITS_MEMBER(background_color) |
58 IPC_STRUCT_TRAITS_END() | 61 IPC_STRUCT_TRAITS_END() |
59 | 62 |
| 63 IPC_STRUCT_TRAITS_BEGIN(content::RenderWidgetSurfaceProperties) |
| 64 IPC_STRUCT_TRAITS_MEMBER(size) |
| 65 IPC_STRUCT_TRAITS_MEMBER(device_scale_factor) |
| 66 #ifdef OS_ANDROID |
| 67 IPC_STRUCT_TRAITS_MEMBER(top_controls_height) |
| 68 IPC_STRUCT_TRAITS_MEMBER(top_controls_shown_ratio) |
| 69 IPC_STRUCT_TRAITS_MEMBER(bottom_controls_height) |
| 70 IPC_STRUCT_TRAITS_MEMBER(bottom_controls_shown_ratio) |
| 71 IPC_STRUCT_TRAITS_MEMBER(selection) |
| 72 IPC_STRUCT_TRAITS_MEMBER(has_transparent_background) |
| 73 #endif |
| 74 IPC_STRUCT_TRAITS_END() |
| 75 |
60 #endif // CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_ | 76 #endif // CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_ |
OLD | NEW |